1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
|
/*
* \file DQMHcalPhiSymAlCaReco.cc
*
* \author Olga Kodolova
*
*
*
* Description: Monitoring of Phi Symmetry Calibration Stream
*/
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
// DQM include files
#include "DQMServices/Core/interface/DQMStore.h"
#include "DQMServices/Core/interface/DQMOneEDAnalyzer.h"
// work on collections
#include "DataFormats/HcalDetId/interface/HcalDetId.h"
#include "DataFormats/HcalDetId/interface/HcalSubdetector.h"
#include "DataFormats/HcalRecHit/interface/HcalRecHitCollections.h"
#include "DataFormats/FEDRawData/interface/FEDHeader.h"
#include "DataFormats/FEDRawData/interface/FEDNumbering.h"
#include "DataFormats/FEDRawData/interface/FEDRawData.h"
#include "DataFormats/FEDRawData/interface/FEDRawDataCollection.h"
#include "Geometry/CaloGeometry/interface/CaloCellGeometry.h"
#include "Geometry/CaloGeometry/interface/CaloSubdetectorGeometry.h"
#include "EventFilter/HcalRawToDigi/interface/HcalDCCHeader.h"
#include "EventFilter/HcalRawToDigi/interface/HcalHTRData.h"
class DQMHcalPhiSymAlCaReco : public DQMOneEDAnalyzer<> {
public:
DQMHcalPhiSymAlCaReco(const edm::ParameterSet &);
~DQMHcalPhiSymAlCaReco() override;
protected:
// void beginRun(const edm::Run& r, const edm::EventSetup& c);
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
void analyze(const edm::Event &e, const edm::EventSetup &c) override;
void dqmEndRun(const edm::Run &r, const edm::EventSetup &c) override;
private:
int eventCounter_;
//
// Monitor elements
//
MonitorElement *hiDistrMBPl2D_;
MonitorElement *hiDistrNoisePl2D_;
MonitorElement *hiDistrMBMin2D_;
MonitorElement *hiDistrNoiseMin2D_;
MonitorElement *hiDistrMB2Pl2D_;
MonitorElement *hiDistrNoise2Pl2D_;
MonitorElement *hiDistrMB2Min2D_;
MonitorElement *hiDistrNoise2Min2D_;
MonitorElement *hiDistrVarMBPl2D_;
MonitorElement *hiDistrVarNoisePl2D_;
MonitorElement *hiDistrVarMBMin2D_;
MonitorElement *hiDistrVarNoiseMin2D_;
MonitorElement *hiDistrHBHEsize1D_;
MonitorElement *hiDistrHFsize1D_;
MonitorElement *hFEDsize;
MonitorElement *hHcalIsZS;
MonitorElement *hL1Id;
int hiDistr_y_nbin_;
int hiDistr_x_nbin_;
double hiDistr_y_min_;
double hiDistr_y_max_;
double hiDistr_x_min_;
double hiDistr_x_max_;
int hiDistr_r_nbin_;
double ihbhe_size_;
double ihf_size_;
bool perLSsaving_; //to avoid nanoDQMIO crashing, driven by DQMServices/Core/python/DQMStore_cfi.py
/// object to monitor
edm::EDGetTokenT<HBHERecHitCollection> hbherecoMB;
edm::InputTag horecoMB;
edm::EDGetTokenT<HFRecHitCollection> hfrecoMB;
edm::EDGetTokenT<HBHERecHitCollection> hbherecoNoise;
edm::InputTag horecoNoise;
edm::EDGetTokenT<HFRecHitCollection> hfrecoNoise;
edm::EDGetTokenT<FEDRawDataCollection> rawInLabel_;
/// DQM folder name
std::string folderName_;
/// Write to file
bool saveToFile_;
// period of ZS
unsigned int period_;
/// Output file name if required
std::string fileName_;
};
// ******************************************
// constructors
// *****************************************
DQMHcalPhiSymAlCaReco::DQMHcalPhiSymAlCaReco(const edm::ParameterSet &ps) : eventCounter_(0) {
//
// Input from configurator file
//
folderName_ = ps.getUntrackedParameter<std::string>("FolderName", "ALCAStreamHcalPhiSym");
hbherecoMB = consumes<HBHERecHitCollection>(ps.getParameter<edm::InputTag>("hbheInputMB"));
horecoMB = ps.getParameter<edm::InputTag>("hoInputMB");
hfrecoMB = consumes<HFRecHitCollection>(ps.getParameter<edm::InputTag>("hfInputMB"));
hbherecoNoise = consumes<HBHERecHitCollection>(ps.getParameter<edm::InputTag>("hbheInputNoise"));
horecoNoise = ps.getParameter<edm::InputTag>("hoInputNoise");
hfrecoNoise = consumes<HFRecHitCollection>(ps.getParameter<edm::InputTag>("hfInputNoise"));
rawInLabel_ = consumes<FEDRawDataCollection>(ps.getParameter<edm::InputTag>("rawInputLabel"));
period_ = ps.getParameter<unsigned int>("period");
saveToFile_ = ps.getUntrackedParameter<bool>("SaveToFile", false);
fileName_ = ps.getUntrackedParameter<std::string>("FileName", "MonitorAlCaHcalPhiSym.root");
perLSsaving_ = (ps.getUntrackedParameter<bool>("perLSsaving", false));
// histogram parameters
// Distribution of rechits in iPhi, iEta
hiDistr_y_nbin_ = ps.getUntrackedParameter<int>("hiDistr_y_nbin", 72);
hiDistr_y_min_ = ps.getUntrackedParameter<double>("hiDistr_y_min", 0.5);
hiDistr_y_max_ = ps.getUntrackedParameter<double>("hiDistr_y_max", 72.5);
hiDistr_x_nbin_ = ps.getUntrackedParameter<int>("hiDistr_x_nbin", 41);
hiDistr_x_min_ = ps.getUntrackedParameter<double>("hiDistr_x_min", 0.5);
hiDistr_x_max_ = ps.getUntrackedParameter<double>("hiDistr_x_max", 41.5);
// Check for NZS
hiDistr_r_nbin_ = ps.getUntrackedParameter<int>("hiDistr_r_nbin", 100);
ihbhe_size_ = ps.getUntrackedParameter<double>("ihbhe_size_", 5184.);
ihf_size_ = ps.getUntrackedParameter<double>("ihf_size_", 1728.);
}
DQMHcalPhiSymAlCaReco::~DQMHcalPhiSymAlCaReco() {}
//--------------------------------------------------------
void DQMHcalPhiSymAlCaReco::bookHistograms(DQMStore::IBooker &ibooker,
edm::Run const &irun,
edm::EventSetup const &isetup) {
// create and cd into new folder
ibooker.setCurrentFolder(folderName_);
eventCounter_ = 0;
hFEDsize = ibooker.book1D("hFEDsize", "HCAL FED size (kB)", 200, -0.5, 20.5);
hFEDsize->setAxisTitle("kB", 1);
hHcalIsZS = ibooker.book1D("hHcalIsZS", "Hcal Is ZS", 4, -1.5, 2.5);
hHcalIsZS->setBinLabel(2, "NZS");
hHcalIsZS->setBinLabel(3, "ZS");
char hname[50];
sprintf(hname, "L1 Event Number %% %i", period_);
hL1Id = ibooker.book1D("hL1Id", hname, 4200, -99.5, 4099.5);
hL1Id->setAxisTitle(hname);
// book some histograms 1D
double xmin = 0.1;
double xmax = 1.1;
hiDistrHBHEsize1D_ = ibooker.book1D("DistrHBHEsize", "Size of HBHE Collection", hiDistr_r_nbin_, xmin, xmax);
hiDistrHFsize1D_ = ibooker.book1D("DistrHFsize", "Size of HF Collection", hiDistr_r_nbin_, xmin, xmax);
// First moment
hiDistrMBPl2D_ = ibooker.book2D("MBdepthPl1",
"iphi- +ieta signal distribution at depth1",
hiDistr_x_nbin_,
hiDistr_x_min_,
hiDistr_x_max_,
hiDistr_y_nbin_,
hiDistr_y_min_,
hiDistr_y_max_);
hiDistrMBPl2D_->setAxisTitle("i#phi ", 2);
hiDistrMBPl2D_->setAxisTitle("i#eta ", 1);
hiDistrNoisePl2D_ = ibooker.book2D("NoisedepthPl1",
"iphi-ieta noise distribution at depth1",
hiDistr_x_nbin_ + 1,
hiDistr_x_min_ - 1.,
hiDistr_x_max_,
hiDistr_y_nbin_ + 1,
hiDistr_y_min_ - 1.,
hiDistr_y_max_);
hiDistrNoisePl2D_->setAxisTitle("i#phi ", 2);
hiDistrNoisePl2D_->setAxisTitle("i#eta ", 1);
// Second moment
hiDistrMB2Pl2D_ = ibooker.book2D("MB2depthPl1",
"iphi- +ieta signal distribution at depth1",
hiDistr_x_nbin_,
hiDistr_x_min_,
hiDistr_x_max_,
hiDistr_y_nbin_,
hiDistr_y_min_,
hiDistr_y_max_);
hiDistrMB2Pl2D_->setAxisTitle("i#phi ", 2);
hiDistrMB2Pl2D_->setAxisTitle("i#eta ", 1);
hiDistrNoise2Pl2D_ = ibooker.book2D("Noise2depthPl1",
"iphi-ieta noise distribution at depth1",
hiDistr_x_nbin_,
hiDistr_x_min_,
hiDistr_x_max_,
hiDistr_y_nbin_,
hiDistr_y_min_,
hiDistr_y_max_);
hiDistrNoise2Pl2D_->setAxisTitle("i#phi ", 2);
hiDistrNoise2Pl2D_->setAxisTitle("i#eta ", 1);
// Variance
hiDistrVarMBPl2D_ = ibooker.book2D("VarMBdepthPl1",
"iphi- +ieta signal distribution at depth1",
hiDistr_x_nbin_,
hiDistr_x_min_,
hiDistr_x_max_,
hiDistr_y_nbin_,
hiDistr_y_min_,
hiDistr_y_max_);
hiDistrVarMBPl2D_->setAxisTitle("i#phi ", 2);
hiDistrVarMBPl2D_->setAxisTitle("i#eta ", 1);
hiDistrVarNoisePl2D_ = ibooker.book2D("VarNoisedepthPl1",
"iphi-ieta noise distribution at depth1",
hiDistr_x_nbin_,
hiDistr_x_min_,
hiDistr_x_max_,
hiDistr_y_nbin_,
hiDistr_y_min_,
hiDistr_y_max_);
hiDistrVarNoisePl2D_->setAxisTitle("i#phi ", 2);
hiDistrVarNoisePl2D_->setAxisTitle("i#eta ", 1);
//==================================================================================
// First moment
hiDistrMBMin2D_ = ibooker.book2D("MBdepthMin1",
"iphi- +ieta signal distribution at depth1",
hiDistr_x_nbin_,
hiDistr_x_min_,
hiDistr_x_max_,
hiDistr_y_nbin_,
hiDistr_y_min_,
hiDistr_y_max_);
hiDistrMBMin2D_->setAxisTitle("i#phi ", 2);
hiDistrMBMin2D_->setAxisTitle("i#eta ", 1);
hiDistrNoiseMin2D_ = ibooker.book2D("NoisedepthMin1",
"iphi-ieta noise distribution at depth1",
hiDistr_x_nbin_,
hiDistr_x_min_,
hiDistr_x_max_,
hiDistr_y_nbin_,
hiDistr_y_min_,
hiDistr_y_max_);
hiDistrNoiseMin2D_->setAxisTitle("i#phi ", 2);
hiDistrNoiseMin2D_->setAxisTitle("i#eta ", 1);
// Second moment
hiDistrMB2Min2D_ = ibooker.book2D("MB2depthMin1",
"iphi- +ieta signal distribution at depth1",
hiDistr_x_nbin_,
hiDistr_x_min_,
hiDistr_x_max_,
hiDistr_y_nbin_,
hiDistr_y_min_,
hiDistr_y_max_);
hiDistrMB2Min2D_->setAxisTitle("i#phi ", 2);
hiDistrMB2Min2D_->setAxisTitle("i#eta ", 1);
hiDistrNoise2Min2D_ = ibooker.book2D("Noise2depthMin1",
"iphi-ieta noise distribution at depth1",
hiDistr_x_nbin_,
hiDistr_x_min_,
hiDistr_x_max_,
hiDistr_y_nbin_,
hiDistr_y_min_,
hiDistr_y_max_);
hiDistrNoise2Min2D_->setAxisTitle("i#phi ", 2);
hiDistrNoise2Min2D_->setAxisTitle("i#eta ", 1);
// Variance
hiDistrVarMBMin2D_ = ibooker.book2D("VarMBdepthMin1",
"iphi- +ieta signal distribution at depth1",
hiDistr_x_nbin_,
hiDistr_x_min_,
hiDistr_x_max_,
hiDistr_y_nbin_,
hiDistr_y_min_,
hiDistr_y_max_);
hiDistrVarMBMin2D_->setAxisTitle("i#phi ", 2);
hiDistrVarMBMin2D_->setAxisTitle("i#eta ", 1);
hiDistrVarNoiseMin2D_ = ibooker.book2D("VarNoisedepthMin1",
"iphi-ieta noise distribution at depth1",
hiDistr_x_nbin_,
hiDistr_x_min_,
hiDistr_x_max_,
hiDistr_y_nbin_,
hiDistr_y_min_,
hiDistr_y_max_);
hiDistrVarNoiseMin2D_->setAxisTitle("i#phi ", 2);
hiDistrVarNoiseMin2D_->setAxisTitle("i#eta ", 1);
}
//--------------------------------------------------------
// void DQMHcalPhiSymAlCaReco::beginRun(const edm::Run& r, const EventSetup&
// context) {
//// eventCounter_ = 0;
//}
//--------------------------------------------------------
//-------------------------------------------------------------
void DQMHcalPhiSymAlCaReco::analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) {
eventCounter_++;
edm::Handle<FEDRawDataCollection> rawIn;
iEvent.getByToken(rawInLabel_, rawIn);
if (!rawIn.isValid()) {
LogDebug("") << "HcalCalibAlgos: Error! can't get hbhe product!" << std::endl;
return;
}
// get HCAL FEDs:
std::vector<int> selFEDs;
for (int i = FEDNumbering::MINHCALFEDID; i <= FEDNumbering::MAXHCALFEDID; i++) {
selFEDs.push_back(i);
}
// std::cout<<" Size of FED "<<selFEDs.size()<<std::endl;
const FEDRawDataCollection *rdc = rawIn.product();
bool hcalIsZS = false;
int lvl1ID = 0;
bool lvl1IDFound = false;
for (unsigned int k = 0; k < selFEDs.size(); k++) {
const FEDRawData &fedData = rdc->FEDData(selFEDs[k]);
// std::cout<<fedData.size()*std::pow(1024.,-1)<<std::endl;
hFEDsize->Fill(fedData.size() * std::pow(1024., -1), 1);
// get HCAL DCC Header for each FEDRawData
const HcalDCCHeader *dccHeader = (const HcalDCCHeader *)(fedData.data());
if (dccHeader) {
// walk through the HTR data...
HcalHTRData htr;
int nspigot = 0;
for (int spigot = 0; spigot < HcalDCCHeader::SPIGOT_COUNT; spigot++) {
nspigot++;
if (!dccHeader->getSpigotPresent(spigot))
continue;
// Load the given decoder with the pointer and length from this spigot.
dccHeader->getSpigotData(spigot, htr, fedData.size());
if (k != 20 && nspigot != 14) {
if (!htr.isUnsuppressed()) {
hcalIsZS = true;
}
}
}
}
// try to get the lvl1ID from the HCAL fed
if (!lvl1IDFound && (fedData.size() > 0)) {
// get FED Header for FEDRawData
FEDHeader fedHeader(fedData.data());
lvl1ID = fedHeader.lvl1ID();
lvl1IDFound = true;
}
} // loop over HcalFEDs
hHcalIsZS->Fill(hcalIsZS);
hL1Id->Fill(lvl1ID % period_);
edm::Handle<HBHERecHitCollection> hbheNS;
iEvent.getByToken(hbherecoNoise, hbheNS);
if (!hbheNS.isValid()) {
LogDebug("") << "HcalCalibAlgos: Error! can't get hbhe product!" << std::endl;
return;
}
edm::Handle<HBHERecHitCollection> hbheMB;
iEvent.getByToken(hbherecoMB, hbheMB);
if (!hbheMB.isValid()) {
LogDebug("") << "HcalCalibAlgos: Error! can't get hbhe product!" << std::endl;
return;
}
edm::Handle<HFRecHitCollection> hfNS;
iEvent.getByToken(hfrecoNoise, hfNS);
if (!hfNS.isValid()) {
LogDebug("") << "HcalCalibAlgos: Error! can't get hbhe product!" << std::endl;
return;
}
edm::Handle<HFRecHitCollection> hfMB;
iEvent.getByToken(hfrecoMB, hfMB);
if (!hfMB.isValid()) {
LogDebug("") << "HcalCalibAlgos: Error! can't get hbhe product!" << std::endl;
return;
}
const HBHERecHitCollection HithbheNS = *(hbheNS.product());
hiDistrHBHEsize1D_->Fill(HithbheNS.size() / ihbhe_size_);
for (HBHERecHitCollection::const_iterator hbheItr = HithbheNS.begin(); hbheItr != HithbheNS.end(); hbheItr++) {
DetId id = (*hbheItr).detid();
HcalDetId hid = HcalDetId(id);
if (hid.depth() == 1) {
if (hid.ieta() > 0) {
hiDistrNoisePl2D_->Fill(hid.ieta(), hid.iphi(), hbheItr->energy());
hiDistrNoise2Pl2D_->Fill(hid.ieta(), hid.iphi(), hbheItr->energy() * hbheItr->energy());
} else {
hiDistrNoiseMin2D_->Fill(std::abs(hid.ieta()), hid.iphi(), hbheItr->energy());
hiDistrNoise2Min2D_->Fill(std::abs(hid.ieta()), hid.iphi(), hbheItr->energy() * hbheItr->energy());
}
}
}
const HBHERecHitCollection HithbheMB = *(hbheMB.product());
for (HBHERecHitCollection::const_iterator hbheItr = HithbheMB.begin(); hbheItr != HithbheMB.end(); hbheItr++) {
DetId id = (*hbheItr).detid();
HcalDetId hid = HcalDetId(id);
if (hid.depth() == 1) {
if (hid.ieta() > 0) {
hiDistrMBPl2D_->Fill(hid.ieta(), hid.iphi(), hbheItr->energy());
hiDistrMB2Pl2D_->Fill(hid.ieta(), hid.iphi(), hbheItr->energy() * hbheItr->energy());
} else {
hiDistrMBMin2D_->Fill(std::abs(hid.ieta()), hid.iphi(), hbheItr->energy());
hiDistrMB2Min2D_->Fill(std::abs(hid.ieta()), hid.iphi(), hbheItr->energy() * hbheItr->energy());
}
}
}
const HFRecHitCollection HithfNS = *(hfNS.product());
hiDistrHFsize1D_->Fill(HithfNS.size() / ihf_size_);
for (HFRecHitCollection::const_iterator hbheItr = HithfNS.begin(); hbheItr != HithfNS.end(); hbheItr++) {
DetId id = (*hbheItr).detid();
HcalDetId hid = HcalDetId(id);
if (hid.depth() == 1) {
if (hid.ieta() > 0) {
hiDistrNoisePl2D_->Fill(hid.ieta(), hid.iphi(), hbheItr->energy());
hiDistrNoise2Pl2D_->Fill(hid.ieta(), hid.iphi(), hbheItr->energy() * hbheItr->energy());
} else {
hiDistrNoiseMin2D_->Fill(std::abs(hid.ieta()), hid.iphi(), hbheItr->energy());
hiDistrNoise2Min2D_->Fill(std::abs(hid.ieta()), hid.iphi(), hbheItr->energy() * hbheItr->energy());
}
}
}
const HFRecHitCollection HithfMB = *(hfMB.product());
for (HFRecHitCollection::const_iterator hbheItr = HithfMB.begin(); hbheItr != HithfMB.end(); hbheItr++) {
DetId id = (*hbheItr).detid();
HcalDetId hid = HcalDetId(id);
if (hid.depth() == 1) {
if (hid.ieta() > 0) {
hiDistrMBPl2D_->Fill(hid.ieta(), hid.iphi(), hbheItr->energy());
hiDistrMB2Pl2D_->Fill(hid.ieta(), hid.iphi(), hbheItr->energy() * hbheItr->energy());
} else {
hiDistrMBMin2D_->Fill(std::abs(hid.ieta()), hid.iphi(), hbheItr->energy());
hiDistrMB2Min2D_->Fill(std::abs(hid.ieta()), hid.iphi(), hbheItr->energy() * hbheItr->energy());
}
}
}
} // analyze
//--------------------------------------------------------
//--------------------------------------------------------
void DQMHcalPhiSymAlCaReco::dqmEndRun(const edm::Run &r, const edm::EventSetup &context) {
// Keep Variances
if (eventCounter_ > 0 && !perLSsaving_) {
for (int k = 0; k <= hiDistr_x_nbin_; k++) {
for (int j = 0; j <= hiDistr_y_nbin_; j++) {
// First moment
float cc1 = hiDistrMBPl2D_->getBinContent(k, j);
cc1 = cc1 * 1. / eventCounter_;
float cc2 = hiDistrNoisePl2D_->getBinContent(k, j);
cc2 = cc2 * 1. / eventCounter_;
float cc3 = hiDistrMBMin2D_->getBinContent(k, j);
cc3 = cc3 * 1. / eventCounter_;
float cc4 = hiDistrNoiseMin2D_->getBinContent(k, j);
cc4 = cc4 * 1. / eventCounter_;
// Second moment
float cc11 = hiDistrMB2Pl2D_->getBinContent(k, j);
cc11 = cc11 * 1. / eventCounter_;
hiDistrVarMBPl2D_->setBinContent(k, j, cc11 - cc1 * cc1);
float cc22 = hiDistrNoise2Pl2D_->getBinContent(k, j);
cc22 = cc22 * 1. / eventCounter_;
hiDistrVarNoisePl2D_->setBinContent(k, j, cc22 - cc2 * cc2);
float cc33 = hiDistrMB2Min2D_->getBinContent(k, j);
cc33 = cc33 * 1. / eventCounter_;
hiDistrVarMBMin2D_->setBinContent(k, j, cc33 - cc3 * cc3);
float cc44 = hiDistrNoise2Min2D_->getBinContent(k, j);
cc44 = cc44 * 1. / eventCounter_;
hiDistrVarNoiseMin2D_->setBinContent(k, j, cc44 - cc4 * cc4);
}
}
}
}
DEFINE_FWK_MODULE(DQMHcalPhiSymAlCaReco);
|