CMS 3D CMS Logo

PhiSymmetryCalibration_step2_SM.h
Go to the documentation of this file.
8 
9 class TH1F;
10 class TH2F;
11 
13 public:
16 
17  void beginJob() override;
18  void endJob() override;
19 
20  void analyze(const edm::Event&, const edm::EventSetup&) override;
21 
22  void fillHistos();
23  void fillConstantsHistos();
24  void setupResidHistos();
25  void outResidHistos();
26 
27  void setUp(const edm::EventSetup& setup);
28 
29  void readEtSums();
30 
31 private:
32  // Transverse energy sum arrays
34 
35  // energy sum for SM calibration
36  // number of crystals in a "supercrystal"
37  static const int nscx = 20;
42 
47 
50 
53 
56 
59 
60  // calibration const not corrected for k
63 
64  // calibration constants not multiplied by old ones
67 
69 
70  std::vector<DetId> barrelCells;
71  std::vector<DetId> endcapCells;
72 
73  bool firstpass_;
75 
78 
81 
84 
87 
91 
93  std::vector<TH1F*> miscal_resid_barl_histos;
94  std::vector<TH2F*> correl_barl_histos;
95 
96  std::vector<TH1F*> miscal_resid_endc_histos;
97  std::vector<TH2F*> correl_endc_histos;
98 };
EcalIntercalibConstants miscalib_
initial miscalibration applied if any)
double etsum_barl_[kBarlRings][kBarlWedges][kSides]
PhiSymmetryCalibration_step2_SM(const edm::ParameterSet &iConfig)
static const int kBarlRings
unsigned int nhits_endc_[kEndcWedgesX][kEndcWedgesX][kSides]
double etsum_barl_SM_[kBarlRings][int(kBarlWedges/nscx)][kSides]
static const int kSides
float epsilon_M_barl[kBarlRings][kBarlWedges][kSides]
int nBads_barl_SM_[kBarlRings][int(kBarlWedges/nscx)][kSides]
static const int kBarlWedges
static const int kEndcWedgesX
static const int kEndcEtaRings
double esum_endc_[kEndcWedgesX][kEndcWedgesX][kSides]
double etsum_endc_[kEndcWedgesX][kEndcWedgesX][kSides]
double epsilon_M_barl_SM_[kBarlRings][int(kBarlWedges/nscx)][kSides]
void analyze(const edm::Event &, const edm::EventSetup &) override
float epsilon_M_endc[kEndcWedgesX][kEndcWedgesY][kSides]
float rawconst_barl[kBarlRings][kBarlWedges][kSides]
void setUp(const edm::EventSetup &setup)
EcalIntercalibConstants newCalibs_
calib constants that we are going to calculate
EcalIntercalibConstants oldCalibs_
the old calibration constants (when reiterating, the last ones derived)
float rawconst_endc[kEndcWedgesX][kEndcWedgesX][kSides]
std::vector< TH1F * > miscal_resid_barl_histos
res miscalib histos
double etsum_endc_uncorr[kEndcWedgesX][kEndcWedgesX][kSides]
double esum_barl_[kBarlRings][kBarlWedges][kSides]
unsigned int nhits_barl_[kBarlRings][kBarlWedges][kSides]
static const int kEndcWedgesY