CMS 3D CMS Logo

DQMSourcePi0.h
Go to the documentation of this file.
1 #ifndef DQMSourcePi0_H
2 #define DQMSourcePi0_H
3 
8 
11 
12 // Geometry
26 
27 typedef std::map<DetId, EcalRecHit> RecHitsMap;
28 // Less than operator for sorting EcalRecHits according to energy.
29 class ecalRecHitLess : public std::binary_function<EcalRecHit, EcalRecHit, bool>
30 {
31 public:
33  {
34  return (x.energy() > y.energy());
35  }
36 };
37 
38 
39 
40 
41 class DQMStore;
42 class MonitorElement;
43 
44 class DQMSourcePi0 : public DQMEDAnalyzer {
45 
46 public:
47 
49  ~DQMSourcePi0() override;
50 
51 protected:
52 
53  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
54  void analyze(const edm::Event& e, const edm::EventSetup& c) override ;
55 
56  void convxtalid(int & , int &);
57  int diff_neta_s(int,int);
58  int diff_nphi_s(int,int);
59 
60 private:
61 
64 
67 
70 
73 
76 
79 
82 
85 
88 
91 
94 
97 
100 
103 
106 
109 
112 
115 
118 
121 
124 
127 
130 
133 
136 
139 
142 
145 
148 
151 
154 
157 
160 
161 
164 
167 
170 
173 
174 
177 
180 
183 
186 
189 
192 
195 
198 
201 
204 
207 
210 
213 
216 
219 
222 
223 
224 
225 
229 
233 
236 
239 
240  double clusSeedThr_;
243 
245 
247  double selePtGamma_;
248  double selePtPi0_;
254  double selePi0Iso_;
256 
267 
270  double selePtEta_;
276  double seleEtaIso_;
277  double seleEtaBeltDR_;
279 
291 
292 
294  double ParameterX0_;
298  double ParameterW0_;
299 
300 
301 
302  std::vector<EBDetId> detIdEBRecHits;
303  std::vector<EcalRecHit> EBRecHits;
304 
305 
306  std::vector<EEDetId> detIdEERecHits;
307  std::vector<EcalRecHit> EERecHits;
308 
309 
310 
312  unsigned int prescaleFactor_;
313 
316 
319 
325 
328 };
329 
330 #endif
double ParameterT0_barl_
Definition: DQMSourcePi0.h:295
edm::EDGetTokenT< EcalRecHitCollection > productMonitoredEEeta_
Definition: DQMSourcePi0.h:232
double seleEtaBeltDREndCap_
Definition: DQMSourcePi0.h:289
MonitorElement * hiYDistrEEeta_
Distribution of rechits in iy EE (eta)
Definition: DQMSourcePi0.h:87
double seleMinvMinPi0EndCap_
Definition: DQMSourcePi0.h:261
MonitorElement * hMinvPi0EE_
Pi0 invariant mass in EE.
Definition: DQMSourcePi0.h:141
MonitorElement * hiXDistrEEeta_
Distribution of rechits in ix EE (eta)
Definition: DQMSourcePi0.h:75
double ParameterT0_endcPresh_
Definition: DQMSourcePi0.h:297
MonitorElement * hiPhiDistrEBpi0_
Distribution of rechits in iPhi (pi0)
Definition: DQMSourcePi0.h:66
MonitorElement * hPt1Pi0EB_
Pt of the 1st most energetic Pi0 photon in EB.
Definition: DQMSourcePi0.h:150
MonitorElement * hPt2Pi0EE_
Pt of the 2nd most energetic Pi0 photon in EE.
Definition: DQMSourcePi0.h:166
MonitorElement * hiYDistrEEpi0_
Distribution of rechits in iy EE (pi0)
Definition: DQMSourcePi0.h:81
double ptMinForIsolationEtaEndCap_
Definition: DQMSourcePi0.h:287
MonitorElement * hPtPi0EE_
Pi0 Pt in EE.
Definition: DQMSourcePi0.h:179
virtual example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * hMinvEtaEB_
Eta invariant mass in EB.
Definition: DQMSourcePi0.h:144
double seleEtaBeltDR_
Definition: DQMSourcePi0.h:277
std::vector< EEDetId > detIdEERecHits
Definition: DQMSourcePi0.h:306
PositionCalc posCalculator_
Definition: DQMSourcePi0.h:63
double seleMinvMinEtaEndCap_
Definition: DQMSourcePi0.h:286
MonitorElement * hS4S92EtaEB_
S4S9 of the 2nd most energetic eta photon.
Definition: DQMSourcePi0.h:218
std::vector< EBDetId > detIdEBRecHits
Definition: DQMSourcePi0.h:302
edm::EDGetTokenT< EcalRecHitCollection > productMonitoredEBeta_
Definition: DQMSourcePi0.h:228
double selePtGammaEndCap_
for pi0->gg endcap
Definition: DQMSourcePi0.h:258
MonitorElement * hMeanRecHitEnergyEBeta_
Distribution of Mean energy per rechit EB (eta)
Definition: DQMSourcePi0.h:132
double ParameterT0_endc_
Definition: DQMSourcePi0.h:296
double seleMinvMaxPi0EndCap_
Definition: DQMSourcePi0.h:260
std::string folderName_
DQM folder name.
Definition: DQMSourcePi0.h:315
MonitorElement * hMeanRecHitEnergyEEpi0_
Distribution of Mean energy per rechit EE (pi0)
Definition: DQMSourcePi0.h:129
MonitorElement * hNRecHitsEBpi0_
Distribution of number of RecHits EB (pi0)
Definition: DQMSourcePi0.h:114
MonitorElement * hPt2EtaEE_
Pt of the 2nd most energetic Eta photon in EE.
Definition: DQMSourcePi0.h:172
MonitorElement * hRechitEnergyEBpi0_
Energy Distribution of rechits EB (pi0)
Definition: DQMSourcePi0.h:90
std::string fileName_
Output file name if required.
Definition: DQMSourcePi0.h:327
double clusSeedThr_
Definition: DQMSourcePi0.h:240
MonitorElement * hRechitEnergyEEpi0_
Energy Distribution of rechits EE (pi0)
Definition: DQMSourcePi0.h:93
double seleMinvMaxEtaEndCap_
Definition: DQMSourcePi0.h:285
std::vector< EcalRecHit > EERecHits
Definition: DQMSourcePi0.h:307
MonitorElement * hPtEtaEB_
Eta Pt in EB.
Definition: DQMSourcePi0.h:182
double selePi0Iso_
Definition: DQMSourcePi0.h:254
MonitorElement * hIsoEtaEB_
Eta Iso EB.
Definition: DQMSourcePi0.h:194
double selePtEtaEndCap_
Definition: DQMSourcePi0.h:284
bool saveToFile_
Write to file.
Definition: DQMSourcePi0.h:318
double seleS4S9GammaEtaEndCap_
Definition: DQMSourcePi0.h:282
MonitorElement * hIsoPi0EB_
Pi0 Iso EB.
Definition: DQMSourcePi0.h:188
MonitorElement * hS4S91Pi0EE_
S4S9 of the 1st most energetic pi0 photon EE.
Definition: DQMSourcePi0.h:203
MonitorElement * hS4S91EtaEB_
S4S9 of the 1st most energetic eta photon.
Definition: DQMSourcePi0.h:206
double selePi0BeltDeta_
Definition: DQMSourcePi0.h:253
double seleS4S9Gamma_
Definition: DQMSourcePi0.h:251
double ptMinForIsolationEta_
Definition: DQMSourcePi0.h:275
double seleMinvMinPi0_
Definition: DQMSourcePi0.h:250
MonitorElement * hMinvPi0EB_
Pi0 invariant mass in EB.
Definition: DQMSourcePi0.h:138
double seleMinvMaxEta_
Definition: DQMSourcePi0.h:273
MonitorElement * hS4S92Pi0EE_
S4S9 of the 2nd most energetic pi0 photon EE.
Definition: DQMSourcePi0.h:215
double ptMinForIsolationEndCap_
Definition: DQMSourcePi0.h:266
bool ParameterLogWeighted_
Definition: DQMSourcePi0.h:293
double seleS4S9GammaEta_
Definition: DQMSourcePi0.h:271
MonitorElement * hiEtaDistrEBpi0_
Distribution of rechits in iEta (pi0)
Definition: DQMSourcePi0.h:78
double selePi0BeltDetaEndCap_
Definition: DQMSourcePi0.h:265
MonitorElement * hS4S91Pi0EB_
S4S9 of the 1st most energetic pi0 photon.
Definition: DQMSourcePi0.h:200
MonitorElement * hiXDistrEEpi0_
Distribution of rechits in ix EE (pi0)
Definition: DQMSourcePi0.h:69
MonitorElement * hiEtaDistrEBeta_
Distribution of rechits in iEta (eta)
Definition: DQMSourcePi0.h:84
edm::EDGetTokenT< EcalRecHitCollection > productMonitoredEBpi0_
object to monitor
Definition: DQMSourcePi0.h:227
bool isMonEBpi0_
which subdet will be monitored
Definition: DQMSourcePi0.h:321
double ParameterX0_
Definition: DQMSourcePi0.h:294
double selePtPi0EndCap_
Definition: DQMSourcePi0.h:259
double seleMinvMinEta_
Definition: DQMSourcePi0.h:274
double selePtGammaEtaEndCap_
for eta->gg endcap
Definition: DQMSourcePi0.h:281
double ptMinForIsolation_
Definition: DQMSourcePi0.h:255
virtual example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
double seleXtalMinEnergy_
Definition: DQMSourcePi0.h:237
float energy() const
Definition: EcalRecHit.h:68
double seleEtaBeltDeta_
Definition: DQMSourcePi0.h:278
MonitorElement * hPtEtaEE_
Eta Pt in EE.
Definition: DQMSourcePi0.h:185
double seleXtalMinEnergyEndCap_
Definition: DQMSourcePi0.h:238
double seleS9S25GammaEtaEndCap_
Definition: DQMSourcePi0.h:283
double selePi0BeltDR_
Definition: DQMSourcePi0.h:252
MonitorElement * hEventEnergyEEpi0_
Distribution of total event energy EE (pi0)
Definition: DQMSourcePi0.h:105
MonitorElement * hNRecHitsEEeta_
Distribution of number of RecHits EE (eta)
Definition: DQMSourcePi0.h:123
double selePtGammaEta_
for eta->gg barrel
Definition: DQMSourcePi0.h:269
edm::EDGetTokenT< EcalRecHitCollection > productMonitoredEEpi0_
object to monitor
Definition: DQMSourcePi0.h:231
double seleEtaBeltDetaEndCap_
Definition: DQMSourcePi0.h:290
MonitorElement * hiPhiDistrEBeta_
Distribution of rechits in iPhi (eta)
Definition: DQMSourcePi0.h:72
double selePtEta_
Definition: DQMSourcePi0.h:270
MonitorElement * hRechitEnergyEBeta_
Energy Distribution of rechits EB (eta)
Definition: DQMSourcePi0.h:96
MonitorElement * hPt1EtaEE_
Pt of the 1st most energetic Eta photon in EE.
Definition: DQMSourcePi0.h:159
MonitorElement * hEventEnergyEBpi0_
Distribution of total event energy EB (pi0)
Definition: DQMSourcePi0.h:102
double seleEtaIso_
Definition: DQMSourcePi0.h:276
MonitorElement * hPt1EtaEB_
Pt of the 1st most energetic Eta photon in EB.
Definition: DQMSourcePi0.h:156
MonitorElement * hEventEnergyEBeta_
Distribution of total event energy EB (eta)
Definition: DQMSourcePi0.h:108
MonitorElement * hIsoEtaEE_
Eta Iso EE.
Definition: DQMSourcePi0.h:197
MonitorElement * hS4S92Pi0EB_
S4S9 of the 2nd most energetic pi0 photon.
Definition: DQMSourcePi0.h:212
double selePi0IsoEndCap_
Definition: DQMSourcePi0.h:263
double ParameterW0_
Definition: DQMSourcePi0.h:298
MonitorElement * hPt2EtaEB_
Pt of the 2nd most energetic Eta photon in EB.
Definition: DQMSourcePi0.h:169
double seleMinvMaxPi0_
Definition: DQMSourcePi0.h:249
std::vector< EcalRecHit > EBRecHits
Definition: DQMSourcePi0.h:303
MonitorElement * hMinvEtaEE_
Eta invariant mass in EE.
Definition: DQMSourcePi0.h:147
MonitorElement * hPtPi0EB_
Pi0 Pt in EB.
Definition: DQMSourcePi0.h:176
double seleEtaIsoEndCap_
Definition: DQMSourcePi0.h:288
MonitorElement * hS4S92EtaEE_
S4S9 of the 2nd most energetic eta photon EE.
Definition: DQMSourcePi0.h:221
unsigned int prescaleFactor_
Monitor every prescaleFactor_ events.
Definition: DQMSourcePi0.h:312
MonitorElement * hMeanRecHitEnergyEEeta_
Distribution of Mean energy per rechit EE (eta)
Definition: DQMSourcePi0.h:135
MonitorElement * hIsoPi0EE_
Pi0 Iso EE.
Definition: DQMSourcePi0.h:191
double selePtPi0_
Definition: DQMSourcePi0.h:248
double seleS4S9GammaEndCap_
Definition: DQMSourcePi0.h:262
MonitorElement * hNRecHitsEBeta_
Distribution of number of RecHits EB (eta)
Definition: DQMSourcePi0.h:120
MonitorElement * hPt1Pi0EE_
Pt of the 1st most energetic Pi0 photon in EE.
Definition: DQMSourcePi0.h:153
MonitorElement * hS4S91EtaEE_
S4S9 of the 1st most energetic eta photon EE.
Definition: DQMSourcePi0.h:209
MonitorElement * hRechitEnergyEEeta_
Energy Distribution of rechits EE (eta)
Definition: DQMSourcePi0.h:99
MonitorElement * hMeanRecHitEnergyEBpi0_
Distribution of Mean energy per rechit EB (pi0)
Definition: DQMSourcePi0.h:126
MonitorElement * hEventEnergyEEeta_
Distribution of total event energy EE (eta)
Definition: DQMSourcePi0.h:111
MonitorElement * hNRecHitsEEpi0_
Distribution of number of RecHits EE (pi0)
Definition: DQMSourcePi0.h:117
int gammaCandPhiSize_
Definition: DQMSourcePi0.h:235
bool operator()(EcalRecHit x, EcalRecHit y)
Definition: DQMSourcePi0.h:32
int gammaCandEtaSize_
Definition: DQMSourcePi0.h:234
double selePi0BeltDREndCap_
Definition: DQMSourcePi0.h:264
std::map< DetId, EcalRecHit > RecHitsMap
Definition: DQMSourcePi0.h:27
Definition: Run.h:43
double seleS9S25GammaEta_
Definition: DQMSourcePi0.h:272
MonitorElement * hPt2Pi0EB_
Pt of the 2nd most energetic Pi0 photon in EB.
Definition: DQMSourcePi0.h:163
double selePtGamma_
Definition: DQMSourcePi0.h:247
double clusSeedThrEndCap_
Definition: DQMSourcePi0.h:244