Back to home page

Project CMSSW displayed by LXR

 
 

    


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   // Constructor, destructor
0010   EffectiveAreas(const std::string& filename);
0011 
0012   // Accessors
0013   const float getEffectiveArea(float eta) const;
0014 
0015   // Utility functions
0016   void printEffectiveAreas() const;
0017   void checkConsistency() const;
0018 
0019 private:
0020   // Data members
0021   const std::string filename_;              // effective areas source file name
0022   std::vector<float> absEtaMin_;            // low limit of the eta range
0023   std::vector<float> absEtaMax_;            // upper limit of the eta range
0024   std::vector<float> effectiveAreaValues_;  // effective area for this eta range
0025 };
0026 
0027 #endif