CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
L1EGammaEECalibrator.h
Go to the documentation of this file.
1 #ifndef L1Trigger_L1CaloTrigger_L1EGammaEECalibrator_h
2 #define L1Trigger_L1CaloTrigger_L1EGammaEECalibrator_h
3 
5 #include <vector>
6 #include <set>
7 #include <cmath>
8 
10 public:
11  explicit L1EGammaEECalibrator(const edm::ParameterSet&);
12 
13  float calibrationFactor(const float& pt, const float& eta) const;
14 
15 private:
16  int etaBin(float eta) const { return bin(eta_bins, std::abs(eta)); }
17  int ptBin(float pt) const { return bin(pt_bins, pt); }
18  int bin(const std::set<float>& container, float value) const;
19 
20  std::set<float> eta_bins;
21  std::set<float> pt_bins;
22  std::vector<float> calib_factors;
23 };
24 
25 #endif
std::set< float > pt_bins
float calibrationFactor(const float &pt, const float &eta) const
std::set< float > eta_bins
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
int ptBin(float pt) const
int etaBin(float eta) const
L1EGammaEECalibrator(const edm::ParameterSet &)
std::vector< float > calib_factors
int bin(const std::set< float > &container, float value) const