CMS 3D CMS Logo

PhiSymmetryCalibration.h
Go to the documentation of this file.
1 #ifndef Calibration_EcalCalibAlgos_PhiSymmetryCalibration_h
2 #define Calibration_EcalCalibAlgos_PhiSymmetryCalibration_h
3 
4 //
5 // Package: Calibration/EcalCalibAlgos
6 // Class: PhiSymmetryCalibration
7 //
8 //
9 // Description: performs phi-symmetry calibration
10 //
11 //
12 // Original Author: David Futyan
13 //
14 // Responsible : Stefano Argiro, Valentina Sola
15 //
16 
17 #include <vector>
18 
20 
21 // Framework
28 
31 
32 class TH1F;
33 
35 public:
38 
40  ~PhiSymmetryCalibration() override;
41 
43  void beginJob() override;
44  void endRun(edm::Run const&, const edm::EventSetup&) override;
45  void endLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override;
46 
48  void endJob() override;
49 
51  void analyze(const edm::Event&, const edm::EventSetup&) override;
52 
54  void setUp(const edm::EventSetup& setup);
55 
56 private:
57  // private member functions
58 
59  void getKfactors();
60 
61  // private data members
62 
63  static const int kNMiscalBinsEB = 21;
64  static const float kMiscalRangeEB;
65 
66  static const int kNMiscalBinsEE = 41;
67  static const float kMiscalRangeEE;
68 
70 
71  // Transverse energy sum arrays
77 
80 
83 
86 
87  // factors to convert from ET sum deviation to miscalibration
92 
93  std::vector<DetId> barrelCells;
94  std::vector<DetId> endcapCells;
95 
96  // input calibration constants
99 
100  // new calibration constants
103 
104  // calibration constants not multiplied by old ones
107 
108  // calibration const not corrected for k
111 
112  // steering parameters
113 
117 
118  // energy cut in the barrel
119  double eCut_barl_;
120 
121  // parametrized energy cut EE : e_cut = ap + eta_ring*b
122  double ap_;
123  double b_;
124 
128 
129  static const int kMaxEndciPhi = 360;
130 
132 
134  std::string oldcalibfile_; //searched for in Calibration/EcalCalibAlgos/data
135 
138 
140 
141  // Et and E spectra
142  std::vector<TH1F*> et_spectrum_b_histos; //kBarlEtaRings
143  std::vector<TH1F*> e_spectrum_b_histos;
144  std::vector<TH1F*> et_spectrum_e_histos; //kEndcEtaRings
145  std::vector<TH1F*> e_spectrum_e_histos;
146 
147  bool spectra;
148  int nevents_;
151 };
152 
153 #endif
PhiSymmetryCalibration::ap_
double ap_
Definition: PhiSymmetryCalibration.h:122
PhiSymmetryCalibration::phi_endc
float phi_endc[kMaxEndciPhi][kEndcEtaRings]
Definition: PhiSymmetryCalibration.h:131
kBarlRings
static const int kBarlRings
Definition: EcalGeomPhiSymHelper.h:7
PhiSymmetryCalibration::PhiSymmetryCalibration
PhiSymmetryCalibration(const edm::ParameterSet &iConfig)
Constructor.
Definition: PhiSymmetryCalibration.cc:49
EcalGeomPhiSymHelper.h
PhiSymmetryCalibration::getKfactors
void getKfactors()
Definition: PhiSymmetryCalibration.cc:393
ESHandle.h
PhiSymmetryCalibration::nhits_endc_
unsigned int nhits_endc_[kEndcWedgesX][kEndcWedgesX][kSides]
Definition: PhiSymmetryCalibration.h:79
EcalIntercalibConstants.h
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
PhiSymmetryCalibration::etsum_endc_uncorr
double etsum_endc_uncorr[kEndcWedgesX][kEndcWedgesX][kSides]
Definition: PhiSymmetryCalibration.h:74
edm::Run
Definition: Run.h:45
PhiSymmetryCalibration::etsum_barl_
double etsum_barl_[kBarlRings][kBarlWedges][kSides]
Definition: PhiSymmetryCalibration.h:72
PhiSymmetryCalibration::miscalEB_
double miscalEB_[kNMiscalBinsEB]
Definition: PhiSymmetryCalibration.h:90
PhiSymmetryCalibration::etsumMean_endc_
double etsumMean_endc_[kEndcEtaRings]
Definition: PhiSymmetryCalibration.h:76
PhiSymmetryCalibration::newCalibs_barl
double newCalibs_barl[kBarlRings][kBarlWedges][kSides]
Definition: PhiSymmetryCalibration.h:101
PhiSymmetryCalibration::oldCalibs_barl
double oldCalibs_barl[kBarlRings][kBarlWedges][kSides]
Definition: PhiSymmetryCalibration.h:97
EDAnalyzer.h
EcalGeomPhiSymHelper
Definition: EcalGeomPhiSymHelper.h:19
PhiSymmetryCalibration::e_
EcalGeomPhiSymHelper e_
Definition: PhiSymmetryCalibration.h:69
EcalCondObjectContainer
Definition: EcalCondObjectContainer.h:13
PhiSymmetryCalibration::oldCalibs_endc
double oldCalibs_endc[kEndcWedgesX][kEndcWedgesY][kSides]
Definition: PhiSymmetryCalibration.h:98
PhiSymmetryCalibration::kNMiscalBinsEE
static const int kNMiscalBinsEE
Definition: PhiSymmetryCalibration.h:66
PhiSymmetryCalibration::e_spectrum_e_histos
std::vector< TH1F * > e_spectrum_e_histos
Definition: PhiSymmetryCalibration.h:145
kEndcWedgesY
static const int kEndcWedgesY
Definition: EcalGeomPhiSymHelper.h:12
PhiSymmetryCalibration::isfirstpass_
bool isfirstpass_
Definition: PhiSymmetryCalibration.h:139
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
PhiSymmetryCalibration::eCut_barl_
double eCut_barl_
Definition: PhiSymmetryCalibration.h:119
PhiSymmetryCalibration::nevents_
int nevents_
Definition: PhiSymmetryCalibration.h:148
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
PhiSymmetryCalibration::oldcalibfile_
std::string oldcalibfile_
Definition: PhiSymmetryCalibration.h:134
PhiSymmetryCalibration::eventsinrun_
int eventsinrun_
Definition: PhiSymmetryCalibration.h:149
PhiSymmetryCalibration::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Called at each event.
Definition: PhiSymmetryCalibration.cc:230
PhiSymmetryCalibration::eventsinlb_
int eventsinlb_
Definition: PhiSymmetryCalibration.h:150
PhiSymmetryCalibration::etsum_endc_
double etsum_endc_[kEndcWedgesX][kEndcWedgesX][kSides]
Definition: PhiSymmetryCalibration.h:73
PhiSymmetryCalibration::endJob
void endJob() override
Called at end of job.
Definition: PhiSymmetryCalibration.cc:153
PhiSymmetryCalibration::miscalEE_
double miscalEE_[kNMiscalBinsEE]
Definition: PhiSymmetryCalibration.h:91
PhiSymmetryCalibration::k_barl_
double k_barl_[kBarlRings]
Definition: PhiSymmetryCalibration.h:88
PhiSymmetryCalibration::kMiscalRangeEE
static const float kMiscalRangeEE
Definition: PhiSymmetryCalibration.h:67
PhiSymmetryCalibration::endRun
void endRun(edm::Run const &, const edm::EventSetup &) override
Definition: PhiSymmetryCalibration.cc:380
PhiSymmetryCalibration::epsilon_M_barl
float epsilon_M_barl[kBarlRings][kBarlWedges][kSides]
Definition: PhiSymmetryCalibration.h:105
PhiSymmetryCalibration::kMiscalRangeEB
static const float kMiscalRangeEB
Definition: PhiSymmetryCalibration.h:64
PhiSymmetryCalibration::epsilon_M_endc
float epsilon_M_endc[kEndcWedgesX][kEndcWedgesY][kSides]
Definition: PhiSymmetryCalibration.h:106
ProducerBase.h
PhiSymmetryCalibration::newCalibs_endc
double newCalibs_endc[kEndcWedgesX][kEndcWedgesX][kSides]
Definition: PhiSymmetryCalibration.h:102
PhiSymmetryCalibration::beginJob
void beginJob() override
Called at beginning of job.
Definition: PhiSymmetryCalibration.cc:93
PhiSymmetryCalibration::kNMiscalBinsEB
static const int kNMiscalBinsEB
Definition: PhiSymmetryCalibration.h:63
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PhiSymmetryCalibration::etsumMean_barl_
double etsumMean_barl_[kBarlRings]
Definition: PhiSymmetryCalibration.h:75
edm::ParameterSet
Definition: ParameterSet.h:47
PhiSymmetryCalibration::kMaxEndciPhi
static const int kMaxEndciPhi
Definition: PhiSymmetryCalibration.h:129
PhiSymmetryCalibration::~PhiSymmetryCalibration
~PhiSymmetryCalibration() override
Destructor.
Definition: PhiSymmetryCalibration.cc:79
PhiSymmetryCalibration::spectra
bool spectra
Definition: PhiSymmetryCalibration.h:147
Event.h
PhiSymmetryCalibration::endcapCells
std::vector< DetId > endcapCells
Definition: PhiSymmetryCalibration.h:94
PhiSymmetryCalibration::endLuminosityBlock
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: PhiSymmetryCalibration.cc:511
PhiSymmetryCalibration::setUp
void setUp(const edm::EventSetup &setup)
Definition: PhiSymmetryCalibration.cc:480
edm::EventSetup
Definition: EventSetup.h:58
kEndcEtaRings
static const int kEndcEtaRings
Definition: EcalGeomPhiSymHelper.h:14
PhiSymmetryCalibration::reiteration_
bool reiteration_
Definition: PhiSymmetryCalibration.h:133
kSides
static const int kSides
Definition: EcalGeomPhiSymHelper.h:9
PhiSymmetryCalibration
Definition: PhiSymmetryCalibration.h:34
PhiSymmetryCalibration::barrelCells
std::vector< DetId > barrelCells
Definition: PhiSymmetryCalibration.h:93
PhiSymmetryCalibration::et_spectrum_b_histos
std::vector< TH1F * > et_spectrum_b_histos
Definition: PhiSymmetryCalibration.h:142
PhiSymmetryCalibration::rawconst_barl
float rawconst_barl[kBarlRings][kBarlWedges][kSides]
Definition: PhiSymmetryCalibration.h:109
kEndcWedgesX
static const int kEndcWedgesX
Definition: EcalGeomPhiSymHelper.h:11
PhiSymmetryCalibration::esumMean_endc_
double esumMean_endc_[kEndcEtaRings]
Definition: PhiSymmetryCalibration.h:85
DetId.h
Frameworkfwd.h
PhiSymmetryCalibration::esumMean_barl_
double esumMean_barl_[kBarlRings]
Definition: PhiSymmetryCalibration.h:84
PhiSymmetryCalibration::oldCalibs_
EcalIntercalibConstants oldCalibs_
the old calibration constants (when reiterating, the last ones derived)
Definition: PhiSymmetryCalibration.h:137
PhiSymmetryCalibration::eventSet_
int eventSet_
Definition: PhiSymmetryCalibration.h:125
PhiSymmetryCalibration::e_spectrum_b_histos
std::vector< TH1F * > e_spectrum_b_histos
Definition: PhiSymmetryCalibration.h:143
EventSetup.h
PhiSymmetryCalibration::etsum_endc_miscal_
double etsum_endc_miscal_[kNMiscalBinsEE][kEndcEtaRings]
Definition: PhiSymmetryCalibration.h:82
kBarlWedges
static const int kBarlWedges
Definition: EcalGeomPhiSymHelper.h:8
PhiSymmetryCalibration::rawconst_endc
float rawconst_endc[kEndcWedgesX][kEndcWedgesX][kSides]
Definition: PhiSymmetryCalibration.h:110
PhiSymmetryCalibration::b_
double b_
Definition: PhiSymmetryCalibration.h:123
PhiSymmetryCalibration::endcapHits_
std::string endcapHits_
Definition: PhiSymmetryCalibration.h:116
PhiSymmetryCalibration::et_spectrum_e_histos
std::vector< TH1F * > et_spectrum_e_histos
Definition: PhiSymmetryCalibration.h:144
edm::Event
Definition: Event.h:73
PhiSymmetryCalibration::ecalHitsProducer_
std::string ecalHitsProducer_
Definition: PhiSymmetryCalibration.h:114
PhiSymmetryCalibration::barrelHits_
std::string barrelHits_
Definition: PhiSymmetryCalibration.h:115
PhiSymmetryCalibration::etsum_barl_miscal_
double etsum_barl_miscal_[kNMiscalBinsEB][kBarlRings]
Definition: PhiSymmetryCalibration.h:81
PhiSymmetryCalibration::k_endc_
double k_endc_[kEndcEtaRings]
Definition: PhiSymmetryCalibration.h:89
PhiSymmetryCalibration::nhits_barl_
unsigned int nhits_barl_[kBarlRings][kBarlWedges][kSides]
Definition: PhiSymmetryCalibration.h:78
PhiSymmetryCalibration::statusThreshold_
int statusThreshold_
threshold in channel status beyond which channel is marked bad
Definition: PhiSymmetryCalibration.h:127