CMS 3D CMS Logo

RawTask.cc
Go to the documentation of this file.
2 
3 using namespace hcaldqm;
4 using namespace hcaldqm::constants;
5 
7  _tagFEDs = ps.getUntrackedParameter<edm::InputTag>("tagFEDs", edm::InputTag("rawDataCollector"));
8  _tagReport = ps.getUntrackedParameter<edm::InputTag>("tagReport", edm::InputTag("hcalDigis"));
9  _calibProcessing = ps.getUntrackedParameter<bool>("calibProcessing", false);
10  _thresh_calib_nbadq = ps.getUntrackedParameter<int>("thresh_calib_nbadq", 5000);
11 
12  _tokFEDs = consumes<FEDRawDataCollection>(_tagFEDs);
13  _tokReport = consumes<HcalUnpackerReport>(_tagReport);
14 
15  _vflags.resize(nRawFlag);
16  _vflags[fEvnMsm] = flag::Flag("EvnMsm");
17  _vflags[fBcnMsm] = flag::Flag("BcnMsm");
18  _vflags[fBadQ] = flag::Flag("BadQ");
19  _vflags[fOrnMsm] = flag::Flag("OrnMsm");
20 }
21 
22 /* virtual */ void RawTask::bookHistograms(DQMStore::IBooker& ib, edm::Run const& r, edm::EventSetup const& es) {
24 
25  // GET WHAT YOU NEED
27  es.get<HcalDbRecord>().get(dbs);
28  _emap = dbs->getHcalMapping();
29  std::vector<uint32_t> vVME;
30  std::vector<uint32_t> vuTCA;
31  vVME.push_back(
33  vuTCA.push_back(HcalElectronicsId(CRATE_uTCA_MIN, SLOT_uTCA_MIN, FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId());
36 
38  "BadQualityvsLS",
41  0);
43  "BadQualityvsBX",
46  0);
48  "BadQuality",
53  0);
54 
55  // FED-based plots
56  if (_ptype != fOffline) { // hidefed2crate
57  std::vector<int> vFEDs = hcaldqm::utilities::getFEDList(_emap);
58  std::vector<int> vFEDsVME = hcaldqm::utilities::getFEDVMEList(_emap);
59  std::vector<int> vFEDsuTCA = hcaldqm::utilities::getFEDuTCAList(_emap);
60 
61  std::vector<uint32_t> vhashFEDsVME;
62  std::vector<uint32_t> vhashFEDsuTCA;
63 
64  for (std::vector<int>::const_iterator it = vFEDsVME.begin(); it != vFEDsVME.end(); ++it) {
65  vhashFEDsVME.push_back(
68  .rawId());
69  _vhashFEDs.push_back(
72  .rawId());
73  }
74  for (std::vector<int>::const_iterator it = vFEDsuTCA.begin(); it != vFEDsuTCA.end(); ++it) {
75  std::pair<uint16_t, uint16_t> cspair = utilities::fed2crate(*it);
76  vhashFEDsuTCA.push_back(
77  HcalElectronicsId(cspair.first, cspair.second, FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId());
78  _vhashFEDs.push_back(HcalElectronicsId(cspair.first, cspair.second, FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId());
79  }
82 
83  // INITIALIZE FIRST
85  "EvnMsm",
87  new hcaldqm::quantity::FEDQuantity(vFEDsVME),
90  0);
92  "BcnMsm",
94  new hcaldqm::quantity::FEDQuantity(vFEDsVME),
97  0);
99  "OrnMsm",
101  new hcaldqm::quantity::FEDQuantity(vFEDsVME),
104  0);
106  "EvnMsm",
108  new hcaldqm::quantity::FEDQuantity(vFEDsuTCA),
111  0);
113  "BcnMsm",
115  new hcaldqm::quantity::FEDQuantity(vFEDsuTCA),
118  0);
120  "OrnMsm",
122  new hcaldqm::quantity::FEDQuantity(vFEDsuTCA),
125  0);
126 
127  // Bad Quality
129  "BadQuality",
134  0);
136  "BadQuality",
141  0);
142 
143  // Online only
144  if (_ptype == fOnline) {
150  "SummaryvsLS",
155  0);
157  "SummaryvsLS",
161  0);
162  // FED Size vs LS
164  "DataSizevsLS",
168  0);
169  }
170  }
171 
172  // BOOK HISTOGRAMS
173  if (_ptype != fOffline) {
180 
183  }
184  if (_ptype == fOffline) {
185  auto scope = DQMStore::IBooker::UseLumiScope(ib);
187  } else {
189  }
192 
193  // BOOK HISTOGRAMS to be used in ONLINE ONLY!
194  if (_ptype == fOnline) {
202  }
203 
204  // FOR OFFLINE PROCESSING MARK THESE HISTOGRAMS AS LUMI BASED
205  //if (_ptype == fOffline) {
206  //if (_ptype != fOffline) { // hidefed2crate
207  // Note that this is deliberately contradictory for the fed2crate fix, so it can be reversed if fed2crate is ever fixed properly,
208  // TODO: set LUMI scope while booking.
209  // _cEvnMsm_ElectronicsVME.setLumiFlag();
210  // _cBcnMsm_ElectronicsVME.setLumiFlag();
211  // _cEvnMsm_ElectronicsuTCA.setLumiFlag();
212  // _cBcnMsm_ElectronicsuTCA.setLumiFlag();
213  //}
214  //}
215 
216  // initialize hash map
218 }
219 
221  // base reset
222  DQTask::_resetMonitors(uf);
223 }
224 
225 /* virtual */ void RawTask::_process(edm::Event const& e, edm::EventSetup const&) {
228  if (!e.getByToken(_tokFEDs, craw))
229  _logger.dqmthrow("Collection FEDRawDataCollection isn't available" + _tagFEDs.label() + " " + _tagFEDs.instance());
230  if (!e.getByToken(_tokReport, creport))
231  _logger.dqmthrow("Collection HcalUnpackerReport isn't available" + _tagReport.label() + " " +
232  _tagReport.instance());
233 
234  // extract some info
235  int bx = e.bunchCrossing();
236 
237  auto lumiCache = luminosityBlockCache(e.getLuminosityBlock().index());
238  _currentLS = lumiCache->currentLS;
239  _xQuality.reset();
240  _xQuality = lumiCache->xQuality;
241 
242  /*
243  * For Calibration/Abort Gap Processing
244  * check if the #channels taht are bad from the unpacker
245  * is > 5000. If it is skip...
246  */
247  if (_calibProcessing) {
248  int nbadq = creport->badQualityDigis();
249  if (nbadq >= _thresh_calib_nbadq)
250  return;
251  }
252 
253  int nn = 0;
254  // loop thru and fill the detIds with bad quality
255  // NOTE: Calibration Channels are skipped!
256  // TODO: Include for Online Calibration Channels marked as bad
257  // a comment below is left on purpose!
258  //_cBadQualityvsBX.fill(bx, creport->badQualityDigis());
259  for (std::vector<DetId>::const_iterator it = creport->bad_quality_begin(); it != creport->bad_quality_end(); ++it) {
260  // skip non HCAL det ids
261  if (!HcalGenericDetId(*it).isHcalDetId())
262  continue;
263 
264  // skip those that are of bad quality from conditions
265  // Masked or Dead
266  if (_xQuality.exists(HcalDetId(*it))) {
267  HcalChannelStatus cs(it->rawId(), _xQuality.get(HcalDetId(*it)));
269  continue;
270  }
271 
272  nn++;
275  // ONLINE ONLY!
276  if (_ptype == fOnline)
277  _xBadQLS.get(eid)++;
278  if (_ptype != fOffline) { // hidefed2crate
279  if (eid.isVMEid()) {
281  continue;
283  } else {
285  continue;
287  }
288  }
289  }
292 
293  if (_ptype != fOffline) { // hidefed2crate
294  for (int fed = FEDNumbering::MINHCALFEDID; fed <= FEDNumbering::MAXHCALuTCAFEDID; fed++) {
295  // skip nonHCAL FEDs
298  continue;
299  FEDRawData const& raw = craw->FEDData(fed);
300  if (raw.size() < constants::RAW_EMPTY)
301  continue;
302 
303  if (fed <= FEDNumbering::MAXHCALFEDID) // VME
304  {
305  HcalDCCHeader const* hdcc = (HcalDCCHeader const*)(raw.data());
306  if (!hdcc)
307  continue;
308 
309  uint32_t bcn = hdcc->getBunchId();
310  uint32_t orn = hdcc->getOrbitNumber() & 0x1F; // LS 5 bits only
311  uint32_t evn = hdcc->getDCCEventNumber();
312  int dccId = hdcc->getSourceId() - constants::FED_VME_MIN;
313 
314  /* online only */
315  if (_ptype == fOnline) {
319  continue;
320  _cDataSizevsLS_FED.fill(eid, _currentLS, double(raw.size()) / 1024.);
321  }
322 
323  // iterate over spigots
324  HcalHTRData htr;
325  for (int is = 0; is < HcalDCCHeader::SPIGOT_COUNT; is++) {
326  int r = hdcc->getSpigotData(is, htr, raw.size());
327  if (r != 0 || !htr.check())
328  continue;
331  continue;
332 
333  uint32_t htr_evn = htr.getL1ANumber();
334  uint32_t htr_orn = htr.getOrbitNumber();
335  uint32_t htr_bcn = htr.getBunchNumber();
336  bool qevn = (htr_evn != evn);
337  bool qbcn = (htr_bcn != bcn);
338  bool qorn = (htr_orn != orn);
339  if (qevn) {
341 
342  if (_ptype == fOnline && is <= constants::SPIGOT_MAX)
343  _xEvnMsmLS.get(eid)++;
344  }
345  if (qorn) {
347 
348  if (_ptype == fOnline && is <= constants::SPIGOT_MAX)
349  _xOrnMsmLS.get(eid)++;
350  }
351  if (qbcn) {
353 
354  if (_ptype == fOnline && is <= constants::SPIGOT_MAX)
355  _xBcnMsmLS.get(eid)++;
356  }
357  }
358  } else // uTCA
359  {
360  hcal::AMC13Header const* hamc13 = (hcal::AMC13Header const*)raw.data();
361  if (!hamc13)
362  continue;
363 
364  /* online only */
365  if (_ptype == fOnline) {
366  std::pair<uint16_t, uint16_t> cspair = utilities::fed2crate(fed);
367  HcalElectronicsId eid = HcalElectronicsId(cspair.first, cspair.second, FIBER_uTCA_MIN1, FIBERCH_MIN, false);
369  continue;
370  _cDataSizevsLS_FED.fill(eid, _currentLS, double(raw.size()) / 1024.);
371  }
372 
373  uint32_t bcn = hamc13->bunchId();
374  uint32_t orn = hamc13->orbitNumber() & 0xFFFF; // LS 16bits only
375  uint32_t evn = hamc13->l1aNumber();
376  int namc = hamc13->NAMC();
377 
378  for (int iamc = 0; iamc < namc; iamc++) {
379  int slot = hamc13->AMCSlot(iamc);
380  int crate = hamc13->AMCId(iamc) & 0xFF;
381  HcalElectronicsId eid(crate, slot, FIBER_uTCA_MIN1, FIBERCH_MIN, false);
383  continue;
384  HcalUHTRData uhtr(hamc13->AMCPayload(iamc), hamc13->AMCSize(iamc));
385 
386  uint32_t uhtr_evn = uhtr.l1ANumber();
387  uint32_t uhtr_bcn = uhtr.bunchNumber();
388  uint32_t uhtr_orn = uhtr.orbitNumber();
389  bool qevn = (uhtr_evn != evn);
390  bool qbcn = (uhtr_bcn != bcn);
391  bool qorn = (uhtr_orn != orn);
392  if (qevn) {
394 
395  if (_ptype == fOnline)
396  _xEvnMsmLS.get(eid)++;
397  }
398  if (qorn) {
400 
401  if (_ptype == fOnline)
402  _xOrnMsmLS.get(eid)++;
403  }
404  if (qbcn) {
406 
407  if (_ptype == fOnline)
408  _xBcnMsmLS.get(eid)++;
409  }
410  }
411  }
412  }
413  }
414 }
415 
416 std::shared_ptr<hcaldqm::Cache> RawTask::globalBeginLuminosityBlock(edm::LuminosityBlock const& lb,
417  edm::EventSetup const& es) const {
418  return DQTask::globalBeginLuminosityBlock(lb, es);
419  // _cBadQualityvsLS.extendAxisRange(_currentLS);
420  // _cSummaryvsLS_FED.extendAxisRange(_currentLS);
421  // _cSummaryvsLS.extendAxisRange(_currentLS);
422 }
423 
425  auto lumiCache = luminosityBlockCache(lb.index());
426  _currentLS = lumiCache->currentLS;
427  _evsPerLS = lumiCache->EvtCntLS;
428 
429  if (_ptype != fOnline)
430  return;
431 
432  //
433  // GENERATE STATUS ONLY FOR ONLINE!
434  //
435  for (std::vector<uint32_t>::const_iterator it = _vhashFEDs.begin(); it != _vhashFEDs.end(); ++it) {
436  flag::Flag fSum("RAW");
438 
439  std::vector<uint32_t>::const_iterator cit = std::find(_vcdaqEids.begin(), _vcdaqEids.end(), *it);
440  if (cit == _vcdaqEids.end()) {
441  // not @cDAQ
442  for (uint32_t iflag = 0; iflag < _vflags.size(); iflag++)
445  continue;
446  }
447 
448  // FED is @cDAQ
450  if (_xEvnMsmLS.get(eid) > 0)
451  _vflags[fEvnMsm]._state = flag::fBAD;
452  else
453  _vflags[fEvnMsm]._state = flag::fGOOD;
454  if (_xBcnMsmLS.get(eid) > 0)
455  _vflags[fBcnMsm]._state = flag::fBAD;
456  else
457  _vflags[fBcnMsm]._state = flag::fGOOD;
458  if (_xOrnMsmLS.get(eid) > 0)
459  _vflags[fOrnMsm]._state = flag::fBAD;
460  else
461  _vflags[fOrnMsm]._state = flag::fGOOD;
462  if (double(_xBadQLS.get(eid)) > double(12 * _evsPerLS))
463  _vflags[fBadQ]._state = flag::fBAD;
464  else if (_xBadQLS.get(eid) > 0)
465  _vflags[fBadQ]._state = flag::fPROBLEMATIC;
466  else
467  _vflags[fBadQ]._state = flag::fGOOD;
468  }
469 
470  int iflag = 0;
471  // iterate over all flags:
472  // - sum them all up in summary flag for this FED
473  // - reset each flag right after using it
474  for (std::vector<flag::Flag>::iterator ft = _vflags.begin(); ft != _vflags.end(); ++ft) {
475  _cSummaryvsLS_FED.setBinContent(eid, _currentLS, int(iflag), ft->_state);
476  fSum += (*ft);
477  iflag++;
478 
479  // this is the MUST! We don't keep flags per FED, reset
480  // each one of them after using
481  ft->reset();
482  }
484  }
485 
486  // reset...
487  _xOrnMsmLS.reset();
488  _xEvnMsmLS.reset();
489  _xBcnMsmLS.reset();
490  _xBadQLS.reset();
491 
492  // in the end always do the DQTask::endLumi
493  DQTask::globalEndLuminosityBlock(lb, es);
494 }
495 
hcaldqm::flag::Flag
Definition: Flag.h:24
hcaldqm::quantity::FEDQuantity
Definition: ElectronicsQuantity.h:356
hcaldqm::constants::FED_VME_MIN
const int FED_VME_MIN
Definition: Constants.h:80
hcaldqm::ContainerXXX::initialize
virtual void initialize(hashfunctions::HashType, int debug=0)
Definition: ContainerXXX.h:81
RawTask::_cOrnMsm_ElectronicsVME
hcaldqm::Container2D _cOrnMsm_ElectronicsVME
Definition: RawTask.h:75
RawTask::_tagFEDs
edm::InputTag _tagFEDs
Definition: RawTask.h:38
hcaldqm::flag::Flag::_state
State _state
Definition: Flag.h:62
hcaldqm::constants
Definition: Constants.h:9
hcaldqm::Container2D::initialize
virtual void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
Definition: Container2D.cc:25
hcaldqm::UpdateFreq
UpdateFreq
Definition: DQTask.h:32
hcaldqm::quantity::FlagQuantity
Definition: ValueQuantity.h:364
hcaldqm::electronicsmap::ElectronicsMap::lookup
uint32_t lookup(DetId const &)
Definition: ElectronicsMap.cc:122
bookHistograms
example_stream void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
HcalDCCHeader::getBunchId
int getBunchId() const
Definition: HcalDCCHeader.h:34
hcal::AMC13Header::AMCPayload
const uint64_t * AMCPayload(int i) const
Definition: AMC13Header.cc:4
edm::InputTag::instance
std::string const & instance() const
Definition: InputTag.h:37
RawTask::_filter_FEDsuTCA
hcaldqm::filter::HashFilter _filter_FEDsuTCA
Definition: RawTask.h:61
hcaldqm::quantity::fSlotuTCA
Definition: ElectronicsQuantity.h:21
HcalGenericDetId
Definition: HcalGenericDetId.h:15
hcal::AMC13Header::orbitNumber
unsigned int orbitNumber() const
Definition: AMC13Header.h:23
hcaldqm::ContainerXXX::exists
virtual bool exists(HcalDetId const &)
Definition: ContainerXXX.h:212
fwrapper::cs
unique_ptr< ClusterSequence > cs
Definition: fastjetfortran_madfks.cc:45
RawTask.h
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
hcaldqm::quantity::ValueQuantity
Definition: ValueQuantity.h:309
hcaldqm::hashfunctions::fElectronics
Definition: HashFunctions.h:145
edm::LuminosityBlock::index
LuminosityBlockIndex index() const
Definition: LuminosityBlock.cc:20
hcaldqm::flag::fGOOD
Definition: Flag.h:17
hcaldqm
Definition: Constants.h:8
hcaldqm::electronicsmap::ElectronicsMap::initialize
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
Definition: ElectronicsMap.cc:6
l1GtPatternGenerator_cfi.bx
bx
Definition: l1GtPatternGenerator_cfi.py:18
RawTask::nRawFlag
Definition: RawTask.h:45
hcaldqm::constants::SPIGOT_MIN
const int SPIGOT_MIN
Definition: Constants.h:118
hcaldqm::filter::fPreserver
Definition: HashFilter.h:19
hcaldqm::ContainerSingleProf1D::initialize
void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN), int debug=0) override
Definition: ContainerSingleProf1D.cc:17
hcaldqm::constants::SLOT_uTCA_MIN
const int SLOT_uTCA_MIN
Definition: Constants.h:105
hcaldqm::constants::FIBER_uTCA_MIN1
const int FIBER_uTCA_MIN1
Definition: Constants.h:126
HcalUnpackerReport::bad_quality_end
DetIdVector::const_iterator bad_quality_end() const
Definition: HcalUnpackerReport.h:43
HcalDCCHeader::getDCCEventNumber
unsigned long getDCCEventNumber() const
Definition: HcalDCCHeader.h:36
HcalUHTRData::l1ANumber
uint32_t l1ANumber() const
Get the HTR event number.
Definition: HcalUHTRData.h:87
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
RawTask::_xOrnMsmLS
hcaldqm::ContainerXXX< uint32_t > _xOrnMsmLS
Definition: RawTask.h:79
RawTask::_cBadQuality_FEDuTCA
hcaldqm::Container2D _cBadQuality_FEDuTCA
Definition: RawTask.h:65
hcaldqm::hashfunctions::fFED
Definition: HashFunctions.h:136
hcaldqm::DQModule::_ptype
ProcessingType _ptype
Definition: DQModule.h:43
hcaldqm::flag::fBAD
Definition: Flag.h:19
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
RawTask::fBcnMsm
Definition: RawTask.h:45
edm::Handle
Definition: AssociativeIterator.h:50
RawTask::_calibProcessing
bool _calibProcessing
Definition: RawTask.h:51
HcalChannelStatus::HcalCellMask
Definition: HcalChannelStatus.h:18
hcaldqm::hashfunctions::fdepth
Definition: HashFunctions.h:131
hcal::AMC13Header::AMCSize
int AMCSize(int i) const
Definition: AMC13Header.h:37
hcaldqm::utilities::getFEDList
std::vector< int > getFEDList(HcalElectronicsMap const *)
Definition: Utilities.cc:83
RawTask::_cDataSizevsLS_FED
hcaldqm::ContainerProf1D _cDataSizevsLS_FED
Definition: RawTask.h:70
RawTask::_cEvnMsm_ElectronicsVME
hcaldqm::Container2D _cEvnMsm_ElectronicsVME
Definition: RawTask.h:73
HcalDCCHeader::SPIGOT_COUNT
static const int SPIGOT_COUNT
Definition: HcalDCCHeader.h:19
FEDRawData::data
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
Definition: FEDRawData.cc:24
hcaldqm::constants::SPIGOT_MAX
const int SPIGOT_MAX
Definition: Constants.h:119
HcalDbService::getHcalMapping
const HcalElectronicsMap * getHcalMapping() const
Definition: HcalDbService.cc:343
RawTask::_process
void _process(edm::Event const &, edm::EventSetup const &) override
Definition: RawTask.cc:225
FEDRawData
Definition: FEDRawData.h:19
hcaldqm::DQTask::_xQuality
ContainerXXX< uint32_t > _xQuality
Definition: DQTask.h:65
HcalUnpackerReport::badQualityDigis
int badQualityDigis() const
Definition: HcalUnpackerReport.h:24
hcaldqm::quantity::fN_m0to10000
Definition: ValueQuantity.h:42
RawTask::_cBcnMsm_ElectronicsVME
hcaldqm::Container2D _cBcnMsm_ElectronicsVME
Definition: RawTask.h:74
hcaldqm::quantity::fDataSize
Definition: ValueQuantity.h:49
HcalHTRData::getBunchNumber
unsigned int getBunchNumber() const
Get the HTR bunch number.
Definition: HcalHTRData.h:122
edm::InputTag::label
std::string const & label() const
Definition: InputTag.h:36
hcal::AMC13Header::AMCId
uint16_t AMCId(int i) const
Definition: AMC13Header.h:31
HcalDCCHeader::getSourceId
int getSourceId() const
Definition: HcalDCCHeader.h:32
RawTask::_filter_uTCA
hcaldqm::filter::HashFilter _filter_uTCA
Definition: RawTask.h:59
hcaldqm::quantity::fBX
Definition: ValueQuantity.h:45
hcaldqm::quantity::fieta
Definition: DetectorQuantity.h:15
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
RawTask::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: RawTask.cc:22
hcaldqm::quantity::fiphi
Definition: DetectorQuantity.h:14
RawTask::_tokReport
edm::EDGetTokenT< HcalUnpackerReport > _tokReport
Definition: RawTask.h:41
RawTask::_filter_VME
hcaldqm::filter::HashFilter _filter_VME
Definition: RawTask.h:58
RawTask::_cOrnMsm_ElectronicsuTCA
hcaldqm::Container2D _cOrnMsm_ElectronicsuTCA
Definition: RawTask.h:78
RawTask::_filter_FEDsVME
hcaldqm::filter::HashFilter _filter_FEDsVME
Definition: RawTask.h:60
hcaldqm::DQModule::_currentLS
int _currentLS
Definition: DQModule.h:52
HcalChannelStatus
Definition: HcalChannelStatus.h:13
hcaldqm::ContainerXXX::reset
virtual void reset()
Definition: ContainerXXX.h:292
RawTask::_cSummaryvsLS_FED
hcaldqm::Container2D _cSummaryvsLS_FED
Definition: RawTask.h:81
hcaldqm::constants::CRATE_uTCA_MIN
const int CRATE_uTCA_MIN
Definition: Constants.h:98
hcaldqm::filter::HashFilter::initialize
virtual void initialize(FilterType ftype, hashfunctions::HashType htype, std::vector< uint32_t > const &)
Definition: HashFilter.cc:17
hcaldqm::filter::HashFilter::filter
virtual bool filter(HcalDetId const &) const
Definition: HashFilter.cc:24
hcaldqm::constants::FIBER_VME_MIN
const int FIBER_VME_MIN
Definition: Constants.h:123
hcal::AMC13Header::l1aNumber
int l1aNumber() const
Definition: AMC13Header.h:19
edm::ESHandle< HcalDbService >
HcalElectronicsId
Readout chain identification for Hcal.
Definition: HcalElectronicsId.h:32
hcaldqm::DQModule::_name
std::string _name
Definition: DQModule.h:41
hcaldqm::constants::FIBERCH_MIN
const int FIBERCH_MIN
Definition: Constants.h:132
RawTask
Definition: RawTask.py:1
RawTask::_thresh_calib_nbadq
int _thresh_calib_nbadq
Definition: RawTask.h:52
hcaldqm::quantity::DetectorQuantity
Definition: DetectorQuantity.h:59
hcaldqm::utilities::isFEDHF
bool isFEDHF(HcalElectronicsId const &)
Definition: Utilities.cc:156
FEDRawDataCollection::FEDData
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
Definition: FEDRawDataCollection.cc:19
hcaldqm::Container2D::setBinContent
void setBinContent(HcalDetId const &, int) override
Definition: Container2D.cc:163
hcaldqm::quantity::fN
Definition: ValueQuantity.h:11
HcalDCCHeader::getOrbitNumber
unsigned int getOrbitNumber() const
Definition: HcalDCCHeader.h:46
RawTask::_resetMonitors
void _resetMonitors(hcaldqm::UpdateFreq) override
Definition: RawTask.cc:220
Logger::dqmthrow
void dqmthrow(std::string const &msg) const
Definition: Logger.h:12
RawTask::_cEvnMsm_ElectronicsuTCA
hcaldqm::Container2D _cEvnMsm_ElectronicsuTCA
Definition: RawTask.h:76
RawTask::_xEvnMsmLS
hcaldqm::ContainerXXX< uint32_t > _xEvnMsmLS
Definition: RawTask.h:79
HLT_2018_cff.InputTag
InputTag
Definition: HLT_2018_cff.py:79016
edm::ParameterSet
Definition: ParameterSet.h:36
hcaldqm::Container2D::book
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
Definition: Container2D.cc:558
hcaldqm::Container2D::fill
void fill(HcalDetId const &) override
Definition: Container2D.cc:52
hcaldqm::Container1D::fill
virtual void fill(uint32_t)
Definition: Container1D.cc:73
hcaldqm::flag::Flag::reset
void reset()
Definition: Flag.h:59
HcalUHTRData
Definition: HcalUHTRData.h:16
hcal::AMC13Header::AMCSlot
int AMCSlot(int i) const
Definition: AMC13Header.h:33
hcaldqm::constants::RAW_EMPTY
const int RAW_EMPTY
Definition: Constants.h:247
RawTask::_vflags
std::vector< hcaldqm::flag::Flag > _vflags
Definition: RawTask.h:44
hcaldqm::DQModule::_logger
Logger _logger
Definition: DQModule.h:54
FEDNumbering::MAXHCALuTCAFEDID
Definition: FEDNumbering.h:104
HcalDetId
Definition: HcalDetId.h:12
RawTask::fEvnMsm
Definition: RawTask.h:45
RawTask::_cBadQuality_FEDVME
hcaldqm::Container2D _cBadQuality_FEDVME
Definition: RawTask.h:64
RawTask::_cBadQualityvsLS
hcaldqm::ContainerSingleProf1D _cBadQualityvsLS
Definition: RawTask.h:68
RawTask::_cBcnMsm_ElectronicsuTCA
hcaldqm::Container2D _cBcnMsm_ElectronicsuTCA
Definition: RawTask.h:77
runTauDisplay.eid
eid
Definition: runTauDisplay.py:298
hcal::AMC13Header::NAMC
int NAMC() const
Definition: AMC13Header.h:25
HcalHTRData::getOrbitNumber
unsigned int getOrbitNumber() const
Get the HTR orbit number.
Definition: HcalHTRData.cc:345
RawTask::_tokFEDs
edm::EDGetTokenT< FEDRawDataCollection > _tokFEDs
Definition: RawTask.h:40
hcaldqm::ContainerSingle1D::fill
virtual void fill(int)
Definition: ContainerSingle1D.cc:80
dqm::implementation::IBooker::UseLumiScope
UseScope< MonitorElementData::Scope::LUMI > UseLumiScope
Definition: DQMStore.h:463
cuy.ib
ib
Definition: cuy.py:662
edm::EventSetup
Definition: EventSetup.h:57
hcaldqm::quantity::fSpigot
Definition: ElectronicsQuantity.h:23
RawTask::_xBcnMsmLS
hcaldqm::ContainerXXX< uint32_t > _xBcnMsmLS
Definition: RawTask.h:79
get
#define get
RawTask::_cSummaryvsLS
hcaldqm::ContainerSingle2D _cSummaryvsLS
Definition: RawTask.h:82
FEDNumbering::MINHCALuTCAFEDID
Definition: FEDNumbering.h:103
FEDRawData::size
size_t size() const
Lenght of the data buffer in bytes.
Definition: FEDRawData.h:45
hcaldqm::DQTask::_vcdaqEids
std::vector< uint32_t > _vcdaqEids
Definition: DQTask.h:68
hcaldqm::DQModule::_subsystem
std::string _subsystem
Definition: DQModule.h:48
HcalDCCHeader
Definition: HcalDCCHeader.h:17
alignCSCRings.r
r
Definition: alignCSCRings.py:93
groupFilesInBlocks.nn
nn
Definition: groupFilesInBlocks.py:150
RawTask::RawTask
RawTask(edm::ParameterSet const &)
Definition: RawTask.cc:6
hcaldqm::flag::fPROBLEMATIC
Definition: Flag.h:18
hcaldqm::DQModule::_maxLS
int _maxLS
Definition: DQModule.h:53
RawTask::_vhashFEDs
std::vector< uint32_t > _vhashFEDs
Definition: RawTask.h:55
hcaldqm::quantity::ElectronicsQuantity
Definition: ElectronicsQuantity.h:333
hcaldqm::ContainerProf1D::initialize
void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, int debug=0) override
Definition: ContainerProf1D.cc:22
HcalGenericDetId::isHcalDetId
bool isHcalDetId() const
Definition: HcalGenericDetId.cc:64
HcalChannelStatus::HcalCellDead
Definition: HcalChannelStatus.h:20
hcaldqm::electronicsmap::fD2EHashMap
Definition: ElectronicsMap.h:25
RawTask::fBadQ
Definition: RawTask.h:45
hcaldqm::quantity::fFiberuTCAFiberCh
Definition: ElectronicsQuantity.h:31
HcalUnpackerReport::bad_quality_begin
DetIdVector::const_iterator bad_quality_begin() const
Definition: HcalUnpackerReport.h:42
hcaldqm::utilities::isFEDHBHE
bool isFEDHBHE(HcalElectronicsId const &)
Definition: Utilities.cc:142
nanoDQM_cff.Flag
Flag
Definition: nanoDQM_cff.py:65
hcaldqm::ContainerSingle2D::setBinContent
virtual void setBinContent(int, int, int)
Definition: ContainerSingle2D.cc:154
HcalHTRData::getL1ANumber
unsigned int getL1ANumber() const
Get the HTR event number.
Definition: HcalHTRData.h:120
RawTask::globalBeginLuminosityBlock
std::shared_ptr< hcaldqm::Cache > globalBeginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) const override
Definition: RawTask.cc:416
RawTask::_ehashmap
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
Definition: RawTask.h:48
HcalElectronicsId::rawId
constexpr uint32_t rawId() const
Definition: HcalElectronicsId.h:59
hcaldqm::quantity::fFiberVMEFiberCh
Definition: ElectronicsQuantity.h:32
FEDNumbering::MINHCALFEDID
Definition: FEDNumbering.h:47
hcaldqm::DQTask::_emap
const HcalElectronicsMap * _emap
Definition: DQTask.h:80
hcaldqm::ContainerSingle2D::book
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
Definition: ContainerSingle2D.cc:68
hcaldqm::utilities::fed2crate
std::pair< uint16_t, uint16_t > fed2crate(int fed)
Definition: Utilities.cc:10
hcaldqm::utilities::isFEDHO
bool isFEDHO(HcalElectronicsId const &)
Definition: Utilities.cc:180
RawTask::fOrnMsm
Definition: RawTask.h:45
hcaldqm::utilities::getFEDVMEList
std::vector< int > getFEDVMEList(HcalElectronicsMap const *)
Definition: Utilities.cc:101
hcal::AMC13Header
Definition: AMC13Header.h:12
hcaldqm::ContainerXXX::book
virtual void book(HcalElectronicsMap const *)
Definition: ContainerXXX.h:87
RawTask::_tagReport
edm::InputTag _tagReport
Definition: RawTask.h:39
hcaldqm::ContainerXXX::get
virtual STDTYPE & get(HcalDetId const &)
Definition: ContainerXXX.h:197
hcal::AMC13Header::bunchId
int bunchId() const
Definition: AMC13Header.h:17
hcaldqm::DQTask
Definition: DQTask.h:33
RawTask::globalEndLuminosityBlock
void globalEndLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: RawTask.cc:424
HcalDbRecord
Definition: HcalDbRecord.h:30
hcaldqm::ContainerSingle2D::initialize
virtual void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
Definition: ContainerSingle2D.cc:46
FEDNumbering::MAXHCALFEDID
Definition: FEDNumbering.h:48
hcaldqm::ContainerProf1D::book
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
Definition: ContainerProf1D.cc:40
hcaldqm::flag::fNCDAQ
Definition: Flag.h:15
hcaldqm::fOnline
Definition: DQModule.h:26
hcaldqm::quantity::fState
Definition: ValueQuantity.h:47
edm::Event
Definition: Event.h:73
RawTask::_cBadQuality_depth
hcaldqm::Container2D _cBadQuality_depth
Definition: RawTask.h:66
HcalHTRData
Definition: HcalHTRData.h:16
hcaldqm::utilities::getFEDuTCAList
std::vector< int > getFEDuTCAList(HcalElectronicsMap const *)
Definition: Utilities.cc:121
RawTask::_cBadQualityvsBX
hcaldqm::ContainerSingleProf1D _cBadQualityvsBX
Definition: RawTask.h:69
edm::InputTag
Definition: InputTag.h:15
HcalDCCHeader::getSpigotData
int getSpigotData(int nspigot, HcalHTRData &decodeTool, int validSize) const
Definition: HcalDCCHeader.cc:27
RawTask::_xBadQLS
hcaldqm::ContainerXXX< uint32_t > _xBadQLS
Definition: RawTask.h:79
hcaldqm::constants::CRATE_VME_MIN
const int CRATE_VME_MIN
Definition: Constants.h:93
hcaldqm::filter::fFilter
Definition: HashFilter.h:19
hcaldqm::ContainerSingleProf1D::book
void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="") override
Definition: ContainerSingleProf1D.cc:33
hcaldqm::fOffline
Definition: DQModule.h:26
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
hcaldqm::DQModule::_evsPerLS
int _evsPerLS
Definition: DQModule.h:51
hcaldqm::quantity::LumiSection
Definition: ValueQuantity.h:390
ecaldqm::dccId
unsigned dccId(DetId const &)
Definition: EcalDQMCommonUtils.cc:16
HcalHTRData::check
bool check() const
Check for a good event Requires a minimum length, matching wordcount and length, not an empty event.
Definition: HcalHTRData.cc:63