CMS 3D CMS Logo

EnergyResolutionVsLumi.h
Go to the documentation of this file.
1 #ifndef CalibCalorimetry_EnergyResolutionVsLumi_H
2 #define CalibCalorimetry_EnergyResolutionVsLumi_H
3 // system include files
4 
5 #include <vector>
6 #include <typeinfo>
7 #include <string>
8 #include <map>
9 
10 #include <ctime>
11 #include <cstdio>
12 
13 #include <cmath>
14 
17 
19 public:
21 
22  EnergyResolutionVsLumi(double lumi, double instlumi) {
23  m_lumi = lumi;
24  m_instlumi = instlumi;
25  calcmuTot();
26  };
27 
28  virtual ~EnergyResolutionVsLumi();
29 
31  double eta;
32  double muEM;
33  double muHD;
36  double ampDropTotal;
39  };
40 
42  double Resolution(double eta, double ene);
43  //void Decomposition();
44 
45  void setLumi(double x) { m_lumi = x; };
46  void setInstLumi(double x) { m_instlumi = x; };
47  void setLumies(double x, double y) { m_lumi = x, m_instlumi = y, calcmuTot(); };
48 
49  double calcmuEM(double eta);
50  double calcmuHD(double eta);
51  double calcampDropTransparency(double eta);
52  double calcampDropPhotoDetector(double eta);
53  double calcampDropTotal(double eta);
54  double calcnoiseIncreaseADC(double eta);
55  double calcnoiseADC(double eta);
56  double calcresolutitonConstantTerm(double eta);
57 
59 
60  double calcLightCollectionEfficiencyWeighted2(double eta, double z, double mu_ind = -1.0);
61  double calcmuTot(double eta);
62  void calcmuTot();
63  double getmuTot(double eta, int ix, int iy);
64 
65 private:
66  double m_lumi;
67  double m_instlumi;
68  double mu_eta[10085];
69  double vpt_eta[10085];
70 };
71 
72 #endif
EnergyResolutionVsLumi::DegradationAtEta::muEM
double muEM
Definition: EnergyResolutionVsLumi.h:32
EnergyResolutionVsLumi::calcampDropTransparency
double calcampDropTransparency(double eta)
Definition: EnergyResolutionVsLumi.cc:142
DDAxes::y
EnergyResolutionVsLumi::m_instlumi
double m_instlumi
Definition: EnergyResolutionVsLumi.h:67
EnergyResolutionVsLumi::calcLightCollectionEfficiencyWeighted2
double calcLightCollectionEfficiencyWeighted2(double eta, double z, double mu_ind=-1.0)
Definition: EnergyResolutionVsLumi.cc:123
EnergyResolutionVsLumi
Definition: EnergyResolutionVsLumi.h:18
EnergyResolutionVsLumi::DegradationAtEta::ampDropTotal
double ampDropTotal
Definition: EnergyResolutionVsLumi.h:36
EnergyResolutionVsLumi::calcmuTot
void calcmuTot()
Definition: EnergyResolutionVsLumi.cc:62
EvolutionECAL.h
EnergyResolutionVsLumi::CalculateDegradation
DegradationAtEta CalculateDegradation(double eta)
Definition: EnergyResolutionVsLumi.cc:16
EnergyResolutionVsLumi::EnergyResolutionVsLumi
EnergyResolutionVsLumi()
Definition: EnergyResolutionVsLumi.cc:9
EnergyResolutionVsLumi::m_lumi
double m_lumi
Definition: EnergyResolutionVsLumi.h:66
EnergyResolutionVsLumi::calcLightCollectionEfficiencyWeighted
double calcLightCollectionEfficiencyWeighted(DetId id, double z)
Definition: EnergyResolutionVsLumi.cc:92
EnergyResolutionVsLumi::DegradationAtEta::eta
double eta
Definition: EnergyResolutionVsLumi.h:31
DDAxes::x
EnergyResolutionVsLumi::calcmuHD
double calcmuHD(double eta)
Definition: EnergyResolutionVsLumi.cc:55
EnergyResolutionVsLumi::DegradationAtEta::noiseIncreaseADC
double noiseIncreaseADC
Definition: EnergyResolutionVsLumi.h:37
DetId
Definition: DetId.h:17
BXlumiParameters_cfi.lumi
lumi
Definition: BXlumiParameters_cfi.py:6
EnergyResolutionVsLumi::calcampDropTotal
double calcampDropTotal(double eta)
Definition: EnergyResolutionVsLumi.cc:158
EnergyResolutionVsLumi::DegradationAtEta::muHD
double muHD
Definition: EnergyResolutionVsLumi.h:33
PVValHelper::eta
Definition: PVValidationHelpers.h:69
DDAxes::z
EnergyResolutionVsLumi::vpt_eta
double vpt_eta[10085]
Definition: EnergyResolutionVsLumi.h:69
EnergyResolutionVsLumi::Resolution
double Resolution(double eta, double ene)
Definition: EnergyResolutionVsLumi.cc:197
EnergyResolutionVsLumi::mu_eta
double mu_eta[10085]
Definition: EnergyResolutionVsLumi.h:68
EnergyResolutionVsLumi::DegradationAtEta::resolutitonConstantTerm
double resolutitonConstantTerm
Definition: EnergyResolutionVsLumi.h:38
EnergyResolutionVsLumi::calcnoiseADC
double calcnoiseADC(double eta)
Definition: EnergyResolutionVsLumi.cc:173
EnergyResolutionVsLumi::calcmuEM
double calcmuEM(double eta)
Definition: EnergyResolutionVsLumi.cc:48
EnergyResolutionVsLumi::DegradationAtEta::ampDropPhotoDetector
double ampDropPhotoDetector
Definition: EnergyResolutionVsLumi.h:35
EnergyResolutionVsLumi::getmuTot
double getmuTot(double eta, int ix, int iy)
EnergyResolutionVsLumi::setLumies
void setLumies(double x, double y)
Definition: EnergyResolutionVsLumi.h:47
EnergyResolutionVsLumi::setLumi
void setLumi(double x)
Definition: EnergyResolutionVsLumi.h:45
EnergyResolutionVsLumi::~EnergyResolutionVsLumi
virtual ~EnergyResolutionVsLumi()
Definition: EnergyResolutionVsLumi.cc:14
EnergyResolutionVsLumi::DegradationAtEta::ampDropTransparency
double ampDropTransparency
Definition: EnergyResolutionVsLumi.h:34
EnergyResolutionVsLumi::calcampDropPhotoDetector
double calcampDropPhotoDetector(double eta)
Definition: EnergyResolutionVsLumi.cc:150
EnergyResolutionVsLumi::EnergyResolutionVsLumi
EnergyResolutionVsLumi(double lumi, double instlumi)
Definition: EnergyResolutionVsLumi.h:22
DetId.h
EnergyResolutionVsLumi::calcresolutitonConstantTerm
double calcresolutitonConstantTerm(double eta)
Definition: EnergyResolutionVsLumi.cc:189
EnergyResolutionVsLumi::setInstLumi
void setInstLumi(double x)
Definition: EnergyResolutionVsLumi.h:46
EnergyResolutionVsLumi::DegradationAtEta
Definition: EnergyResolutionVsLumi.h:30
lumi
Definition: LumiSectionData.h:20
EnergyResolutionVsLumi::calcnoiseIncreaseADC
double calcnoiseIncreaseADC(double eta)
Definition: EnergyResolutionVsLumi.cc:165