CMS 3D CMS Logo

PhiSymmetryCalibration_step2_SM.h
Go to the documentation of this file.
8 
9 class TH1F;
10 class TH2F;
11 
13 {
14 
15  public:
16 
19 
20  void beginJob() override;
21  void endJob() override;
22 
23  void analyze( const edm::Event&, const edm::EventSetup& ) override;
24 
25  void fillHistos();
26  void fillConstantsHistos();
27  void setupResidHistos();
28  void outResidHistos();
29 
30  void setUp(const edm::EventSetup& setup);
31 
32  void readEtSums();
33 
34  private:
35 
36 
37 
38 
39  // Transverse energy sum arrays
41 
42  // energy sum for SM calibration
43  // number of crystals in a "supercrystal"
44  static const int nscx=20;
49 
54 
57 
58 
61 
64 
67 
68  // calibration const not corrected for k
71 
72 
73  // calibration constants not multiplied by old ones
76 
78 
79  std::vector<DetId> barrelCells;
80  std::vector<DetId> endcapCells;
81 
82  bool firstpass_;
84 
85 
88 
91 
94 
95 
98 
102 
103 
105  std::vector<TH1F*> miscal_resid_barl_histos;
106  std::vector<TH2F*> correl_barl_histos;
107 
108  std::vector<TH1F*> miscal_resid_endc_histos;
109  std::vector<TH2F*> correl_endc_histos;
110 
111 };
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]
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:1
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