File indexing completed on 2021-02-14 12:49:57
0001 #ifndef CommonTools_Egamma_EffectiveAreas_h
0002 #define CommonTools_Egamma_EffectiveAreas_h
0003
0004 #include <vector>
0005 #include <string>
0006
0007 class EffectiveAreas {
0008 public:
0009
0010 EffectiveAreas(const std::string& filename);
0011
0012
0013 const float getEffectiveArea(float eta) const;
0014
0015
0016 void printEffectiveAreas() const;
0017 void checkConsistency() const;
0018
0019 private:
0020
0021 const std::string filename_;
0022 std::vector<float> absEtaMin_;
0023 std::vector<float> absEtaMax_;
0024 std::vector<float> effectiveAreaValues_;
0025 };
0026
0027 #endif