CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes
RecHitTask Class Reference

#include <RecHitTask.h>

Inheritance diagram for RecHitTask:
hcaldqm::DQTask DQMEDAnalyzer hcaldqm::DQModule edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > > edm::stream::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

virtual void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
 RecHitTask (edm::ParameterSet const &)
 
virtual ~RecHitTask ()
 
- Public Member Functions inherited from hcaldqm::DQTask
virtual void analyze (edm::Event const &, edm::EventSetup const &)
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQTask (edm::ParameterSet const &)
 
virtual ~DQTask ()
 
- Public Member Functions inherited from DQMEDAnalyzer
virtual void beginRun (edm::Run const &, edm::EventSetup const &) final
 
virtual void beginStream (edm::StreamID id) final
 
 DQMEDAnalyzer (void)
 
virtual void endLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
virtual void endRunSummary (edm::Run const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
uint32_t streamId () const
 
- Public Member Functions inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::stream::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 
- Public Member Functions inherited from hcaldqm::DQModule
 DQModule (edm::ParameterSet const &)
 
virtual ~DQModule ()
 

Public Attributes

tuple recHitTask
 

Protected Types

enum  RecoFlag { fUni =0, fTCDS =1, nRecoFlag =2 }
 

Protected Member Functions

virtual void _process (edm::Event const &, edm::EventSetup const &)
 
virtual void _resetMonitors (UpdateFreq)
 
- Protected Member Functions inherited from hcaldqm::DQTask
virtual int _getCalibType (edm::Event const &)
 
virtual bool _isApplicable (edm::Event const &)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Protected Attributes

ContainerProf2D _cEnergy_depth
 
Container1D _cEnergy_Subdet
 
ContainerProf1D _cEnergyvsBX_SubdetPM
 
ContainerProf1D _cEnergyvsieta_Subdet
 
ContainerProf1D _cEnergyvsiphi_SubdetPM
 
ContainerProf1D _cEnergyvsLS_SubdetPM
 
Container2D _cOccupancy_depth
 
Container2D _cOccupancy_ElectronicsuTCA
 
Container2D _cOccupancy_ElectronicsVME
 
Container2D _cOccupancy_FEDuTCA
 
Container2D _cOccupancy_FEDVME
 
Container2D _cOccupancyCut_depth
 
Container2D _cOccupancyCut_ElectronicsuTCA
 
Container2D _cOccupancyCut_ElectronicsVME
 
Container2D _cOccupancyCut_FEDuTCA
 
Container2D _cOccupancyCut_FEDVME
 
ContainerProf1D _cOccupancyCutvsBX_SubdetPM
 
Container1D _cOccupancyCutvsieta_Subdet
 
Container1D _cOccupancyCutvsiphi_SubdetPM
 
Container2D _cOccupancyCutvsiphivsLS_SubdetPM
 
ContainerProf1D _cOccupancyCutvsLS_Subdet
 
Container1D _cOccupancyvsieta_Subdet
 
Container1D _cOccupancyvsiphi_SubdetPM
 
ContainerProf1D _cOccupancyvsLS_Subdet
 
ContainerSingle2D _cSummaryvsLS
 
Container2D _cSummaryvsLS_FED
 
ContainerProf2D _cTimingCut_depth
 
ContainerProf2D _cTimingCut_ElectronicsuTCA
 
ContainerProf2D _cTimingCut_ElectronicsVME
 
ContainerProf2D _cTimingCut_FEDuTCA
 
ContainerProf2D _cTimingCut_FEDVME
 
Container1D _cTimingCut_HBHEPartition
 
Container1D _cTimingCut_SubdetPM
 
ContainerProf1D _cTimingCutvsBX_SubdetPM
 
ContainerProf1D _cTimingCutvsieta_Subdet
 
ContainerProf1D _cTimingCutvsiphi_SubdetPM
 
ContainerProf1D _cTimingCutvsLS_FED
 
Container2D _cTimingvsEnergy_SubdetPM
 
double _cutE_HBHE
 
double _cutE_HF
 
double _cutE_HO
 
electronicsmap::ElectronicsMap _ehashmap
 
HcalElectronicsMap const * _emap
 
HashFilter _filter_FEDsuTCA
 
HashFilter _filter_FEDsVME
 
HashFilter _filter_uTCA
 
HashFilter _filter_VME
 
std::vector< HcalGenericDetId_gids
 
edm::InputTag _tagHBHE
 
edm::InputTag _tagHF
 
edm::InputTag _tagHO
 
double _thresh_unihf
 
edm::EDGetTokenT
< HBHERecHitCollection
_tokHBHE
 
edm::EDGetTokenT
< HFRecHitCollection
_tokHF
 
edm::EDGetTokenT
< HORecHitCollection
_tokHO
 
std::vector< flag::Flag_vflags
 
std::vector< uint32_t > _vhashFEDs
 
ContainerXXX< uint32_t > _xUni
 
ContainerXXX< uint32_t > _xUniHF
 
- Protected Attributes inherited from hcaldqm::DQTask
ContainerI _cEvsPerLS
 
ContainerI _cEvsTotal
 
ContainerS _cProcessingTypeName
 
ContainerS _cRunKeyName
 
ContainerI _cRunKeyVal
 
int _procLSs
 
edm::InputTag _tagRaw
 
edm::EDGetTokenT
< FEDRawDataCollection
_tokRaw
 
std::vector< uint32_t > _vcdaqEids
 
ContainerXXX< uint32_t > _xQuality
 
- Protected Attributes inherited from hcaldqm::DQModule
int _currentLS
 
int _debug
 
int _evsPerLS
 
int _evsTotal
 
Logger _logger
 
int _maxLS
 
ModuleType _mtype
 
std::string _name
 
ProcessingType _ptype
 
std::string _runkeyName
 
int _runkeyVal
 
std::string _subsystem
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
typedef CacheContexts< T...> CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T...> HasAbility
 
typedef
CacheTypes::LuminosityBlockCache 
LuminosityBlockCache
 
typedef
LuminosityBlockContextT
< LuminosityBlockCache,
RunCache, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDAnalyzerBase
typedef EDAnalyzerAdaptorBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static std::shared_ptr
< dqmDetails::NoCache
globalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
 
static std::shared_ptr
< dqmDetails::NoCache
globalBeginRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *)
 
static void globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, dqmDetails::NoCache *)
 
static void globalEndRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *, dqmDetails::NoCache *)
 
- Static Public Member Functions inherited from edm::stream::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Detailed Description

Definition at line 28 of file RecHitTask.h.

Member Enumeration Documentation

enum RecHitTask::RecoFlag
protected
Enumerator
fUni 
fTCDS 
nRecoFlag 

Definition at line 60 of file RecHitTask.h.

61  {
62  fUni=0,
63  fTCDS=1,
64  nRecoFlag=2
65  };

Constructor & Destructor Documentation

RecHitTask::RecHitTask ( edm::ParameterSet const &  ps)

Definition at line 4 of file RecHitTask.cc.

References _cutE_HBHE, _cutE_HF, _cutE_HO, _tagHBHE, _tagHF, _tagHO, _thresh_unihf, _tokHBHE, _tokHF, _tokHO, _vflags, fTCDS, fUni, edm::ParameterSet::getUntrackedParameter(), HLT_FULL_cff::InputTag, and nRecoFlag.

4  :
5  DQTask(ps)
6 {
7  _tagHBHE = ps.getUntrackedParameter<edm::InputTag>("tagHBHE",
8  edm::InputTag("hbhereco"));
9  _tagHO = ps.getUntrackedParameter<edm::InputTag>("tagHO",
10  edm::InputTag("horeco"));
11  _tagHF = ps.getUntrackedParameter<edm::InputTag>("tagHF",
12  edm::InputTag("hfreco"));
13 
14  _tokHBHE = consumes<HBHERecHitCollection>(_tagHBHE);
15  _tokHO = consumes<HORecHitCollection>(_tagHO);
16  _tokHF = consumes<HFRecHitCollection>(_tagHF);
17 
18  _cutE_HBHE = ps.getUntrackedParameter<double>("cutE_HBHE", 5);
19  _cutE_HO = ps.getUntrackedParameter<double>("cutE_HO", 5);
20  _cutE_HF = ps.getUntrackedParameter<double>("cutE_HF", 5);
21  _thresh_unihf = ps.getUntrackedParameter<double>("thresh_unihf", 0.2);
22 
23  // order must be the same as in RecoFlag enum
24  _vflags.resize(nRecoFlag);
25  _vflags[fUni]=flag::Flag("UniSlotHF");
26  _vflags[fTCDS]=flag::Flag("TCDS");
27 }
edm::EDGetTokenT< HBHERecHitCollection > _tokHBHE
Definition: RecHitTask.h:48
DQTask(edm::ParameterSet const &)
Definition: DQTask.cc:7
double _cutE_HO
Definition: RecHitTask.h:52
edm::EDGetTokenT< HFRecHitCollection > _tokHF
Definition: RecHitTask.h:50
std::vector< flag::Flag > _vflags
Definition: RecHitTask.h:59
double _cutE_HBHE
Definition: RecHitTask.h:52
double _cutE_HF
Definition: RecHitTask.h:52
double _thresh_unihf
Definition: RecHitTask.h:53
edm::InputTag _tagHO
Definition: RecHitTask.h:46
edm::InputTag _tagHF
Definition: RecHitTask.h:47
edm::EDGetTokenT< HORecHitCollection > _tokHO
Definition: RecHitTask.h:49
edm::InputTag _tagHBHE
Definition: RecHitTask.h:45
virtual RecHitTask::~RecHitTask ( )
inlinevirtual

Definition at line 32 of file RecHitTask.h.

32 {}

Member Function Documentation

void RecHitTask::_process ( edm::Event const &  e,
edm::EventSetup const &   
)
protectedvirtual

Implements hcaldqm::DQTask.

Definition at line 348 of file RecHitTask.cc.

References _cEnergy_depth, _cEnergy_Subdet, _cEnergyvsBX_SubdetPM, _cEnergyvsieta_Subdet, _cEnergyvsiphi_SubdetPM, _cEnergyvsLS_SubdetPM, _cOccupancy_depth, _cOccupancy_ElectronicsuTCA, _cOccupancy_ElectronicsVME, _cOccupancy_FEDuTCA, _cOccupancy_FEDVME, _cOccupancyCut_depth, _cOccupancyCut_ElectronicsuTCA, _cOccupancyCut_ElectronicsVME, _cOccupancyCut_FEDuTCA, _cOccupancyCut_FEDVME, _cOccupancyCutvsBX_SubdetPM, _cOccupancyCutvsieta_Subdet, _cOccupancyCutvsiphi_SubdetPM, _cOccupancyCutvsiphivsLS_SubdetPM, _cOccupancyCutvsLS_Subdet, _cOccupancyvsieta_Subdet, _cOccupancyvsiphi_SubdetPM, _cOccupancyvsLS_Subdet, _cTimingCut_depth, _cTimingCut_ElectronicsuTCA, _cTimingCut_ElectronicsVME, _cTimingCut_FEDuTCA, _cTimingCut_FEDVME, _cTimingCut_HBHEPartition, _cTimingCut_SubdetPM, _cTimingCutvsBX_SubdetPM, _cTimingCutvsieta_Subdet, _cTimingCutvsiphi_SubdetPM, _cTimingCutvsLS_FED, _cTimingvsEnergy_SubdetPM, hcaldqm::DQModule::_currentLS, _cutE_HBHE, _cutE_HF, _cutE_HO, _ehashmap, hcaldqm::DQModule::_logger, hcaldqm::DQModule::_ptype, _tagHBHE, _tagHF, _tagHO, _tokHBHE, _tokHF, _tokHO, _xUniHF, edm::EventBase::bunchCrossing(), Logger::dqmthrow(), relval_parameters_module::energy, hcaldqm::Container2D::fill(), hcaldqm::Container1D::fill(), hcaldqm::fOnline, hcaldqm::ContainerXXX< STDTYPE >::get(), edm::Event::getByToken(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, HcalDetId::ieta(), edm::InputTag::instance(), HcalElectronicsId::isVMEid(), edm::InputTag::label(), hcaldqm::electronicsmap::ElectronicsMap::lookup(), and HcalDetId::subdet().

350 {
354 
355  if (!(e.getByToken(_tokHBHE, chbhe)))
356  _logger.dqmthrow("Collection HBHERecHitCollection not available "
357  + _tagHBHE.label() + " " + _tagHBHE.instance());
358  if (!(e.getByToken(_tokHO, cho)))
359  _logger.dqmthrow("Collection HORecHitCollection not available "
360  + _tagHO.label() + " " + _tagHO.instance());
361  if (!(e.getByToken(_tokHF, chf)))
362  _logger.dqmthrow("Collection HFRecHitCollection not available "
363  + _tagHF.label() + " " + _tagHF.instance());
364 
365  // extract some info per event
366  int bx = e.bunchCrossing();
367 
368  double ehbm = 0; double ehbp = 0;
369  double ehem = 0; double ehep = 0;
370  int nChsHB = 0; int nChsHE = 0;
371  int nChsHBCut = 0; int nChsHECut = 0;
372  for (HBHERecHitCollection::const_iterator it=chbhe->begin();
373  it!=chbhe->end(); ++it)
374  {
375  double energy = it->energy();
376  double timing = it->time();
377  HcalDetId did = it->id();
379  _cEnergy_Subdet.fill(did, energy);
380  _cTimingvsEnergy_SubdetPM.fill(did, energy, timing);
381  _cOccupancy_depth.fill(did);
382  did.subdet()==HcalBarrel?did.ieta()>0?ehbp+=energy:ehbm+=energy:
383  did.ieta()>0?ehep+=energy:ehem+=energy;
384 
385  // ONLINE ONLY!
386  if (_ptype==fOnline)
387  {
390  }
391  // ^^^ONLINE ONLY!
392 
393  if (eid.isVMEid())
394  {
397  }
398  else
399  {
402  }
403 
404  if (energy>_cutE_HBHE)
405  {
406  // ONLINE ONLY!
407  if (_ptype==fOnline)
408  {
409  _cEnergyvsLS_SubdetPM.fill(did, _currentLS, energy);
410  _cEnergyvsBX_SubdetPM.fill(did, bx, energy);
411  _cEnergyvsieta_Subdet.fill(did, energy);
412  _cEnergyvsiphi_SubdetPM.fill(did, energy);
413  _cTimingCutvsieta_Subdet.fill(did, timing);
414  _cTimingCutvsiphi_SubdetPM.fill(did, timing);
415  _cTimingCutvsBX_SubdetPM.fill(did, bx, timing);
419  }
420  // ^^^ONLINE ONLY!
421  _cEnergy_depth.fill(did, energy);
422  _cTimingCut_SubdetPM.fill(did, timing);
423  _cTimingCut_HBHEPartition.fill(did, timing);
424  if (timing>=-12.5 && timing<=12.5)
425  {
426  // time constrains here are explicit!
427  _cTimingCutvsLS_FED.fill(eid, _currentLS, timing);
428  _cTimingCut_depth.fill(did, timing);
429  }
431  if (eid.isVMEid())
432  {
433  if (timing>=-12.5 && timing<=12.5)
434  {
435  // time constraints are explicit!
436  _cTimingCut_FEDVME.fill(eid, timing);
437  _cTimingCut_ElectronicsVME.fill(eid, timing);
438  }
441  }
442  else
443  {
444  if (timing>=-12.5 && timing<=12.5)
445  {
446  // time constraints are explicit!
447  _cTimingCut_FEDuTCA.fill(eid, timing);
448  _cTimingCut_ElectronicsuTCA.fill(eid, timing);
449  }
452  }
453  did.subdet()==HcalBarrel?nChsHBCut++:nChsHECut++;
454  }
455  did.subdet()==HcalBarrel?nChsHB++:nChsHE++;
456  }
458  nChsHB);
460  nChsHE);
461 
462  // ONLINE ONLY!
463  if (_ptype==fOnline)
464  {
466  bx, nChsHBCut);
468  bx, nChsHECut);
470  _currentLS, nChsHBCut);
472  _currentLS, nChsHECut);
473  }
474  // ^^^ONLINE ONLY!
475 
476  int nChsHO = 0; int nChsHOCut = 0;
477  double ehop = 0; double ehom = 0;
478  for (HORecHitCollection::const_iterator it=cho->begin();
479  it!=cho->end(); ++it)
480  {
481  double energy = it->energy();
482  double timing = it->time();
483  HcalDetId did = it->id();
485  _cEnergy_Subdet.fill(did, energy);
486  _cTimingvsEnergy_SubdetPM.fill(did, energy, timing);
487  _cOccupancy_depth.fill(did);
488  did.ieta()>0?ehop+=energy:ehom+=energy;
489 
490  // IMPORTANT: ONLINE ONLY!
491  if (_ptype==fOnline)
492  {
495  }
496  // ONLINE ONLY!
497 
498  if (eid.isVMEid())
499  {
502  }
503  else
504  {
507  }
508 
509  if (energy>_cutE_HO)
510  {
511  // ONLINE ONLY!
512  if (_ptype==fOnline)
513  {
514  _cEnergyvsLS_SubdetPM.fill(did, _currentLS, energy);
515  _cEnergyvsBX_SubdetPM.fill(did, bx, energy);
516  _cEnergyvsieta_Subdet.fill(did, energy);
517  _cEnergyvsiphi_SubdetPM.fill(did, energy);
518  _cTimingCutvsieta_Subdet.fill(did, timing);
519  _cTimingCutvsiphi_SubdetPM.fill(did, timing);
520  _cTimingCutvsBX_SubdetPM.fill(did, bx, timing);
524  }
525  // ^^^ONLINE ONLY!
526 
527  _cEnergy_depth.fill(did, energy);
528  _cTimingCut_SubdetPM.fill(did, timing);
529  _cTimingCutvsLS_FED.fill(eid, _currentLS, timing);
531  _cTimingCut_depth.fill(did, timing);
532  if (eid.isVMEid())
533  {
534  _cTimingCut_FEDVME.fill(eid, timing);
535  _cTimingCut_ElectronicsVME.fill(eid, timing);
538  }
539  else
540  {
541  _cTimingCut_FEDuTCA.fill(eid, timing);
542  _cTimingCut_ElectronicsuTCA.fill(eid, timing);
545  }
546  nChsHOCut++;
547  }
548  nChsHO++;
549  }
551  nChsHO);
552  // ONLINE ONLY!
553  if (_ptype==fOnline)
554  {
556  bx, nChsHOCut);
558  _currentLS, nChsHOCut);
559  }
560  // ^^^ONLINE ONLY!
561 
562  int nChsHF = 0; int nChsHFCut = 0;
563  double ehfp = 0; double ehfm = 0;
564  for (HFRecHitCollection::const_iterator it=chf->begin();
565  it!=chf->end(); ++it)
566  {
567  double energy = it->energy();
568  double timing = it->time();
569  HcalDetId did = it->id();
571  _cEnergy_Subdet.fill(did, energy);
572  _cTimingvsEnergy_SubdetPM.fill(did, energy, timing);
573  _cOccupancy_depth.fill(did);
574  did.ieta()>0?ehfp+=energy:ehfm+=energy;
575 
576  // IMPORTANT:
577  // only for Online Processing
578  //
579  if (_ptype==fOnline)
580  {
583  }
584  // ONLINE ONLY!
585 
586  if (eid.isVMEid())
587  {
590  }
591  else
592  {
595  }
596 
597  if (energy>_cutE_HF)
598  {
599  // ONLINE ONLY!
600  if (_ptype==fOnline)
601  {
602  _cEnergyvsLS_SubdetPM.fill(did, _currentLS, energy);
603  _cEnergyvsBX_SubdetPM.fill(did, bx, energy);
604  _cEnergyvsieta_Subdet.fill(did, energy);
605  _cEnergyvsiphi_SubdetPM.fill(did, energy);
606  _cTimingCutvsieta_Subdet.fill(did, timing);
607  _cTimingCutvsiphi_SubdetPM.fill(did, timing);
608  _cTimingCutvsBX_SubdetPM.fill(did, bx, timing);
612  _xUniHF.get(eid)++;
613  }
614  // ^^^ONLINE ONLY!
615  _cEnergy_depth.fill(did, energy);
616  _cTimingCut_SubdetPM.fill(did, timing);
617  _cTimingCutvsLS_FED.fill(eid, _currentLS, timing);
619  _cTimingCut_depth.fill(did, timing);
620  if (eid.isVMEid())
621  {
622  _cTimingCut_FEDVME.fill(eid, timing);
623  _cTimingCut_ElectronicsVME.fill(eid, timing);
626  }
627  else
628  {
629  _cTimingCut_FEDuTCA.fill(eid, timing);
630  _cTimingCut_ElectronicsuTCA.fill(eid, timing);
633  }
634  nChsHFCut++;
635  }
636  nChsHF++;
637  }
639  nChsHF);
640  // ONLINE ONLY!
641  if (_ptype==fOnline)
642  {
644  bx, nChsHFCut);
646  _currentLS, nChsHFCut);
647  }
648  // ^^^ONLINE ONLY!
649 }
ContainerProf1D _cOccupancyvsLS_Subdet
Definition: RecHitTask.h:107
ContainerProf1D _cTimingCutvsBX_SubdetPM
Definition: RecHitTask.h:99
ContainerProf1D _cTimingCutvsieta_Subdet
Definition: RecHitTask.h:97
ContainerProf2D _cTimingCut_ElectronicsuTCA
Definition: RecHitTask.h:94
edm::EDGetTokenT< HBHERecHitCollection > _tokHBHE
Definition: RecHitTask.h:48
ContainerProf1D _cEnergyvsiphi_SubdetPM
Definition: RecHitTask.h:80
HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:49
double _cutE_HO
Definition: RecHitTask.h:52
Container2D _cOccupancy_ElectronicsVME
Definition: RecHitTask.h:105
ContainerProf1D _cOccupancyCutvsLS_Subdet
Definition: RecHitTask.h:116
edm::EDGetTokenT< HFRecHitCollection > _tokHF
Definition: RecHitTask.h:50
Container2D _cOccupancy_depth
Definition: RecHitTask.h:102
ContainerProf2D _cTimingCut_FEDVME
Definition: RecHitTask.h:91
ContainerProf2D _cTimingCut_FEDuTCA
Definition: RecHitTask.h:92
Container1D _cOccupancyvsiphi_SubdetPM
Definition: RecHitTask.h:108
std::vector< HBHERecHit >::const_iterator const_iterator
Container2D _cOccupancyCutvsiphivsLS_SubdetPM
Definition: RecHitTask.h:121
ContainerProf2D _cTimingCut_ElectronicsVME
Definition: RecHitTask.h:93
ContainerProf1D _cTimingCutvsLS_FED
Definition: RecHitTask.h:96
ContainerXXX< uint32_t > _xUniHF
Definition: RecHitTask.h:122
Container1D _cTimingCut_HBHEPartition
Definition: RecHitTask.h:90
Container2D _cOccupancy_FEDVME
Definition: RecHitTask.h:103
Container1D _cOccupancyvsieta_Subdet
Definition: RecHitTask.h:109
Container2D _cOccupancy_FEDuTCA
Definition: RecHitTask.h:104
ContainerProf1D _cEnergyvsieta_Subdet
Definition: RecHitTask.h:79
virtual void fill(HcalDetId const &)
Definition: Container2D.cc:59
Container2D _cOccupancyCut_FEDVME
Definition: RecHitTask.h:112
Container1D _cTimingCut_SubdetPM
Definition: RecHitTask.h:89
double _cutE_HBHE
Definition: RecHitTask.h:52
ProcessingType _ptype
Definition: DQModule.h:59
virtual void fill(uint32_t)
Definition: Container1D.cc:82
electronicsmap::ElectronicsMap _ehashmap
Definition: RecHitTask.h:69
Container2D _cOccupancyCut_depth
Definition: RecHitTask.h:117
Container1D _cOccupancyCutvsiphi_SubdetPM
Definition: RecHitTask.h:118
void dqmthrow(std::string const &msg) const
Definition: Logger.h:15
Container2D _cOccupancyCut_FEDuTCA
Definition: RecHitTask.h:113
int ieta() const
get the cell ieta
Definition: HcalDetId.h:56
Container2D _cOccupancy_ElectronicsuTCA
Definition: RecHitTask.h:106
double _cutE_HF
Definition: RecHitTask.h:52
Logger _logger
Definition: DQModule.h:70
ContainerProf2D _cEnergy_depth
Definition: RecHitTask.h:81
ContainerProf1D _cEnergyvsBX_SubdetPM
Definition: RecHitTask.h:83
ContainerProf1D _cEnergyvsLS_SubdetPM
Definition: RecHitTask.h:82
bool isVMEid() const
edm::InputTag _tagHO
Definition: RecHitTask.h:46
ContainerProf2D _cTimingCut_depth
Definition: RecHitTask.h:95
Container1D _cEnergy_Subdet
Definition: RecHitTask.h:78
Container1D _cOccupancyCutvsieta_Subdet
Definition: RecHitTask.h:119
edm::InputTag _tagHF
Definition: RecHitTask.h:47
ContainerProf1D _cOccupancyCutvsBX_SubdetPM
Definition: RecHitTask.h:120
std::string const & label() const
Definition: InputTag.h:36
virtual STDTYPE & get(HcalDetId const &)
Definition: ContainerXXX.h:243
edm::EDGetTokenT< HORecHitCollection > _tokHO
Definition: RecHitTask.h:49
edm::InputTag _tagHBHE
Definition: RecHitTask.h:45
ContainerProf1D _cTimingCutvsiphi_SubdetPM
Definition: RecHitTask.h:98
Container2D _cTimingvsEnergy_SubdetPM
Definition: RecHitTask.h:86
Readout chain identification for Hcal.
std::string const & instance() const
Definition: InputTag.h:37
Container2D _cOccupancyCut_ElectronicsVME
Definition: RecHitTask.h:114
Container2D _cOccupancyCut_ElectronicsuTCA
Definition: RecHitTask.h:115
void RecHitTask::_resetMonitors ( UpdateFreq  uf)
protectedvirtual

Reimplemented from hcaldqm::DQTask.

Definition at line 323 of file RecHitTask.cc.

324 {
325  /*
326  switch(uf)
327  {
328  case hcaldqm::f1LS:
329  _cOccupancy_FEDVME.reset();
330  _cOccupancy_FEDuTCA.reset();
331  break;
332  case hcaldqm::f10LS:
333  _cOccupancyCut_ElectronicsVME.reset();
334  _cOccupancyCut_ElectronicsuTCA.reset();
335  _cOccupancy_ElectronicsVME.reset();
336  _cOccupancy_ElectronicsuTCA.reset();
337  _cTimingCut_ElectronicsVME.reset();
338  _cTimingCut_ElectronicsuTCA.reset();
339  break;
340  default:
341  break;
342  }
343  */
344 
345  DQTask::_resetMonitors(uf);
346 }
void RecHitTask::beginLuminosityBlock ( edm::LuminosityBlock const &  lb,
edm::EventSetup const &  es 
)
virtual

Reimplemented from hcaldqm::DQTask.

Definition at line 651 of file RecHitTask.cc.

653 {
654  DQTask::beginLuminosityBlock(lb, es);
655 
656  /*
657  _cTimingCutvsLS_FED.extendAxisRange(_currentLS);
658  _cOccupancyvsLS_Subdet.extendAxisRange(_currentLS);
659 
660  // ONLINE ONLY
661  if (_ptype!=fOnline)
662  return;
663  _cEnergyvsLS_SubdetPM.extendAxisRange(_currentLS);
664  _cOccupancyCutvsLS_Subdet.extendAxisRange(_currentLS);
665  _cOccupancyCutvsiphivsLS_SubdetPM.extendAxisRange(_currentLS);
666 // _cSummaryvsLS_FED.extendAxisRange(_currentLS);
667 // _cSummaryvsLS.extendAxisRange(_currentLS);
668 // */
669 }
void RecHitTask::bookHistograms ( DQMStore::IBooker ib,
edm::Run const &  r,
edm::EventSetup const &  es 
)
virtual

Reimplemented from hcaldqm::DQTask.

Definition at line 29 of file RecHitTask.cc.

References _cEnergy_depth, _cEnergy_Subdet, _cEnergyvsBX_SubdetPM, _cEnergyvsieta_Subdet, _cEnergyvsiphi_SubdetPM, _cEnergyvsLS_SubdetPM, _cOccupancy_depth, _cOccupancy_ElectronicsuTCA, _cOccupancy_ElectronicsVME, _cOccupancy_FEDuTCA, _cOccupancy_FEDVME, _cOccupancyCut_depth, _cOccupancyCut_ElectronicsuTCA, _cOccupancyCut_ElectronicsVME, _cOccupancyCut_FEDuTCA, _cOccupancyCut_FEDVME, _cOccupancyCutvsBX_SubdetPM, _cOccupancyCutvsieta_Subdet, _cOccupancyCutvsiphi_SubdetPM, _cOccupancyCutvsiphivsLS_SubdetPM, _cOccupancyCutvsLS_Subdet, _cOccupancyvsieta_Subdet, _cOccupancyvsiphi_SubdetPM, _cOccupancyvsLS_Subdet, _cSummaryvsLS, _cSummaryvsLS_FED, _cTimingCut_depth, _cTimingCut_ElectronicsuTCA, _cTimingCut_ElectronicsVME, _cTimingCut_FEDuTCA, _cTimingCut_FEDVME, _cTimingCut_HBHEPartition, _cTimingCut_SubdetPM, _cTimingCutvsBX_SubdetPM, _cTimingCutvsieta_Subdet, _cTimingCutvsiphi_SubdetPM, _cTimingCutvsLS_FED, _cTimingvsEnergy_SubdetPM, _cutE_HBHE, _cutE_HF, _cutE_HO, _ehashmap, _emap, _filter_uTCA, _filter_VME, _gids, hcaldqm::DQModule::_maxLS, hcaldqm::DQModule::_name, hcaldqm::DQModule::_ptype, hcaldqm::DQModule::_subsystem, _vflags, _vhashFEDs, _xUni, _xUniHF, HcalElectronicsMap::allPrecisionId(), hcaldqm::ContainerXXX< STDTYPE >::book(), hcaldqm::ContainerProf2D::book(), hcaldqm::ContainerProf1D::book(), hcaldqm::ContainerSingle2D::book(), hcaldqm::Container2D::book(), hcaldqm::Container1D::book(), bookHistograms(), hcaldqm::constants::CRATE_uTCA_MIN, hcaldqm::constants::CRATE_VME_MIN, hcaldqm::quantity::fBX, hcaldqm::electronicsmap::fD2EHashMap, hcaldqm::quantity::fdepth, hcaldqm::utilities::fed2crate(), hcaldqm::constants::FED_VME_MIN, hcaldqm::hashfunctions::fElectronics, hcaldqm::quantity::fEnergy, hcaldqm::quantity::fEnergy_1TeV, hcaldqm::quantity::fFED, hcaldqm::hashfunctions::fFEDSlot, hcaldqm::quantity::fFiberuTCAFiberCh, hcaldqm::quantity::fFiberVMEFiberCh, hcaldqm::filter::fFilter, hcaldqm::hashfunctions::fHBHEPartition, hcaldqm::constants::FIBER_uTCA_MIN1, hcaldqm::constants::FIBER_VME_MIN, hcaldqm::constants::FIBERCH_MIN, hcaldqm::quantity::fieta, hcaldqm::quantity::fiphi, hcaldqm::quantity::fN, hcaldqm::quantity::fN_to3000, hcaldqm::fOnline, hcaldqm::filter::fPreserver, hcaldqm::quantity::fSlotuTCA, hcaldqm::quantity::fSpigot, hcaldqm::quantity::fState, hcaldqm::quantity::fSubdet, hcaldqm::quantity::fSubdetPM, hcaldqm::quantity::fTiming_ns, edm::EventSetup::get(), hcaldqm::utilities::getFEDList(), hcaldqm::utilities::getFEDuTCAList(), hcaldqm::utilities::getFEDVMEList(), hcaldqm::ContainerProf2D::initialize(), hcaldqm::Container2D::initialize(), hcaldqm::ContainerProf1D::initialize(), hcaldqm::ContainerXXX< STDTYPE >::initialize(), hcaldqm::ContainerSingle2D::initialize(), hcaldqm::filter::HashFilter::initialize(), hcaldqm::electronicsmap::ElectronicsMap::initialize(), hcaldqm::Container1D::initialize(), hcaldqm::constants::SLOT_uTCA_MIN, and hcaldqm::constants::SPIGOT_MIN.

31 {
33 
34  // GET WHAT YOU NEED
36  es.get<HcalDbRecord>().get(dbs);
37  _emap = dbs->getHcalMapping();
38  std::vector<int> vFEDs = utilities::getFEDList(_emap);
39  std::vector<int> vFEDsVME = utilities::getFEDVMEList(_emap);
40  std::vector<int> vFEDsuTCA = utilities::getFEDuTCAList(_emap);
41  std::vector<uint32_t> vVME;
42  std::vector<uint32_t> vuTCA;
46  FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId());
48  vVME);
50  vuTCA);
51 
52  // push the rawIds of each fed into the vector
53  for (std::vector<int>::const_iterator it=vFEDsVME.begin();
54  it!=vFEDsVME.end(); ++it)
55  _vhashFEDs.push_back(HcalElectronicsId(
57  for (std::vector<int>::const_iterator it=vFEDsuTCA.begin();
58  it!=vFEDsuTCA.end(); ++it)
59  _vhashFEDs.push_back(HcalElectronicsId(
61  FIBERCH_MIN, false).rawId());
62 
63  // INITIALIZE FIRST
64  // Energy
72 
73  // Timing
78  _cTimingvsEnergy_SubdetPM.initialize(_name, "TimingvsEnergy",
83  _cTimingCut_FEDVME.initialize(_name, "TimingCut",
93  _cTimingCutvsLS_FED.initialize(_name, "TimingCutvsLS",
99  new quantity::FEDQuantity(vFEDsVME),
104  new quantity::FEDQuantity(vFEDsuTCA),
111  _cTimingCut_depth.initialize(_name, "TimingCut",
116 
117  // Occupancy
118  _cOccupancy_depth.initialize(_name, "Occupancy",
123  _cOccupancy_FEDVME.initialize(_name, "Occupancy",
128  _cOccupancy_FEDuTCA.initialize(_name, "Occupancy",
135  new quantity::FEDQuantity(vFEDsVME),
140  new quantity::FEDQuantity(vFEDsuTCA),
143  _cOccupancyvsLS_Subdet.initialize(_name, "OccupancyvsLS",
147  _cOccupancyCut_FEDVME.initialize(_name, "OccupancyCut",
152  _cOccupancyCut_FEDuTCA.initialize(_name, "OccupancyCut",
159  new quantity::FEDQuantity(vFEDsVME),
164  new quantity::FEDQuantity(vFEDsuTCA),
167  _cOccupancyCut_depth.initialize(_name, "OccupancyCut",
172 
173  // INITIALIZE HISTOGRAMS to be used only in Online
174  if (_ptype==fOnline)
175  {
176  _cEnergyvsieta_Subdet.initialize(_name, "Energyvsieta",
180  _cEnergyvsiphi_SubdetPM.initialize(_name, "Energyvsiphi",
184  _cEnergyvsLS_SubdetPM.initialize(_name, "EnergyvsLS",
188  _cEnergyvsBX_SubdetPM.initialize(_name, "EnergyvsBX",
192  _cTimingCutvsieta_Subdet.initialize(_name, "TimingCutvsieta",
196  _cTimingCutvsiphi_SubdetPM.initialize(_name, "TimingCutvsiphi",
200  _cTimingCutvsBX_SubdetPM.initialize(_name, "TimingCutvsBX",
204  _cOccupancyvsiphi_SubdetPM.initialize(_name, "Occupancyvsiphi",
208  _cOccupancyvsieta_Subdet.initialize(_name, "Occupancyvsieta",
212  _cOccupancyCutvsiphi_SubdetPM.initialize(_name, "OccupancyCutvsiphi",
216  _cOccupancyCutvsieta_Subdet.initialize(_name, "OccupancyCutvsieta",
220  _cOccupancyCutvsBX_SubdetPM.initialize(_name, "OccupancyCutvsBX",
225  "OccupancyCutvsiphivsLS", hashfunctions::fSubdetPM,
229  _cOccupancyCutvsLS_Subdet.initialize(_name, "OccupancyCutvsLS",
233 
234  _cSummaryvsLS_FED.initialize(_name, "SummaryvsLS",
239  _cSummaryvsLS.initialize(_name, "SummaryvsLS",
241  new quantity::FEDQuantity(vFEDs),
243 
246  }
247 
248  // BOOK HISTOGRAMS
249  char cutstr[200];
250  sprintf(cutstr, "_EHBHE%dHO%dHF%d", int(_cutE_HBHE),
251  int(_cutE_HO), int(_cutE_HF));
252  char cutstr2[200];
253  sprintf(cutstr2, "_EHF%d", int(_cutE_HF));
254 
255  // Energy
258 
259  // Timing
269 
270  // Occupancy
282 
283  // BOOK HISTOGRAMS to be used only in Online
284  if (_ptype==fOnline)
285  {
302 
303  std::vector<uint32_t> vhashFEDHF;
304  vhashFEDHF.push_back(HcalElectronicsId(22, SLOT_uTCA_MIN,
305  FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId());
306  vhashFEDHF.push_back(HcalElectronicsId(29, SLOT_uTCA_MIN,
307  FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId());
308  vhashFEDHF.push_back(HcalElectronicsId(32, SLOT_uTCA_MIN,
309  FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId());
310  HashFilter filter_FEDHF;
312  vhashFEDHF);
313 
315  _xUniHF.book(_emap, filter_FEDHF);
316  _xUni.book(_emap);
317  }
318 
319  // initialize hash map
321 }
ContainerProf1D _cOccupancyvsLS_Subdet
Definition: RecHitTask.h:107
ContainerProf1D _cTimingCutvsBX_SubdetPM
Definition: RecHitTask.h:99
ContainerProf1D _cTimingCutvsieta_Subdet
Definition: RecHitTask.h:97
std::vector< uint32_t > _vhashFEDs
Definition: RecHitTask.h:56
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *qy=new ValueQuantity(quantity::fN), int debug=0)
Definition: Container1D.cc:40
ContainerProf2D _cTimingCut_ElectronicsuTCA
Definition: RecHitTask.h:94
ContainerProf1D _cEnergyvsiphi_SubdetPM
Definition: RecHitTask.h:80
int const CRATE_VME_MIN
Definition: Constants.h:60
uint16_t fed2crate(int fed)
Definition: Utilities.cc:12
double _cutE_HO
Definition: RecHitTask.h:52
Container2D _cOccupancy_ElectronicsVME
Definition: RecHitTask.h:105
ContainerProf1D _cOccupancyCutvsLS_Subdet
Definition: RecHitTask.h:116
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
std::vector< HcalGenericDetId > _gids
Definition: RecHitTask.h:124
Container2D _cOccupancy_depth
Definition: RecHitTask.h:102
ContainerProf2D _cTimingCut_FEDVME
Definition: RecHitTask.h:91
ContainerProf2D _cTimingCut_FEDuTCA
Definition: RecHitTask.h:92
Container1D _cOccupancyvsiphi_SubdetPM
Definition: RecHitTask.h:108
Container2D _cOccupancyCutvsiphivsLS_SubdetPM
Definition: RecHitTask.h:121
ContainerProf2D _cTimingCut_ElectronicsVME
Definition: RecHitTask.h:93
int const SPIGOT_MIN
Definition: Constants.h:85
ContainerProf1D _cTimingCutvsLS_FED
Definition: RecHitTask.h:96
ContainerXXX< uint32_t > _xUniHF
Definition: RecHitTask.h:122
Container1D _cTimingCut_HBHEPartition
Definition: RecHitTask.h:90
Container2D _cOccupancy_FEDVME
Definition: RecHitTask.h:103
Container1D _cOccupancyvsieta_Subdet
Definition: RecHitTask.h:109
int const FIBER_VME_MIN
Definition: Constants.h:90
Container2D _cOccupancy_FEDuTCA
Definition: RecHitTask.h:104
ContainerProf1D _cEnergyvsieta_Subdet
Definition: RecHitTask.h:79
void bookHistograms(fwlite::EventContainer &eventCont)
int const FIBERCH_MIN
Definition: Constants.h:100
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
std::vector< flag::Flag > _vflags
Definition: RecHitTask.h:59
std::vector< int > getFEDVMEList(HcalElectronicsMap const *)
Definition: Utilities.cc:71
Container2D _cOccupancyCut_FEDVME
Definition: RecHitTask.h:112
Container1D _cTimingCut_SubdetPM
Definition: RecHitTask.h:89
double _cutE_HBHE
Definition: RecHitTask.h:52
ProcessingType _ptype
Definition: DQModule.h:59
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *, int debug=0)
ContainerSingle2D _cSummaryvsLS
Definition: RecHitTask.h:126
electronicsmap::ElectronicsMap _ehashmap
Definition: RecHitTask.h:69
Container2D _cOccupancyCut_depth
Definition: RecHitTask.h:117
Container1D _cOccupancyCutvsiphi_SubdetPM
Definition: RecHitTask.h:118
int const FED_VME_MIN
Definition: Constants.h:47
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fEnergy), int debug=0)
Container2D _cOccupancyCut_FEDuTCA
Definition: RecHitTask.h:113
Container2D _cOccupancy_ElectronicsuTCA
Definition: RecHitTask.h:106
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fN), int debug=0)
Definition: Container2D.cc:32
int const FIBER_uTCA_MIN1
Definition: Constants.h:93
double _cutE_HF
Definition: RecHitTask.h:52
std::vector< HcalGenericDetId > allPrecisionId() const
ContainerXXX< uint32_t > _xUni
Definition: RecHitTask.h:122
ContainerProf2D _cEnergy_depth
Definition: RecHitTask.h:81
std::string _name
Definition: DQModule.h:57
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
ContainerProf1D _cEnergyvsBX_SubdetPM
Definition: RecHitTask.h:83
int const CRATE_uTCA_MIN
Definition: Constants.h:65
HashFilter _filter_VME
Definition: RecHitTask.h:72
ContainerProf1D _cEnergyvsLS_SubdetPM
Definition: RecHitTask.h:82
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
Definition: Container2D.cc:895
virtual void book(HcalElectronicsMap const *)
Definition: ContainerXXX.h:93
virtual void initialize(std::string const &folder, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fN), int debug=0)
ContainerProf2D _cTimingCut_depth
Definition: RecHitTask.h:95
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
Definition: Container1D.cc:957
Container1D _cEnergy_Subdet
Definition: RecHitTask.h:78
Container1D _cOccupancyCutvsieta_Subdet
Definition: RecHitTask.h:119
ContainerProf1D _cOccupancyCutvsBX_SubdetPM
Definition: RecHitTask.h:120
HashFilter _filter_uTCA
Definition: RecHitTask.h:73
HcalElectronicsMap const * _emap
Definition: RecHitTask.h:68
Container2D _cSummaryvsLS_FED
Definition: RecHitTask.h:125
std::vector< int > getFEDList(HcalElectronicsMap const *)
Definition: Utilities.cc:47
std::vector< int > getFEDuTCAList(HcalElectronicsMap const *)
Definition: Utilities.cc:97
std::string _subsystem
Definition: DQModule.h:64
virtual void initialize(hashfunctions::HashType, int debug=0)
Definition: ContainerXXX.h:85
virtual void initialize(FilterType ftype, HashType htype, std::vector< uint32_t > const &)
Definition: HashFilter.cc:26
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
ContainerProf1D _cTimingCutvsiphi_SubdetPM
Definition: RecHitTask.h:98
Container2D _cTimingvsEnergy_SubdetPM
Definition: RecHitTask.h:86
Readout chain identification for Hcal.
int const SLOT_uTCA_MIN
Definition: Constants.h:72
Container2D _cOccupancyCut_ElectronicsVME
Definition: RecHitTask.h:114
Container2D _cOccupancyCut_ElectronicsuTCA
Definition: RecHitTask.h:115
void RecHitTask::endLuminosityBlock ( edm::LuminosityBlock const &  lb,
edm::EventSetup const &  es 
)
virtual

Reimplemented from hcaldqm::DQTask.

Definition at line 671 of file RecHitTask.cc.

References _cSummaryvsLS, _cSummaryvsLS_FED, hcaldqm::DQModule::_currentLS, hcaldqm::DQModule::_ptype, hcaldqm::DQModule::_runkeyVal, hcaldqm::flag::Flag::_state, _thresh_unihf, hcaldqm::DQTask::_vcdaqEids, _vflags, _vhashFEDs, _xUni, _xUniHF, hcaldqm::ContainerXXX< STDTYPE >::begin(), hcaldqm::ContainerXXX< STDTYPE >::end(), hcaldqm::flag::fBAD, hcaldqm::flag::fGOOD, spr::find(), hcaldqm::flag::fNCDAQ, hcaldqm::fOnline, fUni, hcaldqm::ContainerXXX< STDTYPE >::get(), hcaldqm::utilities::isFEDHF(), hcaldqm::ContainerXXX< STDTYPE >::reset(), hcaldqm::flag::Flag::reset(), hcaldqm::Container2D::setBinContent(), and hcaldqm::ContainerSingle2D::setBinContent().

673 {
674  if (_ptype!=fOnline)
675  return;
676 
677  //
678  // GENERATE STATUS ONLY FOR ONLINE
679  //
680 // for (std::vector<HcalGenericDetId>::const_iterator it=gids.begin();
681 // it!=gids.end(); ++it)
682 // {}
683 
684  for (uintCompactMap::const_iterator it=_xUniHF.begin();
685  it!=_xUniHF.end(); ++it)
686  {
687  uint32_t hash1 = it->first;
688  HcalElectronicsId eid1(hash1);
689  double x1 = it->second;
690 
691  for (uintCompactMap::const_iterator jt=_xUniHF.begin();
692  jt!=_xUniHF.end(); ++jt)
693  {
694  if (jt==it)
695  continue;
696  double x2 = jt->second;
697  if (x2==0)
698  continue;
699  if (x1/x2<_thresh_unihf)
700  _xUni.get(eid1)++;
701  }
702  }
703 
704  for (std::vector<uint32_t>::const_iterator it=_vhashFEDs.begin();
705  it!=_vhashFEDs.end(); ++it)
706  {
707  flag::Flag fSum("RECO");
709 
710  std::vector<uint32_t>::const_iterator cit=std::find(
711  _vcdaqEids.begin(), _vcdaqEids.end(), *it);
712  if (cit==_vcdaqEids.end())
713  {
714  // not @cDAQ
715  for (uint32_t iflag=0; iflag<_vflags.size(); iflag++)
716  _cSummaryvsLS_FED.setBinContent(eid, _currentLS, int(iflag),
717  int(flag::fNCDAQ));
719  continue;
720  }
721 
722  // FED is @cDAQ
723  if (utilities::isFEDHF(eid) && (_runkeyVal==0 || _runkeyVal==4))
724  {
725  if (_xUni.get(eid)>0)
726  _vflags[fUni]._state = flag::fBAD;
727  else
728  _vflags[fUni]._state = flag::fGOOD;
729  }
730 
731  int iflag=0;
732  for (std::vector<flag::Flag>::iterator ft=_vflags.begin();
733  ft!=_vflags.end(); ++ft)
734  {
735  _cSummaryvsLS_FED.setBinContent(eid, _currentLS, int(iflag),
736  int(ft->_state));
737  fSum+=(*ft);
738  iflag++;
739 
740  // reset after using
741  ft->reset();
742  }
743  _cSummaryvsLS.setBinContent(eid, _currentLS, fSum._state);
744  }
745  _xUniHF.reset(); _xUni.reset();
746 
747  // in the end always do the DQTask::endLumi
748  DQTask::endLuminosityBlock(lb, es);
749 }
std::vector< uint32_t > _vhashFEDs
Definition: RecHitTask.h:56
virtual void setBinContent(HcalDetId const &, int)
Definition: Container2D.cc:235
virtual CompactMap::const_iterator begin()
Definition: ContainerXXX.h:69
virtual void reset()
Definition: ContainerXXX.h:342
ContainerXXX< uint32_t > _xUniHF
Definition: RecHitTask.h:122
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
std::vector< flag::Flag > _vflags
Definition: RecHitTask.h:59
virtual CompactMap::const_iterator end()
Definition: ContainerXXX.h:71
ProcessingType _ptype
Definition: DQModule.h:59
ContainerSingle2D _cSummaryvsLS
Definition: RecHitTask.h:126
virtual void setBinContent(int, int, int)
ContainerXXX< uint32_t > _xUni
Definition: RecHitTask.h:122
double _thresh_unihf
Definition: RecHitTask.h:53
virtual STDTYPE & get(HcalDetId const &)
Definition: ContainerXXX.h:243
Container2D _cSummaryvsLS_FED
Definition: RecHitTask.h:125
std::vector< uint32_t > _vcdaqEids
Definition: DQTask.h:65
Readout chain identification for Hcal.
bool isFEDHF(HcalElectronicsId const &)
Definition: Utilities.cc:146

Member Data Documentation

ContainerProf2D RecHitTask::_cEnergy_depth
protected

Definition at line 81 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

Container1D RecHitTask::_cEnergy_Subdet
protected

Definition at line 78 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

ContainerProf1D RecHitTask::_cEnergyvsBX_SubdetPM
protected

Definition at line 83 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

ContainerProf1D RecHitTask::_cEnergyvsieta_Subdet
protected

Definition at line 79 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

ContainerProf1D RecHitTask::_cEnergyvsiphi_SubdetPM
protected

Definition at line 80 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

ContainerProf1D RecHitTask::_cEnergyvsLS_SubdetPM
protected

Definition at line 82 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

Container2D RecHitTask::_cOccupancy_depth
protected

Definition at line 102 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

Container2D RecHitTask::_cOccupancy_ElectronicsuTCA
protected

Definition at line 106 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

Container2D RecHitTask::_cOccupancy_ElectronicsVME
protected

Definition at line 105 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

Container2D RecHitTask::_cOccupancy_FEDuTCA
protected

Definition at line 104 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

Container2D RecHitTask::_cOccupancy_FEDVME
protected

Definition at line 103 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

Container2D RecHitTask::_cOccupancyCut_depth
protected

Definition at line 117 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

Container2D RecHitTask::_cOccupancyCut_ElectronicsuTCA
protected

Definition at line 115 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

Container2D RecHitTask::_cOccupancyCut_ElectronicsVME
protected

Definition at line 114 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

Container2D RecHitTask::_cOccupancyCut_FEDuTCA
protected

Definition at line 113 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

Container2D RecHitTask::_cOccupancyCut_FEDVME
protected

Definition at line 112 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

ContainerProf1D RecHitTask::_cOccupancyCutvsBX_SubdetPM
protected

Definition at line 120 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

Container1D RecHitTask::_cOccupancyCutvsieta_Subdet
protected

Definition at line 119 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

Container1D RecHitTask::_cOccupancyCutvsiphi_SubdetPM
protected

Definition at line 118 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

Container2D RecHitTask::_cOccupancyCutvsiphivsLS_SubdetPM
protected

Definition at line 121 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

ContainerProf1D RecHitTask::_cOccupancyCutvsLS_Subdet
protected

Definition at line 116 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

Container1D RecHitTask::_cOccupancyvsieta_Subdet
protected

Definition at line 109 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

Container1D RecHitTask::_cOccupancyvsiphi_SubdetPM
protected

Definition at line 108 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

ContainerProf1D RecHitTask::_cOccupancyvsLS_Subdet
protected

Definition at line 107 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

ContainerSingle2D RecHitTask::_cSummaryvsLS
protected

Definition at line 126 of file RecHitTask.h.

Referenced by bookHistograms(), and endLuminosityBlock().

Container2D RecHitTask::_cSummaryvsLS_FED
protected

Definition at line 125 of file RecHitTask.h.

Referenced by bookHistograms(), and endLuminosityBlock().

ContainerProf2D RecHitTask::_cTimingCut_depth
protected

Definition at line 95 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

ContainerProf2D RecHitTask::_cTimingCut_ElectronicsuTCA
protected

Definition at line 94 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

ContainerProf2D RecHitTask::_cTimingCut_ElectronicsVME
protected

Definition at line 93 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

ContainerProf2D RecHitTask::_cTimingCut_FEDuTCA
protected

Definition at line 92 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

ContainerProf2D RecHitTask::_cTimingCut_FEDVME
protected

Definition at line 91 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

Container1D RecHitTask::_cTimingCut_HBHEPartition
protected

Definition at line 90 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

Container1D RecHitTask::_cTimingCut_SubdetPM
protected

Definition at line 89 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

ContainerProf1D RecHitTask::_cTimingCutvsBX_SubdetPM
protected

Definition at line 99 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

ContainerProf1D RecHitTask::_cTimingCutvsieta_Subdet
protected

Definition at line 97 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

ContainerProf1D RecHitTask::_cTimingCutvsiphi_SubdetPM
protected

Definition at line 98 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

ContainerProf1D RecHitTask::_cTimingCutvsLS_FED
protected

Definition at line 96 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

Container2D RecHitTask::_cTimingvsEnergy_SubdetPM
protected

Definition at line 86 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

double RecHitTask::_cutE_HBHE
protected

Definition at line 52 of file RecHitTask.h.

Referenced by _process(), bookHistograms(), and RecHitTask().

double RecHitTask::_cutE_HF
protected

Definition at line 52 of file RecHitTask.h.

Referenced by _process(), bookHistograms(), and RecHitTask().

double RecHitTask::_cutE_HO
protected

Definition at line 52 of file RecHitTask.h.

Referenced by _process(), bookHistograms(), and RecHitTask().

electronicsmap::ElectronicsMap RecHitTask::_ehashmap
protected

Definition at line 69 of file RecHitTask.h.

Referenced by _process(), and bookHistograms().

HcalElectronicsMap const* RecHitTask::_emap
protected

Definition at line 68 of file RecHitTask.h.

Referenced by bookHistograms().

HashFilter RecHitTask::_filter_FEDsuTCA
protected

Definition at line 75 of file RecHitTask.h.

HashFilter RecHitTask::_filter_FEDsVME
protected

Definition at line 74 of file RecHitTask.h.

HashFilter RecHitTask::_filter_uTCA
protected

Definition at line 73 of file RecHitTask.h.

Referenced by bookHistograms().

HashFilter RecHitTask::_filter_VME
protected

Definition at line 72 of file RecHitTask.h.

Referenced by bookHistograms().

std::vector<HcalGenericDetId> RecHitTask::_gids
protected

Definition at line 124 of file RecHitTask.h.

Referenced by bookHistograms().

edm::InputTag RecHitTask::_tagHBHE
protected

Definition at line 45 of file RecHitTask.h.

Referenced by _process(), and RecHitTask().

edm::InputTag RecHitTask::_tagHF
protected

Definition at line 47 of file RecHitTask.h.

Referenced by _process(), and RecHitTask().

edm::InputTag RecHitTask::_tagHO
protected

Definition at line 46 of file RecHitTask.h.

Referenced by _process(), and RecHitTask().

double RecHitTask::_thresh_unihf
protected

Definition at line 53 of file RecHitTask.h.

Referenced by endLuminosityBlock(), and RecHitTask().

edm::EDGetTokenT<HBHERecHitCollection> RecHitTask::_tokHBHE
protected

Definition at line 48 of file RecHitTask.h.

Referenced by _process(), and RecHitTask().

edm::EDGetTokenT<HFRecHitCollection> RecHitTask::_tokHF
protected

Definition at line 50 of file RecHitTask.h.

Referenced by _process(), and RecHitTask().

edm::EDGetTokenT<HORecHitCollection> RecHitTask::_tokHO
protected

Definition at line 49 of file RecHitTask.h.

Referenced by _process(), and RecHitTask().

std::vector<flag::Flag> RecHitTask::_vflags
protected

Definition at line 59 of file RecHitTask.h.

Referenced by bookHistograms(), endLuminosityBlock(), and RecHitTask().

std::vector<uint32_t> RecHitTask::_vhashFEDs
protected

Definition at line 56 of file RecHitTask.h.

Referenced by bookHistograms(), and endLuminosityBlock().

ContainerXXX<uint32_t> RecHitTask::_xUni
protected

Definition at line 122 of file RecHitTask.h.

Referenced by bookHistograms(), and endLuminosityBlock().

ContainerXXX<uint32_t> RecHitTask::_xUniHF
protected

Definition at line 122 of file RecHitTask.h.

Referenced by _process(), bookHistograms(), and endLuminosityBlock().

tuple RecHitTask.recHitTask
Initial value:
1 = cms.EDAnalyzer(
2  "RecHitTask",
3 
4  # standard parameters
5  name = cms.untracked.string("RecHitTask"),
6  debug = cms.untracked.int32(0),
7  runkeyVal = cms.untracked.int32(0),
8  runkeyName = cms.untracked.string("pp_run"),
9  ptype = cms.untracked.int32(0),
10  mtype = cms.untracked.bool(True),
11  subsystem = cms.untracked.string("Hcal"),
12 
13  # tags
14  tagHBHE = cms.untracked.InputTag("hbhereco"),
15  tagHO = cms.untracked.InputTag("horeco"),
16  tagHF = cms.untracked.InputTag("hfreco"),
17  tagRaw = cms.untracked.InputTag('rawDataCollector'),
18 
19  # thresholds
20  thresh_unihf = cms.untracked.double(0.2),
21 )

Definition at line 3 of file RecHitTask.py.