Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:05

0001 #ifndef CalibCalorimetry_HcalAlgos_HFRecalibration_h
0002 #define CalibCalorimetry_HcalAlgos_HFRecalibration_h
0003 //
0004 // Simple class with parameterized function provided by James Wetzel
0005 // to compansate for darkening of HF QP fibers
0006 // in Upgrade conditions
0007 // correction = f (integrated lumi, depth, ieta)
0008 //
0009 #include <cmath>
0010 #include <iostream>
0011 #include <vector>
0012 
0013 typedef std::vector<double> vecOfDoubles;
0014 
0015 namespace edm {
0016   class ParameterSet;
0017 }
0018 
0019 class HFRecalibration {
0020 public:
0021   HFRecalibration(const edm::ParameterSet& pset);
0022   ~HFRecalibration();
0023   double getCorr(int ieta, int idepth, double lumi);
0024 
0025   //Calibration factors only calculated for iEta between and including 30 and 41
0026   static const unsigned int loweriEtaBin = 30;
0027   static const unsigned int upperiEtaBin = 41;
0028 
0029 private:
0030   //Container for holding parameters from cff file
0031   std::vector<double> HFParsAB[2][2];
0032   double reCalFactor = 1.0;
0033 };
0034 
0035 #endif  // HFRecalibration_h