CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Attributes
DQMHcalPhiSymAlCaReco Class Reference

#include <DQMHcalPhiSymAlCaReco.h>

Inheritance diagram for DQMHcalPhiSymAlCaReco:
one::DQMEDAnalyzer< T > one::dqmimplementation::DQMBaseClass< T... >

Public Member Functions

 DQMHcalPhiSymAlCaReco (const edm::ParameterSet &)
 
 ~DQMHcalPhiSymAlCaReco () override
 
- Public Member Functions inherited from one::DQMEDAnalyzer< T >
 DQMEDAnalyzer ()=default
 
 DQMEDAnalyzer (DQMEDAnalyzer< T... > const &)=delete
 
 DQMEDAnalyzer (DQMEDAnalyzer< T... > &&)=delete
 
 ~DQMEDAnalyzer () override=default
 

Protected Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
void endRun (const edm::Run &r, const edm::EventSetup &c) override
 

Private Attributes

int eventCounter_
 
std::string fileName_
 Output file name if required. More...
 
std::string folderName_
 DQM folder name. More...
 
edm::EDGetTokenT< HBHERecHitCollectionhbherecoMB
 object to monitor More...
 
edm::EDGetTokenT< HBHERecHitCollectionhbherecoNoise
 
MonitorElementhFEDsize
 
edm::EDGetTokenT< HFRecHitCollectionhfrecoMB
 
edm::EDGetTokenT< HFRecHitCollectionhfrecoNoise
 
MonitorElementhHcalIsZS
 
int hiDistr_r_nbin_
 
double hiDistr_x_max_
 
double hiDistr_x_min_
 
int hiDistr_x_nbin_
 
double hiDistr_y_max_
 
double hiDistr_y_min_
 
int hiDistr_y_nbin_
 
MonitorElementhiDistrHBHEsize1D_
 
MonitorElementhiDistrHFsize1D_
 
MonitorElementhiDistrMB2Min2D_
 
MonitorElementhiDistrMB2Pl2D_
 
MonitorElementhiDistrMBMin2D_
 
MonitorElementhiDistrMBPl2D_
 
MonitorElementhiDistrNoise2Min2D_
 
MonitorElementhiDistrNoise2Pl2D_
 
MonitorElementhiDistrNoiseMin2D_
 
MonitorElementhiDistrNoisePl2D_
 
MonitorElementhiDistrVarMBMin2D_
 
MonitorElementhiDistrVarMBPl2D_
 
MonitorElementhiDistrVarNoiseMin2D_
 
MonitorElementhiDistrVarNoisePl2D_
 
MonitorElementhL1Id
 
edm::InputTag horecoMB
 
edm::InputTag horecoNoise
 
double ihbhe_size_
 
double ihf_size_
 
unsigned int period_
 
edm::EDGetTokenT< FEDRawDataCollectionrawInLabel_
 
bool saveToFile_
 Write to file. More...
 

Detailed Description

Definition at line 23 of file DQMHcalPhiSymAlCaReco.h.

Constructor & Destructor Documentation

DQMHcalPhiSymAlCaReco::DQMHcalPhiSymAlCaReco ( const edm::ParameterSet ps)

Definition at line 45 of file DQMHcalPhiSymAlCaReco.cc.

References fileName_, folderName_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), hbherecoMB, hbherecoNoise, hfrecoMB, hfrecoNoise, hiDistr_r_nbin_, hiDistr_x_max_, hiDistr_x_min_, hiDistr_x_nbin_, hiDistr_y_max_, hiDistr_y_min_, hiDistr_y_nbin_, horecoMB, horecoNoise, ihbhe_size_, ihf_size_, period_, rawInLabel_, and saveToFile_.

45  : eventCounter_(0) {
46  //
47  // Input from configurator file
48  //
49  folderName_ = ps.getUntrackedParameter<string>("FolderName", "ALCAStreamHcalPhiSym");
50 
51  hbherecoMB = consumes<HBHERecHitCollection>(ps.getParameter<edm::InputTag>("hbheInputMB"));
52  horecoMB = ps.getParameter<edm::InputTag>("hoInputMB");
53  hfrecoMB = consumes<HFRecHitCollection>(ps.getParameter<edm::InputTag>("hfInputMB"));
54 
55  hbherecoNoise = consumes<HBHERecHitCollection>(ps.getParameter<edm::InputTag>("hbheInputNoise"));
56  horecoNoise = ps.getParameter<edm::InputTag>("hoInputNoise");
57  hfrecoNoise = consumes<HFRecHitCollection>(ps.getParameter<edm::InputTag>("hfInputNoise"));
58 
59  rawInLabel_ = consumes<FEDRawDataCollection>(ps.getParameter<edm::InputTag>("rawInputLabel"));
60 
61  period_ = ps.getParameter<unsigned int>("period");
62 
63  saveToFile_ = ps.getUntrackedParameter<bool>("SaveToFile", false);
64  fileName_ = ps.getUntrackedParameter<string>("FileName", "MonitorAlCaHcalPhiSym.root");
65 
66  // histogram parameters
67 
68  // Distribution of rechits in iPhi, iEta
69  hiDistr_y_nbin_ = ps.getUntrackedParameter<int>("hiDistr_y_nbin", 72);
70  hiDistr_y_min_ = ps.getUntrackedParameter<double>("hiDistr_y_min", 0.5);
71  hiDistr_y_max_ = ps.getUntrackedParameter<double>("hiDistr_y_max", 72.5);
72  hiDistr_x_nbin_ = ps.getUntrackedParameter<int>("hiDistr_x_nbin", 41);
73  hiDistr_x_min_ = ps.getUntrackedParameter<double>("hiDistr_x_min", 0.5);
74  hiDistr_x_max_ = ps.getUntrackedParameter<double>("hiDistr_x_max", 41.5);
75  // Check for NZS
76  hiDistr_r_nbin_ = ps.getUntrackedParameter<int>("hiDistr_r_nbin", 100);
77  ihbhe_size_ = ps.getUntrackedParameter<double>("ihbhe_size_", 5184.);
78  ihf_size_ = ps.getUntrackedParameter<double>("ihf_size_", 1728.);
79 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
bool saveToFile_
Write to file.
edm::EDGetTokenT< HBHERecHitCollection > hbherecoNoise
edm::EDGetTokenT< FEDRawDataCollection > rawInLabel_
edm::EDGetTokenT< HFRecHitCollection > hfrecoNoise
std::string folderName_
DQM folder name.
edm::EDGetTokenT< HFRecHitCollection > hfrecoMB
std::string fileName_
Output file name if required.
edm::EDGetTokenT< HBHERecHitCollection > hbherecoMB
object to monitor
DQMHcalPhiSymAlCaReco::~DQMHcalPhiSymAlCaReco ( )
override

Definition at line 81 of file DQMHcalPhiSymAlCaReco.cc.

81 {}

Member Function Documentation

void DQMHcalPhiSymAlCaReco::analyze ( const edm::Event e,
const edm::EventSetup c 
)
overrideprotected

Definition at line 270 of file DQMHcalPhiSymAlCaReco.cc.

References edm::SortedCollection< T, SORT >::begin(), FEDRawData::data(), HcalDetId::depth(), edm::SortedCollection< T, SORT >::end(), eventCounter_, FEDRawDataCollection::FEDData(), MonitorElement::Fill(), edm::Event::getByToken(), HcalDCCHeader::getSpigotData(), HcalDCCHeader::getSpigotPresent(), hbherecoMB, hbherecoNoise, hFEDsize, hfrecoMB, hfrecoNoise, hHcalIsZS, hiDistrHBHEsize1D_, hiDistrHFsize1D_, hiDistrMB2Min2D_, hiDistrMB2Pl2D_, hiDistrMBMin2D_, hiDistrMBPl2D_, hiDistrNoise2Min2D_, hiDistrNoise2Pl2D_, hiDistrNoiseMin2D_, hiDistrNoisePl2D_, hL1Id, mps_fire::i, HcalDetId::ieta(), ihbhe_size_, ihf_size_, HcalDetId::iphi(), HcalHTRData::isUnsuppressed(), edm::HandleBase::isValid(), gen::k, LogDebug, FEDHeader::lvl1ID(), FEDNumbering::MAXHCALFEDID, FEDNumbering::MINHCALFEDID, period_, funct::pow(), edm::Handle< T >::product(), rawInLabel_, FEDRawData::size(), edm::SortedCollection< T, SORT >::size(), and HcalDCCHeader::SPIGOT_COUNT.

270  {
271  eventCounter_++;
272 
274  iEvent.getByToken(rawInLabel_, rawIn);
275 
276  if (!rawIn.isValid()) {
277  LogDebug("") << "HcalCalibAlgos: Error! can't get hbhe product!" << std::endl;
278  return;
279  }
280 
281  // get HCAL FEDs:
282  std::vector<int> selFEDs;
284  selFEDs.push_back(i);
285  }
286 
287  // std::cout<<" Size of FED "<<selFEDs.size()<<std::endl;
288 
289  const FEDRawDataCollection *rdc = rawIn.product();
290 
291  bool hcalIsZS = false;
292  int lvl1ID = 0;
293  bool lvl1IDFound = false;
294  for (unsigned int k = 0; k < selFEDs.size(); k++) {
295  const FEDRawData &fedData = rdc->FEDData(selFEDs[k]);
296  // std::cout<<fedData.size()*std::pow(1024.,-1)<<std::endl;
297  hFEDsize->Fill(fedData.size() * std::pow(1024., -1), 1);
298 
299  // get HCAL DCC Header for each FEDRawData
300  const HcalDCCHeader *dccHeader = (const HcalDCCHeader *)(fedData.data());
301  if (dccHeader) {
302  // walk through the HTR data...
303  HcalHTRData htr;
304 
305  int nspigot = 0;
306  for (int spigot = 0; spigot < HcalDCCHeader::SPIGOT_COUNT; spigot++) {
307  nspigot++;
308 
309  if (!dccHeader->getSpigotPresent(spigot))
310  continue;
311 
312  // Load the given decoder with the pointer and length from this spigot.
313  dccHeader->getSpigotData(spigot, htr, fedData.size());
314 
315  if (k != 20 && nspigot != 14) {
316  if (!htr.isUnsuppressed()) {
317  hcalIsZS = true;
318  }
319  }
320  }
321  }
322 
323  // try to get the lvl1ID from the HCAL fed
324  if (!lvl1IDFound && (fedData.size() > 0)) {
325  // get FED Header for FEDRawData
326  FEDHeader fedHeader(fedData.data());
327  lvl1ID = fedHeader.lvl1ID();
328  lvl1IDFound = true;
329  }
330  } // loop over HcalFEDs
331 
332  hHcalIsZS->Fill(hcalIsZS);
333  hL1Id->Fill(lvl1ID % period_);
334 
336  iEvent.getByToken(hbherecoNoise, hbheNS);
337 
338  if (!hbheNS.isValid()) {
339  LogDebug("") << "HcalCalibAlgos: Error! can't get hbhe product!" << std::endl;
340  return;
341  }
342 
344  iEvent.getByToken(hbherecoMB, hbheMB);
345 
346  if (!hbheMB.isValid()) {
347  LogDebug("") << "HcalCalibAlgos: Error! can't get hbhe product!" << std::endl;
348  return;
349  }
350 
352  iEvent.getByToken(hfrecoNoise, hfNS);
353 
354  if (!hfNS.isValid()) {
355  LogDebug("") << "HcalCalibAlgos: Error! can't get hbhe product!" << std::endl;
356  return;
357  }
358 
360  iEvent.getByToken(hfrecoMB, hfMB);
361 
362  if (!hfMB.isValid()) {
363  LogDebug("") << "HcalCalibAlgos: Error! can't get hbhe product!" << std::endl;
364  return;
365  }
366 
367  const HBHERecHitCollection HithbheNS = *(hbheNS.product());
368 
369  hiDistrHBHEsize1D_->Fill(HithbheNS.size() / ihbhe_size_);
370 
371  for (HBHERecHitCollection::const_iterator hbheItr = HithbheNS.begin(); hbheItr != HithbheNS.end(); hbheItr++) {
372  DetId id = (*hbheItr).detid();
373  HcalDetId hid = HcalDetId(id);
374 
375  if (hid.depth() == 1) {
376  if (hid.ieta() > 0) {
377  hiDistrNoisePl2D_->Fill(hid.ieta(), hid.iphi(), hbheItr->energy());
378  hiDistrNoise2Pl2D_->Fill(hid.ieta(), hid.iphi(), hbheItr->energy() * hbheItr->energy());
379  } else {
380  hiDistrNoiseMin2D_->Fill(fabs(hid.ieta()), hid.iphi(), hbheItr->energy());
381  hiDistrNoise2Min2D_->Fill(fabs(hid.ieta()), hid.iphi(), hbheItr->energy() * hbheItr->energy());
382  }
383  }
384  }
385 
386  const HBHERecHitCollection HithbheMB = *(hbheMB.product());
387 
388  for (HBHERecHitCollection::const_iterator hbheItr = HithbheMB.begin(); hbheItr != HithbheMB.end(); hbheItr++) {
389  DetId id = (*hbheItr).detid();
390  HcalDetId hid = HcalDetId(id);
391 
392  if (hid.depth() == 1) {
393  if (hid.ieta() > 0) {
394  hiDistrMBPl2D_->Fill(hid.ieta(), hid.iphi(), hbheItr->energy());
395  hiDistrMB2Pl2D_->Fill(hid.ieta(), hid.iphi(), hbheItr->energy() * hbheItr->energy());
396  } else {
397  hiDistrMBMin2D_->Fill(fabs(hid.ieta()), hid.iphi(), hbheItr->energy());
398  hiDistrMB2Min2D_->Fill(fabs(hid.ieta()), hid.iphi(), hbheItr->energy() * hbheItr->energy());
399  }
400  }
401  }
402 
403  const HFRecHitCollection HithfNS = *(hfNS.product());
404 
405  hiDistrHFsize1D_->Fill(HithfNS.size() / ihf_size_);
406 
407  for (HFRecHitCollection::const_iterator hbheItr = HithfNS.begin(); hbheItr != HithfNS.end(); hbheItr++) {
408  DetId id = (*hbheItr).detid();
409  HcalDetId hid = HcalDetId(id);
410 
411  if (hid.depth() == 1) {
412  if (hid.ieta() > 0) {
413  hiDistrNoisePl2D_->Fill(hid.ieta(), hid.iphi(), hbheItr->energy());
414  hiDistrNoise2Pl2D_->Fill(hid.ieta(), hid.iphi(), hbheItr->energy() * hbheItr->energy());
415  } else {
416  hiDistrNoiseMin2D_->Fill(fabs(hid.ieta()), hid.iphi(), hbheItr->energy());
417  hiDistrNoise2Min2D_->Fill(fabs(hid.ieta()), hid.iphi(), hbheItr->energy() * hbheItr->energy());
418  }
419  }
420  }
421 
422  const HFRecHitCollection HithfMB = *(hfMB.product());
423 
424  for (HFRecHitCollection::const_iterator hbheItr = HithfMB.begin(); hbheItr != HithfMB.end(); hbheItr++) {
425  DetId id = (*hbheItr).detid();
426  HcalDetId hid = HcalDetId(id);
427 
428  if (hid.depth() == 1) {
429  if (hid.ieta() > 0) {
430  hiDistrMBPl2D_->Fill(hid.ieta(), hid.iphi(), hbheItr->energy());
431  hiDistrMB2Pl2D_->Fill(hid.ieta(), hid.iphi(), hbheItr->energy() * hbheItr->energy());
432  } else {
433  hiDistrMBMin2D_->Fill(fabs(hid.ieta()), hid.iphi(), hbheItr->energy());
434  hiDistrMB2Min2D_->Fill(fabs(hid.ieta()), hid.iphi(), hbheItr->energy() * hbheItr->energy());
435  }
436  }
437  }
438 
439 } // analyze
#define LogDebug(id)
MonitorElement * hiDistrNoisePl2D_
edm::EDGetTokenT< HBHERecHitCollection > hbherecoNoise
std::vector< T >::const_iterator const_iterator
edm::EDGetTokenT< FEDRawDataCollection > rawInLabel_
int getSpigotData(int nspigot, HcalHTRData &decodeTool, int validSize) const
size_t size() const
Lenght of the data buffer in bytes.
Definition: FEDRawData.h:47
void Fill(long long x)
bool isUnsuppressed() const
Is this event an unsuppresed event?
Definition: HcalHTRData.cc:354
MonitorElement * hiDistrMBPl2D_
MonitorElement * hiDistrHFsize1D_
int depth() const
get the tower depth
Definition: HcalDetId.h:166
edm::EDGetTokenT< HFRecHitCollection > hfrecoNoise
int iEvent
Definition: GenABIO.cc:224
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
int ieta() const
get the cell ieta
Definition: HcalDetId.h:159
bool getSpigotPresent(unsigned int nspigot) const
Read the "PRESENT" bit for this spigot.
MonitorElement * hiDistrMB2Pl2D_
bool isValid() const
Definition: HandleBase.h:74
MonitorElement * hiDistrNoise2Min2D_
int k[5][pyjets_maxn]
const_iterator end() const
int iphi() const
get the cell iphi
Definition: HcalDetId.h:161
Definition: DetId.h:18
T const * product() const
Definition: Handle.h:74
MonitorElement * hiDistrMBMin2D_
edm::EDGetTokenT< HFRecHitCollection > hfrecoMB
static const int SPIGOT_COUNT
Definition: HcalDCCHeader.h:19
size_type size() const
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
Definition: FEDRawData.cc:28
MonitorElement * hiDistrNoise2Pl2D_
MonitorElement * hiDistrNoiseMin2D_
uint32_t lvl1ID() const
Level-1 event number generated by the TTC system.
Definition: FEDHeader.cc:22
edm::EDGetTokenT< HBHERecHitCollection > hbherecoMB
object to monitor
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
const_iterator begin() const
MonitorElement * hiDistrHBHEsize1D_
MonitorElement * hiDistrMB2Min2D_
void DQMHcalPhiSymAlCaReco::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  irun,
edm::EventSetup const &  isetup 
)
overrideprotected

Definition at line 84 of file DQMHcalPhiSymAlCaReco.cc.

References DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), eventCounter_, folderName_, hFEDsize, hHcalIsZS, hiDistr_r_nbin_, hiDistr_x_max_, hiDistr_x_min_, hiDistr_x_nbin_, hiDistr_y_max_, hiDistr_y_min_, hiDistr_y_nbin_, hiDistrHBHEsize1D_, hiDistrHFsize1D_, hiDistrMB2Min2D_, hiDistrMB2Pl2D_, hiDistrMBMin2D_, hiDistrMBPl2D_, hiDistrNoise2Min2D_, hiDistrNoise2Pl2D_, hiDistrNoiseMin2D_, hiDistrNoisePl2D_, hiDistrVarMBMin2D_, hiDistrVarMBPl2D_, hiDistrVarNoiseMin2D_, hiDistrVarNoisePl2D_, hL1Id, period_, MonitorElement::setAxisTitle(), MonitorElement::setBinLabel(), DQMStore::IBooker::setCurrentFolder(), TrackerOfflineValidation_Dqm_cff::xmax, and TrackerOfflineValidation_Dqm_cff::xmin.

86  {
87  // create and cd into new folder
89 
90  eventCounter_ = 0;
91 
92  hFEDsize = ibooker.book1D("hFEDsize", "HCAL FED size (kB)", 200, -0.5, 20.5);
93  hFEDsize->setAxisTitle("kB", 1);
94 
95  hHcalIsZS = ibooker.book1D("hHcalIsZS", "Hcal Is ZS", 4, -1.5, 2.5);
96  hHcalIsZS->setBinLabel(2, "NZS");
97  hHcalIsZS->setBinLabel(3, "ZS");
98 
99  char hname[50];
100  sprintf(hname, "L1 Event Number %% %i", period_);
101  hL1Id = ibooker.book1D("hL1Id", hname, 4200, -99.5, 4099.5);
102  hL1Id->setAxisTitle(hname);
103 
104  // book some histograms 1D
105  double xmin = 0.1;
106  double xmax = 1.1;
107  hiDistrHBHEsize1D_ = ibooker.book1D("DistrHBHEsize", "Size of HBHE Collection", hiDistr_r_nbin_, xmin, xmax);
108  hiDistrHFsize1D_ = ibooker.book1D("DistrHFsize", "Size of HF Collection", hiDistr_r_nbin_, xmin, xmax);
109 
110  // First moment
111  hiDistrMBPl2D_ = ibooker.book2D("MBdepthPl1",
112  "iphi- +ieta signal distribution at depth1",
119 
120  hiDistrMBPl2D_->setAxisTitle("i#phi ", 2);
121  hiDistrMBPl2D_->setAxisTitle("i#eta ", 1);
122 
123  hiDistrNoisePl2D_ = ibooker.book2D("NoisedepthPl1",
124  "iphi-ieta noise distribution at depth1",
125  hiDistr_x_nbin_ + 1,
126  hiDistr_x_min_ - 1.,
128  hiDistr_y_nbin_ + 1,
129  hiDistr_y_min_ - 1.,
131 
132  hiDistrNoisePl2D_->setAxisTitle("i#phi ", 2);
133  hiDistrNoisePl2D_->setAxisTitle("i#eta ", 1);
134  // Second moment
135  hiDistrMB2Pl2D_ = ibooker.book2D("MB2depthPl1",
136  "iphi- +ieta signal distribution at depth1",
143 
144  hiDistrMB2Pl2D_->setAxisTitle("i#phi ", 2);
145  hiDistrMB2Pl2D_->setAxisTitle("i#eta ", 1);
146 
147  hiDistrNoise2Pl2D_ = ibooker.book2D("Noise2depthPl1",
148  "iphi-ieta noise distribution at depth1",
155 
156  hiDistrNoise2Pl2D_->setAxisTitle("i#phi ", 2);
157  hiDistrNoise2Pl2D_->setAxisTitle("i#eta ", 1);
158 
159  // Variance
160  hiDistrVarMBPl2D_ = ibooker.book2D("VarMBdepthPl1",
161  "iphi- +ieta signal distribution at depth1",
168 
169  hiDistrVarMBPl2D_->setAxisTitle("i#phi ", 2);
170  hiDistrVarMBPl2D_->setAxisTitle("i#eta ", 1);
171 
172  hiDistrVarNoisePl2D_ = ibooker.book2D("VarNoisedepthPl1",
173  "iphi-ieta noise distribution at depth1",
180 
181  hiDistrVarNoisePl2D_->setAxisTitle("i#phi ", 2);
182  hiDistrVarNoisePl2D_->setAxisTitle("i#eta ", 1);
183 
184  //==================================================================================
185  // First moment
186  hiDistrMBMin2D_ = ibooker.book2D("MBdepthMin1",
187  "iphi- +ieta signal distribution at depth1",
194 
195  hiDistrMBMin2D_->setAxisTitle("i#phi ", 2);
196  hiDistrMBMin2D_->setAxisTitle("i#eta ", 1);
197 
198  hiDistrNoiseMin2D_ = ibooker.book2D("NoisedepthMin1",
199  "iphi-ieta noise distribution at depth1",
206 
207  hiDistrNoiseMin2D_->setAxisTitle("i#phi ", 2);
208  hiDistrNoiseMin2D_->setAxisTitle("i#eta ", 1);
209  // Second moment
210  hiDistrMB2Min2D_ = ibooker.book2D("MB2depthMin1",
211  "iphi- +ieta signal distribution at depth1",
218 
219  hiDistrMB2Min2D_->setAxisTitle("i#phi ", 2);
220  hiDistrMB2Min2D_->setAxisTitle("i#eta ", 1);
221 
222  hiDistrNoise2Min2D_ = ibooker.book2D("Noise2depthMin1",
223  "iphi-ieta noise distribution at depth1",
230 
231  hiDistrNoise2Min2D_->setAxisTitle("i#phi ", 2);
232  hiDistrNoise2Min2D_->setAxisTitle("i#eta ", 1);
233 
234  // Variance
235  hiDistrVarMBMin2D_ = ibooker.book2D("VarMBdepthMin1",
236  "iphi- +ieta signal distribution at depth1",
243 
244  hiDistrVarMBMin2D_->setAxisTitle("i#phi ", 2);
245  hiDistrVarMBMin2D_->setAxisTitle("i#eta ", 1);
246 
247  hiDistrVarNoiseMin2D_ = ibooker.book2D("VarNoisedepthMin1",
248  "iphi-ieta noise distribution at depth1",
255 
256  hiDistrVarNoiseMin2D_->setAxisTitle("i#phi ", 2);
257  hiDistrVarNoiseMin2D_->setAxisTitle("i#eta ", 1);
258 }
MonitorElement * hiDistrNoisePl2D_
MonitorElement * hiDistrVarMBPl2D_
MonitorElement * hiDistrVarNoiseMin2D_
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
MonitorElement * hiDistrMBPl2D_
MonitorElement * hiDistrHFsize1D_
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
MonitorElement * hiDistrVarMBMin2D_
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:106
MonitorElement * hiDistrVarNoisePl2D_
std::string folderName_
DQM folder name.
MonitorElement * hiDistrMB2Pl2D_
MonitorElement * hiDistrNoise2Min2D_
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:109
MonitorElement * hiDistrMBMin2D_
MonitorElement * hiDistrNoise2Pl2D_
MonitorElement * hiDistrNoiseMin2D_
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * hiDistrHBHEsize1D_
MonitorElement * hiDistrMB2Min2D_
void DQMHcalPhiSymAlCaReco::endRun ( const edm::Run r,
const edm::EventSetup c 
)
overrideprotected

Definition at line 443 of file DQMHcalPhiSymAlCaReco.cc.

References eventCounter_, MonitorElement::getBinContent(), hiDistr_x_nbin_, hiDistr_y_nbin_, hiDistrMB2Min2D_, hiDistrMB2Pl2D_, hiDistrMBMin2D_, hiDistrMBPl2D_, hiDistrNoise2Min2D_, hiDistrNoise2Pl2D_, hiDistrNoiseMin2D_, hiDistrNoisePl2D_, hiDistrVarMBMin2D_, hiDistrVarMBPl2D_, hiDistrVarNoiseMin2D_, hiDistrVarNoisePl2D_, gen::k, and MonitorElement::setBinContent().

443  {
444  // Keep Variances
445  if (eventCounter_ > 0) {
446  for (int k = 0; k <= hiDistr_x_nbin_; k++) {
447  for (int j = 0; j <= hiDistr_y_nbin_; j++) {
448  // First moment
449  float cc1 = hiDistrMBPl2D_->getBinContent(k, j);
450  cc1 = cc1 * 1. / eventCounter_;
451  float cc2 = hiDistrNoisePl2D_->getBinContent(k, j);
452  cc2 = cc2 * 1. / eventCounter_;
453  float cc3 = hiDistrMBMin2D_->getBinContent(k, j);
454  cc3 = cc3 * 1. / eventCounter_;
455  float cc4 = hiDistrNoiseMin2D_->getBinContent(k, j);
456  cc4 = cc4 * 1. / eventCounter_;
457  // Second moment
458  float cc11 = hiDistrMB2Pl2D_->getBinContent(k, j);
459  cc11 = cc11 * 1. / eventCounter_;
460  hiDistrVarMBPl2D_->setBinContent(k, j, cc11 - cc1 * cc1);
461  float cc22 = hiDistrNoise2Pl2D_->getBinContent(k, j);
462  cc22 = cc22 * 1. / eventCounter_;
463  hiDistrVarNoisePl2D_->setBinContent(k, j, cc22 - cc2 * cc2);
464  float cc33 = hiDistrMB2Min2D_->getBinContent(k, j);
465  cc33 = cc33 * 1. / eventCounter_;
466  hiDistrVarMBMin2D_->setBinContent(k, j, cc33 - cc3 * cc3);
467  float cc44 = hiDistrNoise2Min2D_->getBinContent(k, j);
468  cc44 = cc44 * 1. / eventCounter_;
469  hiDistrVarNoiseMin2D_->setBinContent(k, j, cc44 - cc4 * cc4);
470  }
471  }
472  }
473 }
MonitorElement * hiDistrNoisePl2D_
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * hiDistrVarMBPl2D_
MonitorElement * hiDistrVarNoiseMin2D_
MonitorElement * hiDistrMBPl2D_
MonitorElement * hiDistrVarMBMin2D_
MonitorElement * hiDistrVarNoisePl2D_
MonitorElement * hiDistrMB2Pl2D_
MonitorElement * hiDistrNoise2Min2D_
int k[5][pyjets_maxn]
MonitorElement * hiDistrMBMin2D_
double getBinContent(int binx) const
get content of bin (1-D)
MonitorElement * hiDistrNoise2Pl2D_
MonitorElement * hiDistrNoiseMin2D_
MonitorElement * hiDistrMB2Min2D_

Member Data Documentation

int DQMHcalPhiSymAlCaReco::eventCounter_
private

Definition at line 36 of file DQMHcalPhiSymAlCaReco.h.

Referenced by analyze(), bookHistograms(), and endRun().

std::string DQMHcalPhiSymAlCaReco::fileName_
private

Output file name if required.

Definition at line 96 of file DQMHcalPhiSymAlCaReco.h.

Referenced by DQMHcalPhiSymAlCaReco().

std::string DQMHcalPhiSymAlCaReco::folderName_
private

DQM folder name.

Definition at line 87 of file DQMHcalPhiSymAlCaReco.h.

Referenced by bookHistograms(), and DQMHcalPhiSymAlCaReco().

edm::EDGetTokenT<HBHERecHitCollection> DQMHcalPhiSymAlCaReco::hbherecoMB
private

object to monitor

Definition at line 76 of file DQMHcalPhiSymAlCaReco.h.

Referenced by analyze(), and DQMHcalPhiSymAlCaReco().

edm::EDGetTokenT<HBHERecHitCollection> DQMHcalPhiSymAlCaReco::hbherecoNoise
private

Definition at line 80 of file DQMHcalPhiSymAlCaReco.h.

Referenced by analyze(), and DQMHcalPhiSymAlCaReco().

MonitorElement* DQMHcalPhiSymAlCaReco::hFEDsize
private

Definition at line 59 of file DQMHcalPhiSymAlCaReco.h.

Referenced by analyze(), and bookHistograms().

edm::EDGetTokenT<HFRecHitCollection> DQMHcalPhiSymAlCaReco::hfrecoMB
private

Definition at line 78 of file DQMHcalPhiSymAlCaReco.h.

Referenced by analyze(), and DQMHcalPhiSymAlCaReco().

edm::EDGetTokenT<HFRecHitCollection> DQMHcalPhiSymAlCaReco::hfrecoNoise
private

Definition at line 82 of file DQMHcalPhiSymAlCaReco.h.

Referenced by analyze(), and DQMHcalPhiSymAlCaReco().

MonitorElement* DQMHcalPhiSymAlCaReco::hHcalIsZS
private

Definition at line 60 of file DQMHcalPhiSymAlCaReco.h.

Referenced by analyze(), and bookHistograms().

int DQMHcalPhiSymAlCaReco::hiDistr_r_nbin_
private

Definition at line 70 of file DQMHcalPhiSymAlCaReco.h.

Referenced by bookHistograms(), and DQMHcalPhiSymAlCaReco().

double DQMHcalPhiSymAlCaReco::hiDistr_x_max_
private

Definition at line 68 of file DQMHcalPhiSymAlCaReco.h.

Referenced by bookHistograms(), and DQMHcalPhiSymAlCaReco().

double DQMHcalPhiSymAlCaReco::hiDistr_x_min_
private

Definition at line 67 of file DQMHcalPhiSymAlCaReco.h.

Referenced by bookHistograms(), and DQMHcalPhiSymAlCaReco().

int DQMHcalPhiSymAlCaReco::hiDistr_x_nbin_
private

Definition at line 64 of file DQMHcalPhiSymAlCaReco.h.

Referenced by bookHistograms(), DQMHcalPhiSymAlCaReco(), and endRun().

double DQMHcalPhiSymAlCaReco::hiDistr_y_max_
private

Definition at line 66 of file DQMHcalPhiSymAlCaReco.h.

Referenced by bookHistograms(), and DQMHcalPhiSymAlCaReco().

double DQMHcalPhiSymAlCaReco::hiDistr_y_min_
private

Definition at line 65 of file DQMHcalPhiSymAlCaReco.h.

Referenced by bookHistograms(), and DQMHcalPhiSymAlCaReco().

int DQMHcalPhiSymAlCaReco::hiDistr_y_nbin_
private

Definition at line 63 of file DQMHcalPhiSymAlCaReco.h.

Referenced by bookHistograms(), DQMHcalPhiSymAlCaReco(), and endRun().

MonitorElement* DQMHcalPhiSymAlCaReco::hiDistrHBHEsize1D_
private

Definition at line 56 of file DQMHcalPhiSymAlCaReco.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* DQMHcalPhiSymAlCaReco::hiDistrHFsize1D_
private

Definition at line 57 of file DQMHcalPhiSymAlCaReco.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* DQMHcalPhiSymAlCaReco::hiDistrMB2Min2D_
private

Definition at line 48 of file DQMHcalPhiSymAlCaReco.h.

Referenced by analyze(), bookHistograms(), and endRun().

MonitorElement* DQMHcalPhiSymAlCaReco::hiDistrMB2Pl2D_
private

Definition at line 46 of file DQMHcalPhiSymAlCaReco.h.

Referenced by analyze(), bookHistograms(), and endRun().

MonitorElement* DQMHcalPhiSymAlCaReco::hiDistrMBMin2D_
private

Definition at line 43 of file DQMHcalPhiSymAlCaReco.h.

Referenced by analyze(), bookHistograms(), and endRun().

MonitorElement* DQMHcalPhiSymAlCaReco::hiDistrMBPl2D_
private

Definition at line 41 of file DQMHcalPhiSymAlCaReco.h.

Referenced by analyze(), bookHistograms(), and endRun().

MonitorElement* DQMHcalPhiSymAlCaReco::hiDistrNoise2Min2D_
private

Definition at line 49 of file DQMHcalPhiSymAlCaReco.h.

Referenced by analyze(), bookHistograms(), and endRun().

MonitorElement* DQMHcalPhiSymAlCaReco::hiDistrNoise2Pl2D_
private

Definition at line 47 of file DQMHcalPhiSymAlCaReco.h.

Referenced by analyze(), bookHistograms(), and endRun().

MonitorElement* DQMHcalPhiSymAlCaReco::hiDistrNoiseMin2D_
private

Definition at line 44 of file DQMHcalPhiSymAlCaReco.h.

Referenced by analyze(), bookHistograms(), and endRun().

MonitorElement* DQMHcalPhiSymAlCaReco::hiDistrNoisePl2D_
private

Definition at line 42 of file DQMHcalPhiSymAlCaReco.h.

Referenced by analyze(), bookHistograms(), and endRun().

MonitorElement* DQMHcalPhiSymAlCaReco::hiDistrVarMBMin2D_
private

Definition at line 53 of file DQMHcalPhiSymAlCaReco.h.

Referenced by bookHistograms(), and endRun().

MonitorElement* DQMHcalPhiSymAlCaReco::hiDistrVarMBPl2D_
private

Definition at line 51 of file DQMHcalPhiSymAlCaReco.h.

Referenced by bookHistograms(), and endRun().

MonitorElement* DQMHcalPhiSymAlCaReco::hiDistrVarNoiseMin2D_
private

Definition at line 54 of file DQMHcalPhiSymAlCaReco.h.

Referenced by bookHistograms(), and endRun().

MonitorElement* DQMHcalPhiSymAlCaReco::hiDistrVarNoisePl2D_
private

Definition at line 52 of file DQMHcalPhiSymAlCaReco.h.

Referenced by bookHistograms(), and endRun().

MonitorElement* DQMHcalPhiSymAlCaReco::hL1Id
private

Definition at line 61 of file DQMHcalPhiSymAlCaReco.h.

Referenced by analyze(), and bookHistograms().

edm::InputTag DQMHcalPhiSymAlCaReco::horecoMB
private

Definition at line 77 of file DQMHcalPhiSymAlCaReco.h.

Referenced by DQMHcalPhiSymAlCaReco().

edm::InputTag DQMHcalPhiSymAlCaReco::horecoNoise
private

Definition at line 81 of file DQMHcalPhiSymAlCaReco.h.

Referenced by DQMHcalPhiSymAlCaReco().

double DQMHcalPhiSymAlCaReco::ihbhe_size_
private

Definition at line 71 of file DQMHcalPhiSymAlCaReco.h.

Referenced by analyze(), and DQMHcalPhiSymAlCaReco().

double DQMHcalPhiSymAlCaReco::ihf_size_
private

Definition at line 72 of file DQMHcalPhiSymAlCaReco.h.

Referenced by analyze(), and DQMHcalPhiSymAlCaReco().

unsigned int DQMHcalPhiSymAlCaReco::period_
private

Definition at line 93 of file DQMHcalPhiSymAlCaReco.h.

Referenced by analyze(), bookHistograms(), and DQMHcalPhiSymAlCaReco().

edm::EDGetTokenT<FEDRawDataCollection> DQMHcalPhiSymAlCaReco::rawInLabel_
private

Definition at line 84 of file DQMHcalPhiSymAlCaReco.h.

Referenced by analyze(), and DQMHcalPhiSymAlCaReco().

bool DQMHcalPhiSymAlCaReco::saveToFile_
private

Write to file.

Definition at line 90 of file DQMHcalPhiSymAlCaReco.h.

Referenced by DQMHcalPhiSymAlCaReco().