CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DQMSourcePi0.h
Go to the documentation of this file.
1 #ifndef DQMSourcePi0_H
2 #define DQMSourcePi0_H
3 
8 
11 
12 // Geometry
23 
24 
25 typedef std::map<DetId, EcalRecHit> RecHitsMap;
26 // Less than operator for sorting EcalRecHits according to energy.
27 class ecalRecHitLess : public std::binary_function<EcalRecHit, EcalRecHit, bool>
28 {
29 public:
31  {
32  return (x.energy() > y.energy());
33  }
34 };
35 
36 
37 
38 
39 class DQMStore;
40 class MonitorElement;
41 
42 class DQMSourcePi0 : public edm::EDAnalyzer {
43 
44 public:
45 
47  ~DQMSourcePi0();
48 
49 protected:
50 
51  void beginJob();
52 
53  void beginRun(const edm::Run& r, const edm::EventSetup& c);
54 
55  void analyze(const edm::Event& e, const edm::EventSetup& c) ;
56 
57  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
58  const edm::EventSetup& context) ;
59 
60  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
61  const edm::EventSetup& c);
62 
63  void endRun(const edm::Run& r, const edm::EventSetup& c);
64 
65  void endJob();
66 
67  void convxtalid(int & , int &);
68  int diff_neta_s(int,int);
69  int diff_nphi_s(int,int);
70 
71 
72 
73 private:
74 
75 
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 
163 
166 
169 
172 
175 
176 
179 
182 
185 
188 
189 
192 
195 
198 
201 
204 
207 
210 
213 
216 
219 
222 
225 
228 
231 
234 
237 
238 
239 
240 
244 
248 
251 
254 
255  double clusSeedThr_;
258 
260 
262  double selePtGamma_;
263  double selePtPi0_;
269  double selePi0Iso_;
271 
282 
285  double selePtEta_;
291  double seleEtaIso_;
292  double seleEtaBeltDR_;
294 
306 
307 
309  double ParameterX0_;
313  double ParameterW0_;
314 
315 
316 
317  std::vector<EBDetId> detIdEBRecHits;
318  std::vector<EcalRecHit> EBRecHits;
319 
320 
321  std::vector<EEDetId> detIdEERecHits;
322  std::vector<EcalRecHit> EERecHits;
323 
324 
325 
327  unsigned int prescaleFactor_;
328 
330  std::string folderName_;
331 
334 
340 
342  std::string fileName_;
343 };
344 
345 #endif
346 
double ParameterT0_barl_
Definition: DQMSourcePi0.h:310
double seleEtaBeltDREndCap_
Definition: DQMSourcePi0.h:304
MonitorElement * hiYDistrEEeta_
Distribution of rechits in iy EE (eta)
Definition: DQMSourcePi0.h:102
double seleMinvMinPi0EndCap_
Definition: DQMSourcePi0.h:276
MonitorElement * hMinvPi0EE_
Pi0 invariant mass in EE.
Definition: DQMSourcePi0.h:156
MonitorElement * hiXDistrEEeta_
Distribution of rechits in ix EE (eta)
Definition: DQMSourcePi0.h:90
double ParameterT0_endcPresh_
Definition: DQMSourcePi0.h:312
MonitorElement * hiPhiDistrEBpi0_
Distribution of rechits in iPhi (pi0)
Definition: DQMSourcePi0.h:81
MonitorElement * hPt1Pi0EB_
Pt of the 1st most energetic Pi0 photon in EB.
Definition: DQMSourcePi0.h:165
MonitorElement * hPt2Pi0EE_
Pt of the 2nd most energetic Pi0 photon in EE.
Definition: DQMSourcePi0.h:181
MonitorElement * hiYDistrEEpi0_
Distribution of rechits in iy EE (pi0)
Definition: DQMSourcePi0.h:96
double ptMinForIsolationEtaEndCap_
Definition: DQMSourcePi0.h:302
MonitorElement * hPtPi0EE_
Pi0 Pt in EE.
Definition: DQMSourcePi0.h:194
MonitorElement * hMinvEtaEB_
Eta invariant mass in EB.
Definition: DQMSourcePi0.h:159
double seleEtaBeltDR_
Definition: DQMSourcePi0.h:292
std::vector< EEDetId > detIdEERecHits
Definition: DQMSourcePi0.h:321
void endRun(const edm::Run &r, const edm::EventSetup &c)
PositionCalc posCalculator_
Definition: DQMSourcePi0.h:78
double seleMinvMinEtaEndCap_
Definition: DQMSourcePi0.h:301
MonitorElement * hS4S92EtaEB_
S4S9 of the 2nd most energetic eta photon.
Definition: DQMSourcePi0.h:233
std::vector< EBDetId > detIdEBRecHits
Definition: DQMSourcePi0.h:317
double selePtGammaEndCap_
for pi0-&gt;gg endcap
Definition: DQMSourcePi0.h:273
MonitorElement * hMeanRecHitEnergyEBeta_
Distribution of Mean energy per rechit EB (eta)
Definition: DQMSourcePi0.h:147
edm::InputTag productMonitoredEEpi0_
object to monitor
Definition: DQMSourcePi0.h:246
double ParameterT0_endc_
Definition: DQMSourcePi0.h:311
double seleMinvMaxPi0EndCap_
Definition: DQMSourcePi0.h:275
std::string folderName_
DQM folder name.
Definition: DQMSourcePi0.h:330
MonitorElement * hMeanRecHitEnergyEEpi0_
Distribution of Mean energy per rechit EE (pi0)
Definition: DQMSourcePi0.h:144
MonitorElement * hNRecHitsEBpi0_
Distribution of number of RecHits EB (pi0)
Definition: DQMSourcePi0.h:129
MonitorElement * hPt2EtaEE_
Pt of the 2nd most energetic Eta photon in EE.
Definition: DQMSourcePi0.h:187
MonitorElement * hRechitEnergyEBpi0_
Energy Distribution of rechits EB (pi0)
Definition: DQMSourcePi0.h:105
std::string fileName_
Output file name if required.
Definition: DQMSourcePi0.h:342
double clusSeedThr_
Definition: DQMSourcePi0.h:255
MonitorElement * hRechitEnergyEEpi0_
Energy Distribution of rechits EE (pi0)
Definition: DQMSourcePi0.h:108
double seleMinvMaxEtaEndCap_
Definition: DQMSourcePi0.h:300
std::vector< EcalRecHit > EERecHits
Definition: DQMSourcePi0.h:322
MonitorElement * hPtEtaEB_
Eta Pt in EB.
Definition: DQMSourcePi0.h:197
double selePi0Iso_
Definition: DQMSourcePi0.h:269
MonitorElement * hIsoEtaEB_
Eta Iso EB.
Definition: DQMSourcePi0.h:209
double selePtEtaEndCap_
Definition: DQMSourcePi0.h:299
bool saveToFile_
Write to file.
Definition: DQMSourcePi0.h:333
double seleS4S9GammaEtaEndCap_
Definition: DQMSourcePi0.h:297
MonitorElement * hIsoPi0EB_
Pi0 Iso EB.
Definition: DQMSourcePi0.h:203
MonitorElement * hS4S91Pi0EE_
S4S9 of the 1st most energetic pi0 photon EE.
Definition: DQMSourcePi0.h:218
MonitorElement * hS4S91EtaEB_
S4S9 of the 1st most energetic eta photon.
Definition: DQMSourcePi0.h:221
double selePi0BeltDeta_
Definition: DQMSourcePi0.h:268
double seleS4S9Gamma_
Definition: DQMSourcePi0.h:266
double ptMinForIsolationEta_
Definition: DQMSourcePi0.h:290
DQMStore * dbe_
Definition: DQMSourcePi0.h:76
std::map< DetId, EcalRecHit > RecHitsMap
Definition: HLTAlCaMonPi0.h:24
double seleMinvMinPi0_
Definition: DQMSourcePi0.h:265
MonitorElement * hMinvPi0EB_
Pi0 invariant mass in EB.
Definition: DQMSourcePi0.h:153
double seleMinvMaxEta_
Definition: DQMSourcePi0.h:288
MonitorElement * hS4S92Pi0EE_
S4S9 of the 2nd most energetic pi0 photon EE.
Definition: DQMSourcePi0.h:230
void convxtalid(int &, int &)
double ptMinForIsolationEndCap_
Definition: DQMSourcePi0.h:281
bool ParameterLogWeighted_
Definition: DQMSourcePi0.h:308
double seleS4S9GammaEta_
Definition: DQMSourcePi0.h:286
MonitorElement * hiEtaDistrEBpi0_
Distribution of rechits in iEta (pi0)
Definition: DQMSourcePi0.h:93
double selePi0BeltDetaEndCap_
Definition: DQMSourcePi0.h:280
void beginRun(const edm::Run &r, const edm::EventSetup &c)
MonitorElement * hS4S91Pi0EB_
S4S9 of the 1st most energetic pi0 photon.
Definition: DQMSourcePi0.h:215
MonitorElement * hiXDistrEEpi0_
Distribution of rechits in ix EE (pi0)
Definition: DQMSourcePi0.h:84
MonitorElement * hiEtaDistrEBeta_
Distribution of rechits in iEta (eta)
Definition: DQMSourcePi0.h:99
bool isMonEBpi0_
which subdet will be monitored
Definition: DQMSourcePi0.h:336
double ParameterX0_
Definition: DQMSourcePi0.h:309
double selePtPi0EndCap_
Definition: DQMSourcePi0.h:274
float energy() const
Definition: CaloRecHit.h:19
double seleMinvMinEta_
Definition: DQMSourcePi0.h:289
double selePtGammaEtaEndCap_
for eta-&gt;gg endcap
Definition: DQMSourcePi0.h:296
int diff_nphi_s(int, int)
double ptMinForIsolation_
Definition: DQMSourcePi0.h:270
int diff_neta_s(int, int)
double seleXtalMinEnergy_
Definition: DQMSourcePi0.h:252
DQMSourcePi0(const edm::ParameterSet &)
Definition: DQMSourcePi0.cc:52
edm::InputTag productMonitoredEBeta_
Definition: DQMSourcePi0.h:243
double seleEtaBeltDeta_
Definition: DQMSourcePi0.h:293
MonitorElement * hPtEtaEE_
Eta Pt in EE.
Definition: DQMSourcePi0.h:200
double seleXtalMinEnergyEndCap_
Definition: DQMSourcePi0.h:253
edm::InputTag productMonitoredEBpi0_
object to monitor
Definition: DQMSourcePi0.h:242
double seleS9S25GammaEtaEndCap_
Definition: DQMSourcePi0.h:298
double selePi0BeltDR_
Definition: DQMSourcePi0.h:267
MonitorElement * hEventEnergyEEpi0_
Distribution of total event energy EE (pi0)
Definition: DQMSourcePi0.h:120
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
MonitorElement * hNRecHitsEEeta_
Distribution of number of RecHits EE (eta)
Definition: DQMSourcePi0.h:138
double selePtGammaEta_
for eta-&gt;gg barrel
Definition: DQMSourcePi0.h:284
void analyze(const edm::Event &e, const edm::EventSetup &c)
double seleEtaBeltDetaEndCap_
Definition: DQMSourcePi0.h:305
MonitorElement * hiPhiDistrEBeta_
Distribution of rechits in iPhi (eta)
Definition: DQMSourcePi0.h:87
double selePtEta_
Definition: DQMSourcePi0.h:285
MonitorElement * hRechitEnergyEBeta_
Energy Distribution of rechits EB (eta)
Definition: DQMSourcePi0.h:111
MonitorElement * hPt1EtaEE_
Pt of the 1st most energetic Eta photon in EE.
Definition: DQMSourcePi0.h:174
MonitorElement * hEventEnergyEBpi0_
Distribution of total event energy EB (pi0)
Definition: DQMSourcePi0.h:117
double seleEtaIso_
Definition: DQMSourcePi0.h:291
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
MonitorElement * hPt1EtaEB_
Pt of the 1st most energetic Eta photon in EB.
Definition: DQMSourcePi0.h:171
MonitorElement * hEventEnergyEBeta_
Distribution of total event energy EB (eta)
Definition: DQMSourcePi0.h:123
MonitorElement * hIsoEtaEE_
Eta Iso EE.
Definition: DQMSourcePi0.h:212
MonitorElement * hS4S92Pi0EB_
S4S9 of the 2nd most energetic pi0 photon.
Definition: DQMSourcePi0.h:227
double selePi0IsoEndCap_
Definition: DQMSourcePi0.h:278
double ParameterW0_
Definition: DQMSourcePi0.h:313
MonitorElement * hPt2EtaEB_
Pt of the 2nd most energetic Eta photon in EB.
Definition: DQMSourcePi0.h:184
double seleMinvMaxPi0_
Definition: DQMSourcePi0.h:264
std::vector< EcalRecHit > EBRecHits
Definition: DQMSourcePi0.h:318
MonitorElement * hMinvEtaEE_
Eta invariant mass in EE.
Definition: DQMSourcePi0.h:162
MonitorElement * hPtPi0EB_
Pi0 Pt in EB.
Definition: DQMSourcePi0.h:191
double seleEtaIsoEndCap_
Definition: DQMSourcePi0.h:303
MonitorElement * hS4S92EtaEE_
S4S9 of the 2nd most energetic eta photon EE.
Definition: DQMSourcePi0.h:236
unsigned int prescaleFactor_
Monitor every prescaleFactor_ events.
Definition: DQMSourcePi0.h:327
MonitorElement * hMeanRecHitEnergyEEeta_
Distribution of Mean energy per rechit EE (eta)
Definition: DQMSourcePi0.h:150
MonitorElement * hIsoPi0EE_
Pi0 Iso EE.
Definition: DQMSourcePi0.h:206
double selePtPi0_
Definition: DQMSourcePi0.h:263
double seleS4S9GammaEndCap_
Definition: DQMSourcePi0.h:277
MonitorElement * hNRecHitsEBeta_
Distribution of number of RecHits EB (eta)
Definition: DQMSourcePi0.h:135
MonitorElement * hPt1Pi0EE_
Pt of the 1st most energetic Pi0 photon in EE.
Definition: DQMSourcePi0.h:168
Definition: DDAxes.h:10
MonitorElement * hS4S91EtaEE_
S4S9 of the 1st most energetic eta photon EE.
Definition: DQMSourcePi0.h:224
edm::InputTag productMonitoredEEeta_
Definition: DQMSourcePi0.h:247
MonitorElement * hRechitEnergyEEeta_
Energy Distribution of rechits EE (eta)
Definition: DQMSourcePi0.h:114
MonitorElement * hMeanRecHitEnergyEBpi0_
Distribution of Mean energy per rechit EB (pi0)
Definition: DQMSourcePi0.h:141
MonitorElement * hEventEnergyEEeta_
Distribution of total event energy EE (eta)
Definition: DQMSourcePi0.h:126
MonitorElement * hNRecHitsEEpi0_
Distribution of number of RecHits EE (pi0)
Definition: DQMSourcePi0.h:132
int gammaCandPhiSize_
Definition: DQMSourcePi0.h:250
bool operator()(EcalRecHit x, EcalRecHit y)
Definition: DQMSourcePi0.h:30
int gammaCandEtaSize_
Definition: DQMSourcePi0.h:249
double selePi0BeltDREndCap_
Definition: DQMSourcePi0.h:279
Definition: Run.h:33
double seleS9S25GammaEta_
Definition: DQMSourcePi0.h:287
MonitorElement * hPt2Pi0EB_
Pt of the 2nd most energetic Pi0 photon in EB.
Definition: DQMSourcePi0.h:178
double selePtGamma_
Definition: DQMSourcePi0.h:262
double clusSeedThrEndCap_
Definition: DQMSourcePi0.h:259