CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PhiSymmetryCalibration_step2_SM.h
Go to the documentation of this file.
1 #ifndef Calibration_EcalCalibAlgos_PhiSymmetryCalibration_step2_SM_h
2 #define Calibration_EcalCalibAlgos_PhiSymmetryCalibration_step2_SM_h
3 
13 
14 class TH1F;
15 class TH2F;
16 
18 public:
21 
22  void beginJob() override;
23  void endJob() override;
24 
25  void analyze(const edm::Event&, const edm::EventSetup&) override;
26 
27  void fillHistos();
28  void fillConstantsHistos();
29  void setupResidHistos();
30  void outResidHistos();
31 
32  void setUp(const edm::EventSetup& setup);
33 
34  void readEtSums();
35 
36 private:
39 
40  // Transverse energy sum arrays
42 
43  // energy sum for SM calibration
44  // number of crystals in a "supercrystal"
45  static const int nscx = 20;
50 
55 
58 
61 
64 
67 
68  // calibration const not corrected for k
71 
72  // calibration constants not multiplied by old ones
75 
77 
78  std::vector<DetId> barrelCells;
79  std::vector<DetId> endcapCells;
80 
81  bool firstpass_;
82  const int statusThreshold_;
83 
84  const bool reiteration_;
86 
89 
92 
95 
99 
101  std::vector<TH1F*> miscal_resid_barl_histos;
102  std::vector<TH2F*> correl_barl_histos;
103 
104  std::vector<TH1F*> miscal_resid_endc_histos;
105  std::vector<TH2F*> correl_endc_histos;
106 };
107 #endif
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]
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geometryToken_
double epsilon_M_barl_SM_[kBarlRings][int(kBarlWedges/nscx)][kSides]
const edm::ESGetToken< EcalChannelStatus, EcalChannelStatusRcd > channelStatusToken_
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