CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
PedestalTask Class Reference

#include <PedestalTask.h>

Inheritance diagram for PedestalTask:
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 &)
 
virtual void endRun (edm::Run const &, edm::EventSetup const &)
 
 PedestalTask (edm::ParameterSet const &)
 
virtual ~PedestalTask ()
 
- 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 ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 
- Public Member Functions inherited from hcaldqm::DQModule
 DQModule (edm::ParameterSet const &)
 
virtual ~DQModule ()(false)
 

Protected Types

enum  PedestalFlag { fMsn = 0, fBadM = 1, fBadR = 2, nPedestalFlag =3 }
 

Protected Member Functions

virtual void _dump ()
 
virtual bool _isApplicable (edm::Event const &)
 
virtual void _process (edm::Event const &, edm::EventSetup const &)
 
virtual void _resetMonitors (hcaldqm::UpdateFreq)
 
- Protected Member Functions inherited from hcaldqm::DQTask
virtual int _getCalibType (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

hcaldqm::Container1D _cADC_SubdetPM
 
hcaldqm::ContainerProf2D _cMean1LS_depth
 
hcaldqm::ContainerProf2D _cMean1LS_FEDuTCA
 
hcaldqm::ContainerProf2D _cMean1LS_FEDVME
 
hcaldqm::Container1D _cMean1LS_Subdet
 
hcaldqm::Container2D _cMeanBad1LS_depth
 
hcaldqm::Container2D _cMeanBad1LS_FEDuTCA
 
hcaldqm::Container2D _cMeanBad1LS_FEDVME
 
hcaldqm::Container2D _cMeanBadTotal_depth
 
hcaldqm::Container2D _cMeanBadTotal_FEDuTCA
 
hcaldqm::Container2D _cMeanBadTotal_FEDVME
 
hcaldqm::ContainerProf2D _cMeanDBRef1LS_depth
 
hcaldqm::ContainerProf2D _cMeanDBRef1LS_FEDuTCA
 
hcaldqm::ContainerProf2D _cMeanDBRef1LS_FEDVME
 
hcaldqm::Container1D _cMeanDBRef1LS_Subdet
 
hcaldqm::ContainerProf2D _cMeanDBRefTotal_depth
 
hcaldqm::ContainerProf2D _cMeanDBRefTotal_FEDuTCA
 
hcaldqm::ContainerProf2D _cMeanDBRefTotal_FEDVME
 
hcaldqm::Container1D _cMeanDBRefTotal_Subdet
 
hcaldqm::ContainerProf2D _cMeanTotal_depth
 
hcaldqm::ContainerProf2D _cMeanTotal_FEDuTCA
 
hcaldqm::ContainerProf2D _cMeanTotal_FEDVME
 
hcaldqm::Container1D _cMeanTotal_Subdet
 
hcaldqm::Container2D _cMissing1LS_depth
 
hcaldqm::Container2D _cMissing1LS_FEDuTCA
 
hcaldqm::Container2D _cMissing1LS_FEDVME
 
hcaldqm::Container2D _cMissingTotal_depth
 
hcaldqm::Container2D _cMissingTotal_FEDuTCA
 
hcaldqm::Container2D _cMissingTotal_FEDVME
 
hcaldqm::Container1D _cMissingvsLS_Subdet
 
hcaldqm::Container1D _cNBadMeanvsLS_Subdet
 
hcaldqm::Container1D _cNBadRMSvsLS_Subdet
 
hcaldqm::ContainerProf1D _cOccupancyEAvsLS_Subdet
 
hcaldqm::Container1D _cOccupancyvsLS_Subdet
 
hcaldqm::ContainerProf2D _cRMS1LS_depth
 
hcaldqm::ContainerProf2D _cRMS1LS_FEDuTCA
 
hcaldqm::ContainerProf2D _cRMS1LS_FEDVME
 
hcaldqm::Container1D _cRMS1LS_Subdet
 
hcaldqm::Container2D _cRMSBad1LS_depth
 
hcaldqm::Container2D _cRMSBad1LS_FEDuTCA
 
hcaldqm::Container2D _cRMSBad1LS_FEDVME
 
hcaldqm::Container2D _cRMSBadTotal_depth
 
hcaldqm::Container2D _cRMSBadTotal_FEDuTCA
 
hcaldqm::Container2D _cRMSBadTotal_FEDVME
 
hcaldqm::ContainerProf2D _cRMSDBRef1LS_depth
 
hcaldqm::ContainerProf2D _cRMSDBRef1LS_FEDuTCA
 
hcaldqm::ContainerProf2D _cRMSDBRef1LS_FEDVME
 
hcaldqm::Container1D _cRMSDBRef1LS_Subdet
 
hcaldqm::ContainerProf2D _cRMSDBRefTotal_depth
 
hcaldqm::ContainerProf2D _cRMSDBRefTotal_FEDuTCA
 
hcaldqm::ContainerProf2D _cRMSDBRefTotal_FEDVME
 
hcaldqm::Container1D _cRMSDBRefTotal_Subdet
 
hcaldqm::ContainerProf2D _cRMSTotal_depth
 
hcaldqm::ContainerProf2D _cRMSTotal_FEDuTCA
 
hcaldqm::ContainerProf2D _cRMSTotal_FEDVME
 
hcaldqm::Container1D _cRMSTotal_Subdet
 
hcaldqm::ContainerSingle2D _cSummaryvsLS
 
hcaldqm::Container2D _cSummaryvsLS_FED
 
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
 
HcalElectronicsMap const * _emap
 
hcaldqm::filter::HashFilter _filter_C36
 
hcaldqm::filter::HashFilter _filter_uTCA
 
hcaldqm::filter::HashFilter _filter_VME
 
edm::InputTag _tagHBHE
 
edm::InputTag _tagHF
 
edm::InputTag _tagHO
 
edm::InputTag _tagTrigger
 
edm::InputTag _taguMN
 
double _thresh_badm
 
double _thresh_badr
 
double _thresh_mean
 
double _thresh_missing_high
 
double _thresh_missing_low
 
double _thresh_rms
 
edm::EDGetTokenT< HBHEDigiCollection_tokHBHE
 
edm::EDGetTokenT< QIE10DigiCollection_tokHF
 
edm::EDGetTokenT< HODigiCollection_tokHO
 
edm::EDGetTokenT< HcalTBTriggerData_tokTrigger
 
edm::EDGetTokenT< HcalUMNioDigi_tokuMN
 
std::vector< hcaldqm::flag::Flag_vflags
 
std::vector< uint32_t > _vhashFEDs
 
hcaldqm::ContainerXXX< int > _xNBadMean1LS
 
hcaldqm::ContainerXXX< int > _xNBadRMS1LS
 
hcaldqm::ContainerXXX< int > _xNChs
 
hcaldqm::ContainerXXX< int > _xNMsn1LS
 
hcaldqm::ContainerXXX< int > _xPedEntries1LS
 
hcaldqm::ContainerXXX< int > _xPedEntriesTotal
 
hcaldqm::ContainerXXX< double > _xPedRefMean
 
hcaldqm::ContainerXXX< double > _xPedRefRMS
 
hcaldqm::ContainerXXX< double > _xPedSum1LS
 
hcaldqm::ContainerXXX< double > _xPedSum21LS
 
hcaldqm::ContainerXXX< double > _xPedSum2Total
 
hcaldqm::ContainerXXX< double > _xPedSumTotal
 
- 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, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
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::NoCacheglobalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
 
static std::shared_ptr< dqmDetails::NoCacheglobalBeginRunSummary (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 21 of file PedestalTask.h.

Member Enumeration Documentation

Enumerator
fMsn 
fBadM 
fBadR 
nPedestalFlag 

Definition at line 56 of file PedestalTask.h.

Constructor & Destructor Documentation

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

Definition at line 5 of file PedestalTask.cc.

References _tagHBHE, _tagHF, _tagHO, _tagTrigger, _taguMN, _thresh_badm, _thresh_badr, _thresh_mean, _thresh_missing_high, _thresh_missing_low, _thresh_rms, _tokHBHE, _tokHF, _tokHO, _tokTrigger, _tokuMN, _vflags, fBadM, fBadR, fMsn, edm::ParameterSet::getUntrackedParameter(), and nPedestalFlag.

5  :
6  DQTask(ps)
7 {
8  // tags
9  _tagHBHE = ps.getUntrackedParameter<edm::InputTag>("tagHBHE",
10  edm::InputTag("hcalDigis"));
11  _tagHO = ps.getUntrackedParameter<edm::InputTag>("tagHO",
12  edm::InputTag("hcalDigis"));
13  _tagHF = ps.getUntrackedParameter<edm::InputTag>("tagHF",
14  edm::InputTag("hcalDigis"));
15  _tagTrigger = ps.getUntrackedParameter<edm::InputTag>("tagTrigger",
16  edm::InputTag("tbunpacker"));
17  _taguMN = ps.getUntrackedParameter<edm::InputTag>("taguMN",
18  edm::InputTag("hcalDigis"));
19  _tokHBHE = consumes<HBHEDigiCollection>(_tagHBHE);
20  _tokHO = consumes<HODigiCollection>(_tagHO);
21  _tokHF = consumes<QIE10DigiCollection>(_tagHF);
22  _tokTrigger = consumes<HcalTBTriggerData>(_tagTrigger);
23  _tokuMN = consumes<HcalUMNioDigi>(_taguMN);
24 
25  _vflags.resize(nPedestalFlag);
29 
30  _thresh_mean = ps.getUntrackedParameter<double>("thresh_mean",
31  0.25);
32  _thresh_rms = ps.getUntrackedParameter<double>("thresh_mean",
33  0.25);
34  _thresh_badm = ps.getUntrackedParameter<double>("thresh_badm", 0.1);
35  _thresh_badr = ps.getUntrackedParameter<double>("thresh_badr", 0.1);
36  _thresh_missing_high = ps.getUntrackedParameter<double>(
37  "thresh_missing_high", 0.2);
38  _thresh_missing_low = ps.getUntrackedParameter<double>(
39  "thresh_missing_low", 0.05);
40 }
edm::InputTag _taguMN
Definition: PedestalTask.h:48
edm::InputTag _tagHF
Definition: PedestalTask.h:46
double _thresh_badm
Definition: PedestalTask.h:72
double _thresh_badr
Definition: PedestalTask.h:72
DQTask(edm::ParameterSet const &)
Definition: DQTask.cc:7
edm::InputTag _tagHBHE
Definition: PedestalTask.h:44
edm::InputTag _tagHO
Definition: PedestalTask.h:45
edm::EDGetTokenT< HcalTBTriggerData > _tokTrigger
Definition: PedestalTask.h:53
double _thresh_missing_low
Definition: PedestalTask.h:73
double _thresh_missing_high
Definition: PedestalTask.h:73
std::vector< hcaldqm::flag::Flag > _vflags
Definition: PedestalTask.h:55
edm::EDGetTokenT< HcalUMNioDigi > _tokuMN
Definition: PedestalTask.h:49
edm::EDGetTokenT< HBHEDigiCollection > _tokHBHE
Definition: PedestalTask.h:50
edm::EDGetTokenT< QIE10DigiCollection > _tokHF
Definition: PedestalTask.h:52
edm::InputTag _tagTrigger
Definition: PedestalTask.h:47
edm::EDGetTokenT< HODigiCollection > _tokHO
Definition: PedestalTask.h:51
double _thresh_mean
Definition: PedestalTask.h:72
double _thresh_rms
Definition: PedestalTask.h:72
virtual PedestalTask::~PedestalTask ( )
inlinevirtual

Member Function Documentation

void PedestalTask::_dump ( )
protectedvirtual

Definition at line 471 of file PedestalTask.cc.

References _cMean1LS_depth, _cMean1LS_FEDuTCA, _cMean1LS_FEDVME, _cMean1LS_Subdet, _cMeanBad1LS_depth, _cMeanBad1LS_FEDuTCA, _cMeanBad1LS_FEDVME, _cMeanBadTotal_depth, _cMeanBadTotal_FEDuTCA, _cMeanBadTotal_FEDVME, _cMeanDBRef1LS_depth, _cMeanDBRef1LS_FEDuTCA, _cMeanDBRef1LS_FEDVME, _cMeanDBRef1LS_Subdet, _cMeanDBRefTotal_depth, _cMeanDBRefTotal_FEDuTCA, _cMeanDBRefTotal_FEDVME, _cMeanDBRefTotal_Subdet, _cMeanTotal_depth, _cMeanTotal_FEDuTCA, _cMeanTotal_FEDVME, _cMeanTotal_Subdet, _cMissing1LS_depth, _cMissing1LS_FEDuTCA, _cMissing1LS_FEDVME, _cMissingTotal_depth, _cMissingTotal_FEDuTCA, _cMissingTotal_FEDVME, _cMissingvsLS_Subdet, _cNBadMeanvsLS_Subdet, _cNBadRMSvsLS_Subdet, _cOccupancyvsLS_Subdet, _cRMS1LS_depth, _cRMS1LS_FEDuTCA, _cRMS1LS_FEDVME, _cRMS1LS_Subdet, _cRMSBad1LS_depth, _cRMSBad1LS_FEDuTCA, _cRMSBad1LS_FEDVME, _cRMSBadTotal_depth, _cRMSBadTotal_FEDuTCA, _cRMSBadTotal_FEDVME, _cRMSDBRef1LS_depth, _cRMSDBRef1LS_FEDuTCA, _cRMSDBRef1LS_FEDVME, _cRMSDBRef1LS_Subdet, _cRMSDBRefTotal_depth, _cRMSDBRefTotal_FEDuTCA, _cRMSDBRefTotal_FEDVME, _cRMSDBRefTotal_Subdet, _cRMSTotal_depth, _cRMSTotal_FEDuTCA, _cRMSTotal_FEDVME, _cRMSTotal_Subdet, _cSummaryvsLS, _cSummaryvsLS_FED, hcaldqm::DQModule::_currentLS, _ehashmap, _emap, _filter_C36, hcaldqm::DQModule::_ptype, hcaldqm::flag::Flag::_state, _thresh_badm, _thresh_badr, _thresh_mean, _thresh_missing_high, _thresh_missing_low, _thresh_rms, hcaldqm::DQTask::_vcdaqEids, _vflags, _vhashFEDs, _xNBadMean1LS, _xNBadRMS1LS, _xNChs, _xNMsn1LS, _xPedEntries1LS, _xPedEntriesTotal, _xPedRefMean, _xPedRefRMS, _xPedSum1LS, _xPedSum21LS, _xPedSum2Total, _xPedSumTotal, hcaldqm::DQTask::_xQuality, HcalElectronicsMap::allPrecisionId(), fwrapper::cs, runTauDisplay::eid, hcaldqm::ContainerXXX< STDTYPE >::exists(), hcaldqm::flag::fBAD, fBadM, fBadR, hcaldqm::flag::fGOOD, hcaldqm::Container2D::fill(), hcaldqm::Container1D::fill(), hcaldqm::filter::HashFilter::filter(), spr::find(), fMsn, hcaldqm::flag::fNCDAQ, hcaldqm::fOffline, hcaldqm::flag::fPROBLEMATIC, hcaldqm::ContainerXXX< STDTYPE >::get(), HcalChannelStatus::HcalCellDead, HcalChannelStatus::HcalCellMask, hcaldqm::utilities::isFEDHBHE(), hcaldqm::utilities::isFEDHF(), hcaldqm::utilities::isFEDHO(), hcaldqm::electronicsmap::ElectronicsMap::lookup(), hcaldqm::ContainerXXX< STDTYPE >::reset(), hcaldqm::flag::Flag::reset(), hcaldqm::Container1D::reset(), hcaldqm::Container2D::setBinContent(), hcaldqm::ContainerSingle2D::setBinContent(), and mathSSE::sqrt().

Referenced by endLuminosityBlock(), endRun(), and ~PedestalTask().

472 {
473  // reset what's needed
474 
475  // Mean/RMS actual values
480  if (_ptype != fOffline) { // hidefed2crate
485  }
486 
491  if (_ptype != fOffline) { // hidefed2crate
496  }
497 
498 
499  // DB Conditions Comparison
504 
509 
510  if (_ptype != fOffline) { // hidefed2crate
515 
520  }
521 
522  // missing channels
526 
530 
531  // Missing or Bad
532  if (_ptype != fOffline) { // hidefed2crate
539 
546 
547  // reset some XXX containers
548  _xNChs.reset();
549  _xNMsn1LS.reset();
551  }
552  // - ITERATE OVER ALL TEH CHANNELS
553  // - FIND THE ONES THAT ARE MISSING
554  // - FIND THE ONES WITH BAD PEDESTAL MEANs
555  // - FIND THE ONES WITH BAD PEDESTAL RMSs
556  std::vector<HcalGenericDetId> dids = _emap->allPrecisionId();
557  for (std::vector<HcalGenericDetId>::const_iterator it=dids.begin();
558  it!=dids.end(); ++it)
559  {
560  if (!it->isHcalDetId())
561  continue;
563  if (_filter_C36.filter(eid))
564  continue;
565 
566  // filter out channels with bad quality
567  if (_xQuality.exists(HcalDetId(*it)))
568  {
569  HcalChannelStatus cs(it->rawId(), _xQuality.get(HcalDetId(*it)));
570  if (
573  continue;
574  }
575 
576  HcalDetId did = HcalDetId(it->rawId());
577  double sum1LS = _xPedSum1LS.get(did);
578 #ifndef HIDE_PEDESTAL_CONDITIONS
579  double refm = _xPedRefMean.get(did);
580 #endif
581  double sum21LS = _xPedSum21LS.get(did);
582 #ifndef HIDE_PEDESTAL_CONDITIONS
583  double refr = _xPedRefRMS.get(did);
584 #endif
585  double n1LS = _xPedEntries1LS.get(did);
586 
587  double sumTotal = _xPedSumTotal.get(did);
588  double sum2Total = _xPedSum2Total.get(did);
589  double nTotal = _xPedEntriesTotal.get(did);
590 
591  if (_ptype != fOffline) { // hidefed2crate
592  _xNChs.get(eid)++;
593  }
594  // IF A CHANNEL IS MISSING FOR THIS LS
595  if (n1LS==0)
596  {
599  if (_ptype != fOffline) { // hidefed2crate
600  eid.isVMEid()?_cMissing1LS_FEDVME.fill(eid):
602  _xNMsn1LS.get(eid)++;
603  }
604  // ALSO CHECK
605  // IF A CHANNEL HAS BEEN MISSING FOR ALL LSs SO FAR
606  if (nTotal==0)
607  {
609  if (_ptype != fOffline) { // hidefed2crate
610  eid.isVMEid()?_cMissingTotal_FEDVME.fill(eid):
612  }
613  }
614  continue;
615  }
616 
617  // if not missing, fill the occupancy...
619 
620  // compute the means and diffs for this LS
621  sum1LS/=n1LS; double rms1LS = sqrt(sum21LS/n1LS-sum1LS*sum1LS);
622 #ifndef HIDE_PEDESTAL_CONDITIONS
623  double diffm1LS = sum1LS-refm;
624  double diffr1LS = rms1LS - refr;
625 #endif
626  // compute the means and diffs for the whole Run
627  sumTotal/=nTotal;
628  double rmsTotal = sqrt(sum2Total/nTotal-sumTotal*sumTotal);
629 #ifndef HIDE_PEDESTAL_CONDITIONS
630  double diffmTotal = sumTotal-refm;
631  double diffrTotal = rmsTotal - refr;
632 #endif
633  // FILL ACTUAL MEANs AND RMSs FOR THIS LS
634  _cMean1LS_Subdet.fill(did, sum1LS);
635  _cMean1LS_depth.fill(did, sum1LS);
636  _cRMS1LS_Subdet.fill(did, rms1LS);
637  _cRMS1LS_depth.fill(did, rms1LS);
638 
639  // FILL THE DIFFERENCES FOR THIS LS
640 #ifndef HIDE_PEDESTAL_CONDITIONS
641  _cMeanDBRef1LS_Subdet.fill(did, diffm1LS);
642  _cMeanDBRef1LS_depth.fill(did, diffm1LS);
643  _cRMSDBRef1LS_Subdet.fill(did, diffr1LS);
644  _cRMSDBRef1LS_depth.fill(did, diffr1LS);
645 #endif
646  // FILL ACTUAL MEANs AND RMSs FOR THE WHOLE RUN
647  _cMeanTotal_Subdet.fill(did, sumTotal);
648  _cMeanTotal_depth.fill(did, sumTotal);
649  _cRMSTotal_Subdet.fill(did, rmsTotal);
650  _cRMSTotal_depth.fill(did, rmsTotal);
651 
652  // FILL THE DIFFERENCES FOR THE WHOLE RUN
653 #ifndef HIDE_PEDESTAL_CONDITIONS
654  _cMeanDBRefTotal_Subdet.fill(did, diffmTotal);
655  _cMeanDBRefTotal_depth.fill(did, diffmTotal);
656  _cRMSDBRefTotal_Subdet.fill(did, diffrTotal);
657  _cRMSDBRefTotal_depth.fill(did, diffrTotal);
658 #endif
659  // FOR THIS LS
660  if (_ptype != fOffline) { // hidefed2crate
661  if (eid.isVMEid())
662  {
663  _cMean1LS_FEDVME.fill(eid, sum1LS);
664  _cRMS1LS_FEDVME.fill(eid, rms1LS);
665  _cMeanDBRef1LS_FEDVME.fill(eid, diffm1LS);
666  _cRMSDBRef1LS_FEDVME.fill(eid, diffr1LS);
667  }
668  else
669  {
670  _cMean1LS_FEDuTCA.fill(eid, sum1LS);
671  _cRMS1LS_FEDuTCA.fill(eid, rms1LS);
672  _cMeanDBRef1LS_FEDuTCA.fill(eid, diffm1LS);
673  _cRMSDBRef1LS_FEDuTCA.fill(eid, diffr1LS);
674  }
675 
676  // FOR THE WHOLE RUN
677  if (eid.isVMEid())
678  {
679  _cMeanTotal_FEDVME.fill(eid, sumTotal);
680  _cRMSTotal_FEDVME.fill(eid, rmsTotal);
681  _cMeanDBRefTotal_FEDVME.fill(eid, diffmTotal);
682  _cRMSDBRefTotal_FEDVME.fill(eid, diffrTotal);
683  }
684  else
685  {
686  _cMeanTotal_FEDuTCA.fill(eid, sumTotal);
687  _cRMSTotal_FEDuTCA.fill(eid, rmsTotal);
688  _cMeanDBRefTotal_FEDuTCA.fill(eid, diffmTotal);
689  _cRMSDBRefTotal_FEDuTCA.fill(eid, diffrTotal);
690  }
691  }
692 
693  // FOR THE CURRENT LS COMPARE MEANS AND RMSS
694 #ifndef HIDE_PEDESTAL_CONDITIONS
695  if (fabs(diffm1LS)>_thresh_mean)
696  {
699  if (_ptype != fOffline) { // hidefed2crate
700  if (eid.isVMEid())
702  else
704  _xNBadMean1LS.get(eid)++;
705  }
706  }
707  if (fabs(diffr1LS)>_thresh_rms)
708  {
709  _cRMSBad1LS_depth.fill(did);
711  if (_ptype != fOffline) { // hidefed2crate
712  if (eid.isVMEid())
714  else
716  _xNBadRMS1LS.get(eid)++;
717  }
718  }
719 
720  // FOR THIS RUN
721  if (fabs(diffmTotal)>_thresh_mean)
722  {
724  if (_ptype != fOffline) { // hidefed2crate
725  if (eid.isVMEid())
727  else
729  }
730  }
731  if (fabs(diffrTotal)>_thresh_rms)
732  {
734  if (_ptype != fOffline) { // hidefed2crate
735  if (eid.isVMEid())
737  else
739  }
740  }
741 #endif
742 
743  }
744 
745  // SET THE FLAGS FOR THIS LS
746  if (_ptype != fOffline) { // hidefed2crate
747  for (std::vector<uint32_t>::const_iterator it=_vhashFEDs.begin();
748  it!=_vhashFEDs.end(); ++it)
749  {
750  hcaldqm::flag::Flag fSum("PED");
752 
753  std::vector<uint32_t>::const_iterator jt=
754  std::find(_vcdaqEids.begin(), _vcdaqEids.end(), (*it));
755  if (jt==_vcdaqEids.end())
756  {
757  // not @cDAQ
758  for (uint32_t iflag=0; iflag<_vflags.size(); iflag++)
759  _cSummaryvsLS_FED.setBinContent(eid, _currentLS, int(iflag),
760  int(hcaldqm::flag::fNCDAQ));
762  continue;
763  }
764 
765  // @cDAQ
768  {
769  double frmissing = double(_xNMsn1LS.get(eid))/
770  double(_xNChs.get(eid));
771  double frbadm = _xNBadMean1LS.get(eid)/_xNChs.get(eid);
772  double frbadr = _xNBadRMS1LS.get(eid)/_xNChs.get(eid);
773 
774  if (frmissing>=_thresh_missing_high)
775  _vflags[fMsn]._state = hcaldqm::flag::fBAD;
776  else if (frmissing>=_thresh_missing_low)
778  else
780  if (frbadm>=_thresh_badm)
782  else
784  if (frbadr>=_thresh_badr)
786  else
788  }
789 
790  int iflag=0;
791  for (std::vector<hcaldqm::flag::Flag>::iterator ft=_vflags.begin();
792  ft!=_vflags.end(); ++ft)
793  {
795  int(ft->_state));
796  fSum+=(*ft);
797  iflag++;
798  ft->reset();
799  }
800  _cSummaryvsLS.setBinContent(eid, _currentLS, fSum._state);
801  }
802  }
803 
804  // reset the pedestal containers instead of writting reset... func
806 
807 }
hcaldqm::ContainerXXX< double > _xPedRefRMS
Definition: PedestalTask.h:91
hcaldqm::Container2D _cMissing1LS_depth
Definition: PedestalTask.h:143
double _thresh_badm
Definition: PedestalTask.h:72
hcaldqm::ContainerProf2D _cRMSTotal_FEDVME
Definition: PedestalTask.h:111
hcaldqm::ContainerXXX< double > _xPedSumTotal
Definition: PedestalTask.h:82
auto_ptr< ClusterSequence > cs
virtual bool exists(HcalDetId const &)
Definition: ContainerXXX.h:267
double _thresh_badr
Definition: PedestalTask.h:72
hcaldqm::Container2D _cMissingTotal_depth
Definition: PedestalTask.h:146
hcaldqm::Container1D _cMeanTotal_Subdet
Definition: PedestalTask.h:94
hcaldqm::ContainerProf2D _cMean1LS_depth
Definition: PedestalTask.h:100
hcaldqm::ContainerProf2D _cMeanDBRef1LS_FEDVME
Definition: PedestalTask.h:121
hcaldqm::Container1D _cMeanDBRef1LS_Subdet
Definition: PedestalTask.h:115
hcaldqm::ContainerProf2D _cRMSDBRef1LS_depth
Definition: PedestalTask.h:120
hcaldqm::Container1D _cMean1LS_Subdet
Definition: PedestalTask.h:96
hcaldqm::ContainerXXX< int > _xPedEntries1LS
Definition: PedestalTask.h:81
hcaldqm::Container2D _cMeanBad1LS_FEDuTCA
Definition: PedestalTask.h:156
hcaldqm::Container1D _cRMSTotal_Subdet
Definition: PedestalTask.h:95
hcaldqm::Container1D _cNBadRMSvsLS_Subdet
Definition: PedestalTask.h:137
hcaldqm::Container2D _cRMSBadTotal_depth
Definition: PedestalTask.h:159
hcaldqm::ContainerProf2D _cRMSDBRefTotal_FEDVME
Definition: PedestalTask.h:130
hcaldqm::ContainerProf2D _cRMSDBRef1LS_FEDuTCA
Definition: PedestalTask.h:124
hcaldqm::ContainerProf2D _cMeanDBRefTotal_FEDVME
Definition: PedestalTask.h:128
hcaldqm::ContainerProf2D _cRMSTotal_depth
Definition: PedestalTask.h:108
hcaldqm::ContainerXXX< double > _xPedSum1LS
Definition: PedestalTask.h:79
hcaldqm::ContainerXXX< int > _xPedEntriesTotal
Definition: PedestalTask.h:84
hcaldqm::ContainerXXX< double > _xPedSum21LS
Definition: PedestalTask.h:80
hcaldqm::Container2D _cMeanBadTotal_FEDuTCA
Definition: PedestalTask.h:163
hcaldqm::ContainerProf2D _cMeanTotal_FEDVME
Definition: PedestalTask.h:109
hcaldqm::Container2D _cRMSBadTotal_FEDuTCA
Definition: PedestalTask.h:161
hcaldqm::Container2D _cRMSBad1LS_depth
Definition: PedestalTask.h:152
virtual void reset()
Definition: ContainerXXX.h:366
hcaldqm::ContainerProf2D _cRMSDBRefTotal_depth
Definition: PedestalTask.h:127
std::vector< uint32_t > _vhashFEDs
Definition: PedestalTask.h:76
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
hcaldqm::Container1D _cRMSDBRef1LS_Subdet
Definition: PedestalTask.h:116
hcaldqm::Container1D _cMissingvsLS_Subdet
Definition: PedestalTask.h:134
hcaldqm::Container2D _cRMSBadTotal_FEDVME
Definition: PedestalTask.h:162
hcaldqm::ContainerProf2D _cMean1LS_FEDVME
Definition: PedestalTask.h:102
hcaldqm::Container2D _cRMSBad1LS_FEDVME
Definition: PedestalTask.h:155
double _thresh_missing_low
Definition: PedestalTask.h:73
hcaldqm::filter::HashFilter _filter_C36
Definition: PedestalTask.h:69
hcaldqm::Container1D _cRMS1LS_Subdet
Definition: PedestalTask.h:97
hcaldqm::Container1D _cOccupancyvsLS_Subdet
Definition: PedestalTask.h:135
ProcessingType _ptype
Definition: DQModule.h:59
virtual void fill(uint32_t)
Definition: Container1D.cc:82
virtual void reset()
Definition: Container1D.cc:65
double _thresh_missing_high
Definition: PedestalTask.h:73
hcaldqm::ContainerProf2D _cMean1LS_FEDuTCA
Definition: PedestalTask.h:103
std::vector< hcaldqm::flag::Flag > _vflags
Definition: PedestalTask.h:55
virtual void setBinContent(int, int, int)
hcaldqm::ContainerXXX< int > _xNChs
Definition: PedestalTask.h:85
ContainerXXX< uint32_t > _xQuality
Definition: DQTask.h:62
T sqrt(T t)
Definition: SSEVec.h:18
hcaldqm::ContainerProf2D _cRMS1LS_FEDuTCA
Definition: PedestalTask.h:105
HcalElectronicsMap const * _emap
Definition: PedestalTask.h:65
hcaldqm::Container1D _cRMSDBRefTotal_Subdet
Definition: PedestalTask.h:118
hcaldqm::ContainerProf2D _cRMS1LS_FEDVME
Definition: PedestalTask.h:104
hcaldqm::Container2D _cMeanBadTotal_depth
Definition: PedestalTask.h:158
std::vector< HcalGenericDetId > allPrecisionId() const
hcaldqm::Container2D _cMissing1LS_FEDuTCA
Definition: PedestalTask.h:145
hcaldqm::ContainerProf2D _cMeanDBRef1LS_FEDuTCA
Definition: PedestalTask.h:122
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
Definition: PedestalTask.h:66
hcaldqm::Container2D _cMeanBad1LS_depth
Definition: PedestalTask.h:151
hcaldqm::ContainerProf2D _cMeanDBRefTotal_FEDuTCA
Definition: PedestalTask.h:129
hcaldqm::ContainerSingle2D _cSummaryvsLS
Definition: PedestalTask.h:169
hcaldqm::ContainerProf2D _cRMS1LS_depth
Definition: PedestalTask.h:101
hcaldqm::Container2D _cMissing1LS_FEDVME
Definition: PedestalTask.h:144
hcaldqm::Container2D _cRMSBad1LS_FEDuTCA
Definition: PedestalTask.h:154
hcaldqm::Container1D _cNBadMeanvsLS_Subdet
Definition: PedestalTask.h:136
bool isFEDHBHE(HcalElectronicsId const &)
Definition: Utilities.cc:163
hcaldqm::ContainerProf2D _cMeanTotal_depth
Definition: PedestalTask.h:107
hcaldqm::ContainerProf2D _cMeanDBRefTotal_depth
Definition: PedestalTask.h:126
hcaldqm::ContainerProf2D _cMeanDBRef1LS_depth
Definition: PedestalTask.h:119
hcaldqm::ContainerProf2D _cRMSTotal_FEDuTCA
Definition: PedestalTask.h:112
virtual void setBinContent(HcalDetId const &, int) override
Definition: Container2D.cc:235
hcaldqm::Container1D _cMeanDBRefTotal_Subdet
Definition: PedestalTask.h:117
hcaldqm::ContainerXXX< double > _xPedSum2Total
Definition: PedestalTask.h:83
double _thresh_mean
Definition: PedestalTask.h:72
virtual STDTYPE & get(HcalDetId const &)
Definition: ContainerXXX.h:249
hcaldqm::ContainerXXX< int > _xNMsn1LS
Definition: PedestalTask.h:86
hcaldqm::Container2D _cMeanBadTotal_FEDVME
Definition: PedestalTask.h:160
hcaldqm::ContainerXXX< int > _xNBadRMS1LS
Definition: PedestalTask.h:87
hcaldqm::ContainerXXX< double > _xPedRefMean
Definition: PedestalTask.h:90
hcaldqm::Container2D _cMissingTotal_FEDuTCA
Definition: PedestalTask.h:148
virtual void fill(HcalDetId const &) override
Definition: Container2D.cc:59
virtual bool filter(HcalDetId const &) const
Definition: HashFilter.cc:36
hcaldqm::ContainerProf2D _cRMSDBRefTotal_FEDuTCA
Definition: PedestalTask.h:131
bool isFEDHO(HcalElectronicsId const &)
Definition: Utilities.cc:210
hcaldqm::Container2D _cMissingTotal_FEDVME
Definition: PedestalTask.h:147
std::vector< uint32_t > _vcdaqEids
Definition: DQTask.h:65
hcaldqm::ContainerXXX< int > _xNBadMean1LS
Definition: PedestalTask.h:87
hcaldqm::ContainerProf2D _cMeanTotal_FEDuTCA
Definition: PedestalTask.h:110
hcaldqm::Container2D _cMeanBad1LS_FEDVME
Definition: PedestalTask.h:153
Readout chain identification for Hcal.
hcaldqm::ContainerProf2D _cRMSDBRef1LS_FEDVME
Definition: PedestalTask.h:123
bool isFEDHF(HcalElectronicsId const &)
Definition: Utilities.cc:185
hcaldqm::Container2D _cSummaryvsLS_FED
Definition: PedestalTask.h:168
double _thresh_rms
Definition: PedestalTask.h:72
bool PedestalTask::_isApplicable ( edm::Event const &  e)
protectedvirtual

Reimplemented from hcaldqm::DQTask.

Definition at line 933 of file PedestalTask.cc.

References hcaldqm::DQModule::_logger, hcaldqm::DQModule::_ptype, _tagTrigger, _tokTrigger, _tokuMN, DEFINE_FWK_MODULE, Logger::dqmthrow(), HcalUMNioDigi::eventType(), hcaldqm::constants::EVENTTYPE_PEDESTAL, hcaldqm::fOnline, edm::Event::getByToken(), edm::InputTag::instance(), edm::InputTag::label(), and HcalTBTriggerData::wasSpillIgnorantPedestalTrigger().

Referenced by ~PedestalTask().

934 {
935  if (_ptype==fOnline)
936  {
938  if (!e.getByToken(_tokuMN, cumn))
939  return false;
940 
941  // for online just check the event type not the user Word
942  uint8_t eventType = cumn->eventType();
943  if (eventType == constants::EVENTTYPE_PEDESTAL)
944  return true;
945  }
946  else
947  {
948  // local
950  if (!e.getByToken(_tokTrigger, ctrigger))
951  _logger.dqmthrow("Collection HcalTBTriggerData isn't available"
952  + _tagTrigger.label() + " " + _tagTrigger.instance());
953  return ctrigger->wasSpillIgnorantPedestalTrigger();
954  }
955 
956  return false;
957 }
edm::EDGetTokenT< HcalTBTriggerData > _tokTrigger
Definition: PedestalTask.h:53
ProcessingType _ptype
Definition: DQModule.h:59
void dqmthrow(std::string const &msg) const
Definition: Logger.h:15
edm::EDGetTokenT< HcalUMNioDigi > _tokuMN
Definition: PedestalTask.h:49
uint8_t eventType() const
Logger _logger
Definition: DQModule.h:70
edm::InputTag _tagTrigger
Definition: PedestalTask.h:47
std::string const & label() const
Definition: InputTag.h:36
uint8_t const EVENTTYPE_PEDESTAL
Definition: Constants.h:281
bool wasSpillIgnorantPedestalTrigger() const
returns true if this trigger was a calibration trigger
std::string const & instance() const
Definition: InputTag.h:37
void PedestalTask::_process ( edm::Event const &  e,
edm::EventSetup const &  es 
)
protectedvirtual

Implements hcaldqm::DQTask.

Definition at line 839 of file PedestalTask.cc.

References _cADC_SubdetPM, _cOccupancyEAvsLS_Subdet, hcaldqm::DQModule::_currentLS, hcaldqm::DQModule::_logger, _tagHBHE, _tagHF, _tagHO, _tokHBHE, _tokHF, _tokHO, _xPedEntries1LS, _xPedEntriesTotal, _xPedSum1LS, _xPedSum21LS, _xPedSum2Total, _xPedSumTotal, ecalMGPA::adc(), edm::SortedCollection< T, SORT >::begin(), edm::DataFrameContainer::begin(), hcaldqm::constants::CAPS_NUM, QIE10DataFrame::detid(), Logger::dqmthrow(), edm::SortedCollection< T, SORT >::end(), edm::DataFrameContainer::end(), hcaldqm::Container1D::fill(), hcaldqm::ContainerXXX< STDTYPE >::get(), edm::Event::getByToken(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, mps_fire::i, HBHEDataFrame::id(), HODataFrame::id(), edm::InputTag::instance(), edm::InputTag::label(), QIE10DataFrame::samples(), HBHEDataFrame::size(), HODataFrame::size(), and HcalDetId::subdet().

Referenced by ~PedestalTask().

841 {
845 
846  if (!e.getByToken(_tokHBHE, chbhe))
847  _logger.dqmthrow("Collection HBHEDigiCollection isn't available"
848  + _tagHBHE.label() + " " + _tagHBHE.instance());
849  if (!e.getByToken(_tokHO, cho))
850  _logger.dqmthrow("Collection HODigiCollection isn't available"
851  + _tagHO.label() + " " + _tagHO.instance());
852  if (!e.getByToken(_tokHF, chf))
853  _logger.dqmthrow("Collection QIE10DigiCollection isn't available"
854  + _tagHF.label() + " " + _tagHF.instance());
855 
856  int nHB(0), nHE(0), nHO(0), nHF(0);
857  for (HBHEDigiCollection::const_iterator it=chbhe->begin();
858  it!=chbhe->end(); ++it)
859  {
860  const HBHEDataFrame digi = (const HBHEDataFrame)(*it);
861  HcalDetId did = digi.id();
862  int digiSizeToUse = floor(digi.size()/constants::CAPS_NUM)*
864  did.subdet()==HcalBarrel ? nHB++ : nHE++;
865 
866  for (int i=0; i<digiSizeToUse; i++)
867  {
868  _cADC_SubdetPM.fill(did, it->sample(i).adc());
869 
870  _xPedSum1LS.get(did)+=it->sample(i).adc();
871  _xPedSum21LS.get(did)+=it->sample(i).adc()*it->sample(i).adc();
872  _xPedEntries1LS.get(did)++;
873 
874  _xPedSumTotal.get(did)+=it->sample(i).adc();
875  _xPedSum2Total.get(did)+=it->sample(i).adc()*it->sample(i).adc();
876  _xPedEntriesTotal.get(did)++;
877  }
878  }
880  _currentLS, nHB);
882  _currentLS, nHE);
883 
885  it!=cho->end(); ++it)
886  {
887  const HODataFrame digi = (const HODataFrame)(*it);
888  HcalDetId did = digi.id();
889  int digiSizeToUse = floor(digi.size()/constants::CAPS_NUM)*
891  nHO++;
892  for (int i=0; i<digiSizeToUse; i++)
893  {
894  _cADC_SubdetPM.fill(did, it->sample(i).adc());
895 
896  _xPedSum1LS.get(did)+=it->sample(i).adc();
897  _xPedSum21LS.get(did)+=it->sample(i).adc()*it->sample(i).adc();
898  _xPedEntries1LS.get(did)++;
899 
900  _xPedSumTotal.get(did)+=it->sample(i).adc();
901  _xPedSum2Total.get(did)+=it->sample(i).adc()*it->sample(i).adc();
902  _xPedEntriesTotal.get(did)++;
903  }
904  }
906  _currentLS, nHO);
907 
909  it!=chf->end(); ++it)
910  {
911  const QIE10DataFrame digi = static_cast<const QIE10DataFrame>(*it);
912  HcalDetId did = digi.detid();
913  int digiSizeToUse = floor(digi.samples()/constants::CAPS_NUM)*
915  nHF++;
916  for (int i=0; i<digiSizeToUse; i++)
917  {
918  _cADC_SubdetPM.fill(did, digi[i].adc());
919 
920  _xPedSum1LS.get(did)+=digi[i].adc();
921  _xPedSum21LS.get(did)+=digi[i].adc()*digi[i].adc();
922  _xPedEntries1LS.get(did)++;
923 
924  _xPedSumTotal.get(did)+=digi[i].adc();
925  _xPedSum2Total.get(did)+=digi[i].adc()*digi[i].adc();
926  _xPedEntriesTotal.get(did)++;
927  }
928  }
930  _currentLS, nHF);
931 }
int adc(sample_type sample)
get the ADC sample (12 bits)
int samples() const
total number of samples in the digi
edm::InputTag _tagHF
Definition: PedestalTask.h:46
hcaldqm::ContainerXXX< double > _xPedSumTotal
Definition: PedestalTask.h:82
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:49
hcaldqm::ContainerXXX< int > _xPedEntries1LS
Definition: PedestalTask.h:81
int size() const
total number of samples in the digi
Definition: HBHEDataFrame.h:26
edm::InputTag _tagHBHE
Definition: PedestalTask.h:44
std::vector< HBHEDataFrame >::const_iterator const_iterator
edm::InputTag _tagHO
Definition: PedestalTask.h:45
hcaldqm::ContainerXXX< double > _xPedSum1LS
Definition: PedestalTask.h:79
hcaldqm::ContainerXXX< int > _xPedEntriesTotal
Definition: PedestalTask.h:84
hcaldqm::ContainerXXX< double > _xPedSum21LS
Definition: PedestalTask.h:80
const_iterator begin() const
const HcalDetId & id() const
Definition: HODataFrame.h:23
virtual void fill(uint32_t)
Definition: Container1D.cc:82
int const CAPS_NUM
Definition: Constants.h:183
void dqmthrow(std::string const &msg) const
Definition: Logger.h:15
int size() const
total number of samples in the digi
Definition: HODataFrame.h:27
edm::EDGetTokenT< HBHEDigiCollection > _tokHBHE
Definition: PedestalTask.h:50
edm::EDGetTokenT< QIE10DigiCollection > _tokHF
Definition: PedestalTask.h:52
hcaldqm::Container1D _cADC_SubdetPM
Definition: PedestalTask.h:165
DetId detid() const
Get the detector id.
Logger _logger
Definition: DQModule.h:70
hcaldqm::ContainerProf1D _cOccupancyEAvsLS_Subdet
Definition: PedestalTask.h:140
const_iterator end() const
std::string const & label() const
Definition: InputTag.h:36
const_iterator end() const
edm::EDGetTokenT< HODigiCollection > _tokHO
Definition: PedestalTask.h:51
hcaldqm::ContainerXXX< double > _xPedSum2Total
Definition: PedestalTask.h:83
virtual STDTYPE & get(HcalDetId const &)
Definition: ContainerXXX.h:249
const HcalDetId & id() const
Definition: HBHEDataFrame.h:22
std::string const & instance() const
Definition: InputTag.h:37
const_iterator begin() const
void PedestalTask::_resetMonitors ( hcaldqm::UpdateFreq  uf)
protectedvirtual

Reimplemented from hcaldqm::DQTask.

Definition at line 457 of file PedestalTask.cc.

References _cADC_SubdetPM, hcaldqm::f50LS, and hcaldqm::Container1D::reset().

Referenced by ~PedestalTask().

458 {
459  DQTask::_resetMonitors(uf);
460 
461  switch(uf)
462  {
463  case hcaldqm::f50LS:
465  break;
466  default:
467  break;
468  }
469 }
virtual void reset()
Definition: Container1D.cc:65
hcaldqm::Container1D _cADC_SubdetPM
Definition: PedestalTask.h:165
void PedestalTask::beginLuminosityBlock ( edm::LuminosityBlock const &  lb,
edm::EventSetup const &  es 
)
virtual

Reimplemented from hcaldqm::DQTask.

Definition at line 809 of file PedestalTask.cc.

Referenced by ~PedestalTask().

811 {
812  DQTask::beginLuminosityBlock(lb, es);
813 }
void PedestalTask::bookHistograms ( DQMStore::IBooker ib,
edm::Run const &  r,
edm::EventSetup const &  es 
)
virtual

Reimplemented from hcaldqm::DQTask.

Definition at line 42 of file PedestalTask.cc.

References _cADC_SubdetPM, _cMean1LS_depth, _cMean1LS_FEDuTCA, _cMean1LS_FEDVME, _cMean1LS_Subdet, _cMeanBad1LS_depth, _cMeanBad1LS_FEDuTCA, _cMeanBad1LS_FEDVME, _cMeanBadTotal_depth, _cMeanBadTotal_FEDuTCA, _cMeanBadTotal_FEDVME, _cMeanDBRef1LS_depth, _cMeanDBRef1LS_FEDuTCA, _cMeanDBRef1LS_FEDVME, _cMeanDBRef1LS_Subdet, _cMeanDBRefTotal_depth, _cMeanDBRefTotal_FEDuTCA, _cMeanDBRefTotal_FEDVME, _cMeanDBRefTotal_Subdet, _cMeanTotal_depth, _cMeanTotal_FEDuTCA, _cMeanTotal_FEDVME, _cMeanTotal_Subdet, _cMissing1LS_depth, _cMissing1LS_FEDuTCA, _cMissing1LS_FEDVME, _cMissingTotal_depth, _cMissingTotal_FEDuTCA, _cMissingTotal_FEDVME, _cMissingvsLS_Subdet, _cNBadMeanvsLS_Subdet, _cNBadRMSvsLS_Subdet, _cOccupancyEAvsLS_Subdet, _cOccupancyvsLS_Subdet, _cRMS1LS_depth, _cRMS1LS_FEDuTCA, _cRMS1LS_FEDVME, _cRMS1LS_Subdet, _cRMSBad1LS_depth, _cRMSBad1LS_FEDuTCA, _cRMSBad1LS_FEDVME, _cRMSBadTotal_depth, _cRMSBadTotal_FEDuTCA, _cRMSBadTotal_FEDVME, _cRMSDBRef1LS_depth, _cRMSDBRef1LS_FEDuTCA, _cRMSDBRef1LS_FEDVME, _cRMSDBRef1LS_Subdet, _cRMSDBRefTotal_depth, _cRMSDBRefTotal_FEDuTCA, _cRMSDBRefTotal_FEDVME, _cRMSDBRefTotal_Subdet, _cRMSTotal_depth, _cRMSTotal_FEDuTCA, _cRMSTotal_FEDVME, _cRMSTotal_Subdet, _cSummaryvsLS, _cSummaryvsLS_FED, _ehashmap, _emap, _filter_C36, _filter_uTCA, _filter_VME, hcaldqm::DQModule::_maxLS, hcaldqm::DQModule::_name, hcaldqm::DQModule::_ptype, hcaldqm::DQModule::_subsystem, _vflags, _vhashFEDs, _xNBadMean1LS, _xNBadRMS1LS, _xNChs, _xNMsn1LS, _xPedEntries1LS, _xPedEntriesTotal, _xPedRefMean, _xPedRefRMS, _xPedSum1LS, _xPedSum21LS, _xPedSum2Total, _xPedSumTotal, 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::fADC_15, hcaldqm::quantity::fADC_256, hcaldqm::quantity::fADC_5, hcaldqm::quantity::fAroundZero, hcaldqm::hashfunctions::fCrate, hcaldqm::electronicsmap::fD2EHashMap, hcaldqm::hashfunctions::fDChannel, hcaldqm::hashfunctions::fdepth, hcaldqm::utilities::fed2crate(), hcaldqm::constants::FED_VME_MIN, hcaldqm::hashfunctions::fElectronics, hcaldqm::hashfunctions::fFED, hcaldqm::quantity::fFiberuTCAFiberCh, hcaldqm::quantity::fFiberVMEFiberCh, hcaldqm::filter::fFilter, hcaldqm::constants::FIBER_uTCA_MIN1, hcaldqm::constants::FIBER_VME_MIN, hcaldqm::constants::FIBERCH_MIN, hcaldqm::quantity::fieta, hcaldqm::filter::HashFilter::filter(), hcaldqm::quantity::fiphi, hcaldqm::fLocal, hcaldqm::quantity::fN, hcaldqm::quantity::fN_to3000, hcaldqm::fOffline, hcaldqm::quantity::fSlotuTCA, hcaldqm::quantity::fSpigot, hcaldqm::quantity::fState, hcaldqm::hashfunctions::fSubdet, hcaldqm::hashfunctions::fSubdetPM, edm::EventSetup::get(), hcaldqm::utilities::getFEDList(), hcaldqm::utilities::getFEDuTCAList(), hcaldqm::utilities::getFEDVMEList(), HcalDbService::getHcalMapping(), HcalDbService::getPedestal(), HcalPedestal::getValues(), mps_fire::i, hcaldqm::ContainerProf2D::initialize(), hcaldqm::ContainerProf1D::initialize(), hcaldqm::Container2D::initialize(), hcaldqm::ContainerXXX< STDTYPE >::initialize(), hcaldqm::ContainerSingle2D::initialize(), hcaldqm::filter::HashFilter::initialize(), hcaldqm::electronicsmap::ElectronicsMap::initialize(), hcaldqm::Container1D::initialize(), hcaldqm::electronicsmap::ElectronicsMap::lookup(), HcalElectronicsId::rawId(), edm::RunAuxiliary::run(), edm::Run::runAuxiliary(), hcaldqm::ContainerXXX< STDTYPE >::set(), hcaldqm::constants::SLOT_uTCA_MIN, and hcaldqm::constants::SPIGOT_MIN.

Referenced by ~PedestalTask().

44 {
45  if (_ptype==fLocal)
46  if (r.runAuxiliary().run()==1)
47  return;
48  DQTask::bookHistograms(ib, r, es);
49 
51  es.get<HcalDbRecord>().get(dbs);
52  _emap = dbs->getHcalMapping();
53  std::vector<uint32_t> vhashVME;
54  std::vector<uint32_t> vhashuTCA;
55  std::vector<uint32_t> vhashC36;
56  vhashVME.push_back(HcalElectronicsId(constants::FIBERCH_MIN,
58  vhashuTCA.push_back(HcalElectronicsId(CRATE_uTCA_MIN, SLOT_uTCA_MIN,
59  FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId());
60  vhashC36.push_back(HcalElectronicsId(36, SLOT_uTCA_MIN,
61  FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId());
63  vhashVME);
65  vhashuTCA);
67  vhashC36);
68 
69  // Containers XXX
76 
77 #ifndef HIDE_PEDESTAL_CONDITIONS
80 #endif
81 
82 
83  // Containers
98  if (_ptype != fOffline) { // hidefed2crate
115  }
116 
131 
146 
161 
162  _cMissingvsLS_Subdet.initialize(_name, "MissingvsLS",
166  _cOccupancyvsLS_Subdet.initialize(_name, "OccupancyvsLS",
170  _cOccupancyEAvsLS_Subdet.initialize(_name, "OccupancyEAvsLS",
174  _cNBadMeanvsLS_Subdet.initialize(_name, "NBadMeanvsLS",
178  _cNBadRMSvsLS_Subdet.initialize(_name, "NBadRMSvsLS",
182 
195 
208 
212 
213  if (_ptype != fOffline) { // hidefed2crate
214  std::vector<int> vFEDs = hcaldqm::utilities::getFEDList(_emap);
215  std::vector<int> vFEDsVME = hcaldqm::utilities::getFEDVMEList(_emap);
216  std::vector<int> vFEDsuTCA = hcaldqm::utilities::getFEDuTCAList(_emap);
217  for (std::vector<int>::const_iterator it=vFEDsVME.begin();
218  it!=vFEDsVME.end(); ++it)
220  FIBER_VME_MIN, SPIGOT_MIN, (*it)-FED_VME_MIN).rawId());
221  for (std::vector<int>::const_iterator it=vFEDsuTCA.begin();
222  it!=vFEDsuTCA.end(); ++it)
223  {
224  std::pair<uint16_t, uint16_t> cspair = utilities::fed2crate(*it);
225  _vhashFEDs.push_back(HcalElectronicsId(
226  cspair.first, cspair.second, FIBER_uTCA_MIN1,
227  FIBERCH_MIN, false).rawId());
228  }
329  _cSummaryvsLS_FED.initialize(_name, "SummaryvsLS",
334  _cSummaryvsLS.initialize(_name, "SummaryvsLS",
338  }
339 
340  // book plots
353 
365 
366  if (_ptype != fOffline) { // hidefed2crate
381 
396  }
397 
403  if (_ptype != fOffline) { // hidefed2crate
406  }
407 
408  // book compact containers
415 
416 #ifndef HIDE_PEDESTAL_CONDITIONS
419 #endif
420 
421  if (_ptype != fOffline) { // hidefed2crate
422  _xNChs.book(_emap);
426  }
427 
429 
430  // load conditions pedestals
431  std::vector<HcalGenericDetId> dids = _emap->allPrecisionId();
432  for (std::vector<HcalGenericDetId>::const_iterator it=dids.begin();
433  it!=dids.end(); ++it)
434  {
435  // skip if calib or whatever
436  if (!it->isHcalDetId())
437  continue;
438  // skip Crate 36
440  continue;
441 #ifndef HIDE_PEDESTAL_CONDITIONS
442  HcalDetId did = HcalDetId(it->rawId());
443 
444  HcalPedestal const* peds = dbs->getPedestal(did);
445  float const *means = peds->getValues();
446  float const *rmss = peds->getWidths();
447  double msum=0; double rsum=0;
448  for (uint32_t i=0; i<4; i++)
449  {msum+=means[i]; rsum+=rmss[i];}
450  msum/=4; rsum/=4;
451  _xPedRefMean.set(did, msum);
452  _xPedRefRMS.set(did, rsum);
453 #endif
454  }
455 }
hcaldqm::ContainerXXX< double > _xPedRefRMS
Definition: PedestalTask.h:91
hcaldqm::Container2D _cMissing1LS_depth
Definition: PedestalTask.h:143
hcaldqm::ContainerProf2D _cRMSTotal_FEDVME
Definition: PedestalTask.h:111
hcaldqm::ContainerXXX< double > _xPedSumTotal
Definition: PedestalTask.h:82
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *qy=new ValueQuantity(quantity::fN), int debug=0)
Definition: Container1D.cc:40
int const CRATE_VME_MIN
Definition: Constants.h:68
hcaldqm::Container2D _cMissingTotal_depth
Definition: PedestalTask.h:146
hcaldqm::Container1D _cMeanTotal_Subdet
Definition: PedestalTask.h:94
std::pair< uint16_t, uint16_t > fed2crate(int fed)
Definition: Utilities.cc:13
uint32_t rawId() const
hcaldqm::ContainerProf2D _cMean1LS_depth
Definition: PedestalTask.h:100
hcaldqm::ContainerProf2D _cMeanDBRef1LS_FEDVME
Definition: PedestalTask.h:121
hcaldqm::Container1D _cMeanDBRef1LS_Subdet
Definition: PedestalTask.h:115
hcaldqm::ContainerProf2D _cRMSDBRef1LS_depth
Definition: PedestalTask.h:120
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
hcaldqm::Container1D _cMean1LS_Subdet
Definition: PedestalTask.h:96
hcaldqm::ContainerXXX< int > _xPedEntries1LS
Definition: PedestalTask.h:81
hcaldqm::Container2D _cMeanBad1LS_FEDuTCA
Definition: PedestalTask.h:156
hcaldqm::Container1D _cRMSTotal_Subdet
Definition: PedestalTask.h:95
hcaldqm::Container1D _cNBadRMSvsLS_Subdet
Definition: PedestalTask.h:137
hcaldqm::Container2D _cRMSBadTotal_depth
Definition: PedestalTask.h:159
hcaldqm::ContainerProf2D _cRMSDBRefTotal_FEDVME
Definition: PedestalTask.h:130
hcaldqm::ContainerProf2D _cRMSDBRef1LS_FEDuTCA
Definition: PedestalTask.h:124
hcaldqm::ContainerProf2D _cMeanDBRefTotal_FEDVME
Definition: PedestalTask.h:128
hcaldqm::ContainerProf2D _cRMSTotal_depth
Definition: PedestalTask.h:108
hcaldqm::ContainerXXX< double > _xPedSum1LS
Definition: PedestalTask.h:79
hcaldqm::ContainerXXX< int > _xPedEntriesTotal
Definition: PedestalTask.h:84
int const SPIGOT_MIN
Definition: Constants.h:93
hcaldqm::ContainerXXX< double > _xPedSum21LS
Definition: PedestalTask.h:80
hcaldqm::Container2D _cMeanBadTotal_FEDuTCA
Definition: PedestalTask.h:163
hcaldqm::ContainerProf2D _cMeanTotal_FEDVME
Definition: PedestalTask.h:109
hcaldqm::Container2D _cRMSBadTotal_FEDuTCA
Definition: PedestalTask.h:161
hcaldqm::Container2D _cRMSBad1LS_depth
Definition: PedestalTask.h:152
hcaldqm::ContainerProf2D _cRMSDBRefTotal_depth
Definition: PedestalTask.h:127
std::vector< uint32_t > _vhashFEDs
Definition: PedestalTask.h:76
hcaldqm::Container1D _cRMSDBRef1LS_Subdet
Definition: PedestalTask.h:116
int const FIBER_VME_MIN
Definition: Constants.h:98
hcaldqm::Container1D _cMissingvsLS_Subdet
Definition: PedestalTask.h:134
hcaldqm::Container2D _cRMSBadTotal_FEDVME
Definition: PedestalTask.h:162
void bookHistograms(fwlite::EventContainer &eventCont)
hcaldqm::ContainerProf2D _cMean1LS_FEDVME
Definition: PedestalTask.h:102
hcaldqm::Container2D _cRMSBad1LS_FEDVME
Definition: PedestalTask.h:155
int const FIBERCH_MIN
Definition: Constants.h:108
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
std::vector< int > getFEDVMEList(HcalElectronicsMap const *)
Definition: Utilities.cc:110
hcaldqm::filter::HashFilter _filter_C36
Definition: PedestalTask.h:69
hcaldqm::Container1D _cRMS1LS_Subdet
Definition: PedestalTask.h:97
hcaldqm::Container1D _cOccupancyvsLS_Subdet
Definition: PedestalTask.h:135
ProcessingType _ptype
Definition: DQModule.h:59
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *, int debug=0)
hcaldqm::ContainerProf2D _cMean1LS_FEDuTCA
Definition: PedestalTask.h:103
std::vector< hcaldqm::flag::Flag > _vflags
Definition: PedestalTask.h:55
hcaldqm::ContainerXXX< int > _xNChs
Definition: PedestalTask.h:85
int const FED_VME_MIN
Definition: Constants.h:55
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fEnergy), int debug=0)
hcaldqm::ContainerProf2D _cRMS1LS_FEDuTCA
Definition: PedestalTask.h:105
HcalElectronicsMap const * _emap
Definition: PedestalTask.h:65
hcaldqm::Container1D _cRMSDBRefTotal_Subdet
Definition: PedestalTask.h:118
hcaldqm::ContainerProf2D _cRMS1LS_FEDVME
Definition: PedestalTask.h:104
hcaldqm::Container2D _cMeanBadTotal_depth
Definition: PedestalTask.h:158
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:101
hcaldqm::Container1D _cADC_SubdetPM
Definition: PedestalTask.h:165
std::vector< HcalGenericDetId > allPrecisionId() const
hcaldqm::Container2D _cMissing1LS_FEDuTCA
Definition: PedestalTask.h:145
hcaldqm::ContainerProf1D _cOccupancyEAvsLS_Subdet
Definition: PedestalTask.h:140
hcaldqm::filter::HashFilter _filter_VME
Definition: PedestalTask.h:68
hcaldqm::ContainerProf2D _cMeanDBRef1LS_FEDuTCA
Definition: PedestalTask.h:122
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
Definition: PedestalTask.h:66
std::string _name
Definition: DQModule.h:57
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
int const CRATE_uTCA_MIN
Definition: Constants.h:73
hcaldqm::Container2D _cMeanBad1LS_depth
Definition: PedestalTask.h:151
hcaldqm::ContainerProf2D _cMeanDBRefTotal_FEDuTCA
Definition: PedestalTask.h:129
hcaldqm::ContainerSingle2D _cSummaryvsLS
Definition: PedestalTask.h:169
hcaldqm::ContainerProf2D _cRMS1LS_depth
Definition: PedestalTask.h:101
hcaldqm::Container2D _cMissing1LS_FEDVME
Definition: PedestalTask.h:144
hcaldqm::Container2D _cRMSBad1LS_FEDuTCA
Definition: PedestalTask.h:154
hcaldqm::Container1D _cNBadMeanvsLS_Subdet
Definition: PedestalTask.h:136
hcaldqm::ContainerProf2D _cMeanTotal_depth
Definition: PedestalTask.h:107
virtual void book(HcalElectronicsMap const *)
Definition: ContainerXXX.h:99
virtual void initialize(std::string const &folder, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fN), int debug=0)
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
Definition: Container1D.cc:957
hcaldqm::ContainerProf2D _cMeanDBRefTotal_depth
Definition: PedestalTask.h:126
hcaldqm::ContainerProf2D _cMeanDBRef1LS_depth
Definition: PedestalTask.h:119
hcaldqm::ContainerProf2D _cRMSTotal_FEDuTCA
Definition: PedestalTask.h:112
hcaldqm::Container1D _cMeanDBRefTotal_Subdet
Definition: PedestalTask.h:117
hcaldqm::ContainerXXX< double > _xPedSum2Total
Definition: PedestalTask.h:83
hcaldqm::ContainerXXX< int > _xNMsn1LS
Definition: PedestalTask.h:86
hcaldqm::Container2D _cMeanBadTotal_FEDVME
Definition: PedestalTask.h:160
hcaldqm::ContainerXXX< int > _xNBadRMS1LS
Definition: PedestalTask.h:87
hcaldqm::Container2D _cMissingTotal_FEDuTCA
Definition: PedestalTask.h:148
hcaldqm::ContainerXXX< double > _xPedRefMean
Definition: PedestalTask.h:90
std::vector< int > getFEDList(HcalElectronicsMap const *)
Definition: Utilities.cc:86
std::vector< int > getFEDuTCAList(HcalElectronicsMap const *)
Definition: Utilities.cc:136
const HcalElectronicsMap * getHcalMapping() const
virtual bool filter(HcalDetId const &) const
Definition: HashFilter.cc:36
hcaldqm::ContainerProf2D _cRMSDBRefTotal_FEDuTCA
Definition: PedestalTask.h:131
std::string _subsystem
Definition: DQModule.h:64
const float * getValues() const
get value for all capId = 0..3
Definition: HcalPedestal.h:19
hcaldqm::Container2D _cMissingTotal_FEDVME
Definition: PedestalTask.h:147
hcaldqm::ContainerXXX< int > _xNBadMean1LS
Definition: PedestalTask.h:87
virtual void initialize(hashfunctions::HashType, int debug=0)
Definition: ContainerXXX.h:91
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="") override
Definition: Container2D.cc:895
hcaldqm::ContainerProf2D _cMeanTotal_FEDuTCA
Definition: PedestalTask.h:110
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
const HcalPedestal * getPedestal(const HcalGenericDetId &fId) const
hcaldqm::Container2D _cMeanBad1LS_FEDVME
Definition: PedestalTask.h:153
Readout chain identification for Hcal.
hcaldqm::ContainerProf2D _cRMSDBRef1LS_FEDVME
Definition: PedestalTask.h:123
hcaldqm::Container2D _cSummaryvsLS_FED
Definition: PedestalTask.h:168
virtual void set(HcalDetId const &, STDTYPE)
Definition: ContainerXXX.h:229
int const SLOT_uTCA_MIN
Definition: Constants.h:80
hcaldqm::filter::HashFilter _filter_uTCA
Definition: PedestalTask.h:67
void PedestalTask::endLuminosityBlock ( edm::LuminosityBlock const &  lb,
edm::EventSetup const &  es 
)
virtual

Reimplemented from hcaldqm::DQTask.

Definition at line 829 of file PedestalTask.cc.

References _dump(), hcaldqm::DQModule::_ptype, and hcaldqm::fLocal.

Referenced by ~PedestalTask().

831 {
832  if (_ptype==fLocal)
833  return;
834  this->_dump();
835 
836  DQTask::endLuminosityBlock(lb, es);
837 }
ProcessingType _ptype
Definition: DQModule.h:59
virtual void _dump()
void PedestalTask::endRun ( edm::Run const &  r,
edm::EventSetup const &   
)
virtual

Reimplemented from edm::stream::EDAnalyzerBase.

Definition at line 815 of file PedestalTask.cc.

References _dump(), hcaldqm::DQModule::_ptype, hcaldqm::fLocal, hcaldqm::fOnline, edm::RunAuxiliary::run(), and edm::Run::runAuxiliary().

Referenced by ~PedestalTask().

817 {
818  if (_ptype==fLocal)
819  {
820  if (r.runAuxiliary().run()==1)
821  return;
822  else
823  this->_dump();
824  }
825  else if (_ptype==fOnline)
826  return;
827 }
ProcessingType _ptype
Definition: DQModule.h:59
virtual void _dump()

Member Data Documentation

hcaldqm::Container1D PedestalTask::_cADC_SubdetPM
protected

Definition at line 165 of file PedestalTask.h.

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

hcaldqm::ContainerProf2D PedestalTask::_cMean1LS_depth
protected

Definition at line 100 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerProf2D PedestalTask::_cMean1LS_FEDuTCA
protected

Definition at line 103 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerProf2D PedestalTask::_cMean1LS_FEDVME
protected

Definition at line 102 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container1D PedestalTask::_cMean1LS_Subdet
protected

Definition at line 96 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container2D PedestalTask::_cMeanBad1LS_depth
protected

Definition at line 151 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container2D PedestalTask::_cMeanBad1LS_FEDuTCA
protected

Definition at line 156 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container2D PedestalTask::_cMeanBad1LS_FEDVME
protected

Definition at line 153 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container2D PedestalTask::_cMeanBadTotal_depth
protected

Definition at line 158 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container2D PedestalTask::_cMeanBadTotal_FEDuTCA
protected

Definition at line 163 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container2D PedestalTask::_cMeanBadTotal_FEDVME
protected

Definition at line 160 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerProf2D PedestalTask::_cMeanDBRef1LS_depth
protected

Definition at line 119 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerProf2D PedestalTask::_cMeanDBRef1LS_FEDuTCA
protected

Definition at line 122 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerProf2D PedestalTask::_cMeanDBRef1LS_FEDVME
protected

Definition at line 121 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container1D PedestalTask::_cMeanDBRef1LS_Subdet
protected

Definition at line 115 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerProf2D PedestalTask::_cMeanDBRefTotal_depth
protected

Definition at line 126 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerProf2D PedestalTask::_cMeanDBRefTotal_FEDuTCA
protected

Definition at line 129 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerProf2D PedestalTask::_cMeanDBRefTotal_FEDVME
protected

Definition at line 128 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container1D PedestalTask::_cMeanDBRefTotal_Subdet
protected

Definition at line 117 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerProf2D PedestalTask::_cMeanTotal_depth
protected

Definition at line 107 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerProf2D PedestalTask::_cMeanTotal_FEDuTCA
protected

Definition at line 110 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerProf2D PedestalTask::_cMeanTotal_FEDVME
protected

Definition at line 109 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container1D PedestalTask::_cMeanTotal_Subdet
protected

Definition at line 94 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container2D PedestalTask::_cMissing1LS_depth
protected

Definition at line 143 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container2D PedestalTask::_cMissing1LS_FEDuTCA
protected

Definition at line 145 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container2D PedestalTask::_cMissing1LS_FEDVME
protected

Definition at line 144 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container2D PedestalTask::_cMissingTotal_depth
protected

Definition at line 146 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container2D PedestalTask::_cMissingTotal_FEDuTCA
protected

Definition at line 148 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container2D PedestalTask::_cMissingTotal_FEDVME
protected

Definition at line 147 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container1D PedestalTask::_cMissingvsLS_Subdet
protected

Definition at line 134 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container1D PedestalTask::_cNBadMeanvsLS_Subdet
protected

Definition at line 136 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container1D PedestalTask::_cNBadRMSvsLS_Subdet
protected

Definition at line 137 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerProf1D PedestalTask::_cOccupancyEAvsLS_Subdet
protected

Definition at line 140 of file PedestalTask.h.

Referenced by _process(), and bookHistograms().

hcaldqm::Container1D PedestalTask::_cOccupancyvsLS_Subdet
protected

Definition at line 135 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerProf2D PedestalTask::_cRMS1LS_depth
protected

Definition at line 101 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerProf2D PedestalTask::_cRMS1LS_FEDuTCA
protected

Definition at line 105 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerProf2D PedestalTask::_cRMS1LS_FEDVME
protected

Definition at line 104 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container1D PedestalTask::_cRMS1LS_Subdet
protected

Definition at line 97 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container2D PedestalTask::_cRMSBad1LS_depth
protected

Definition at line 152 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container2D PedestalTask::_cRMSBad1LS_FEDuTCA
protected

Definition at line 154 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container2D PedestalTask::_cRMSBad1LS_FEDVME
protected

Definition at line 155 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container2D PedestalTask::_cRMSBadTotal_depth
protected

Definition at line 159 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container2D PedestalTask::_cRMSBadTotal_FEDuTCA
protected

Definition at line 161 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container2D PedestalTask::_cRMSBadTotal_FEDVME
protected

Definition at line 162 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerProf2D PedestalTask::_cRMSDBRef1LS_depth
protected

Definition at line 120 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerProf2D PedestalTask::_cRMSDBRef1LS_FEDuTCA
protected

Definition at line 124 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerProf2D PedestalTask::_cRMSDBRef1LS_FEDVME
protected

Definition at line 123 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container1D PedestalTask::_cRMSDBRef1LS_Subdet
protected

Definition at line 116 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerProf2D PedestalTask::_cRMSDBRefTotal_depth
protected

Definition at line 127 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerProf2D PedestalTask::_cRMSDBRefTotal_FEDuTCA
protected

Definition at line 131 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerProf2D PedestalTask::_cRMSDBRefTotal_FEDVME
protected

Definition at line 130 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container1D PedestalTask::_cRMSDBRefTotal_Subdet
protected

Definition at line 118 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerProf2D PedestalTask::_cRMSTotal_depth
protected

Definition at line 108 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerProf2D PedestalTask::_cRMSTotal_FEDuTCA
protected

Definition at line 112 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerProf2D PedestalTask::_cRMSTotal_FEDVME
protected

Definition at line 111 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container1D PedestalTask::_cRMSTotal_Subdet
protected

Definition at line 95 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerSingle2D PedestalTask::_cSummaryvsLS
protected

Definition at line 169 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::Container2D PedestalTask::_cSummaryvsLS_FED
protected

Definition at line 168 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::electronicsmap::ElectronicsMap PedestalTask::_ehashmap
protected

Definition at line 66 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

HcalElectronicsMap const* PedestalTask::_emap
protected

Definition at line 65 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::filter::HashFilter PedestalTask::_filter_C36
protected

Definition at line 69 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::filter::HashFilter PedestalTask::_filter_uTCA
protected

Definition at line 67 of file PedestalTask.h.

Referenced by bookHistograms().

hcaldqm::filter::HashFilter PedestalTask::_filter_VME
protected

Definition at line 68 of file PedestalTask.h.

Referenced by bookHistograms().

edm::InputTag PedestalTask::_tagHBHE
protected

Definition at line 44 of file PedestalTask.h.

Referenced by _process(), and PedestalTask().

edm::InputTag PedestalTask::_tagHF
protected

Definition at line 46 of file PedestalTask.h.

Referenced by _process(), and PedestalTask().

edm::InputTag PedestalTask::_tagHO
protected

Definition at line 45 of file PedestalTask.h.

Referenced by _process(), and PedestalTask().

edm::InputTag PedestalTask::_tagTrigger
protected

Definition at line 47 of file PedestalTask.h.

Referenced by _isApplicable(), and PedestalTask().

edm::InputTag PedestalTask::_taguMN
protected

Definition at line 48 of file PedestalTask.h.

Referenced by PedestalTask().

double PedestalTask::_thresh_badm
protected

Definition at line 72 of file PedestalTask.h.

Referenced by _dump(), and PedestalTask().

double PedestalTask::_thresh_badr
protected

Definition at line 72 of file PedestalTask.h.

Referenced by _dump(), and PedestalTask().

double PedestalTask::_thresh_mean
protected

Definition at line 72 of file PedestalTask.h.

Referenced by _dump(), and PedestalTask().

double PedestalTask::_thresh_missing_high
protected

Definition at line 73 of file PedestalTask.h.

Referenced by _dump(), and PedestalTask().

double PedestalTask::_thresh_missing_low
protected

Definition at line 73 of file PedestalTask.h.

Referenced by _dump(), and PedestalTask().

double PedestalTask::_thresh_rms
protected

Definition at line 72 of file PedestalTask.h.

Referenced by _dump(), and PedestalTask().

edm::EDGetTokenT<HBHEDigiCollection> PedestalTask::_tokHBHE
protected

Definition at line 50 of file PedestalTask.h.

Referenced by _process(), and PedestalTask().

edm::EDGetTokenT<QIE10DigiCollection> PedestalTask::_tokHF
protected

Definition at line 52 of file PedestalTask.h.

Referenced by _process(), and PedestalTask().

edm::EDGetTokenT<HODigiCollection> PedestalTask::_tokHO
protected

Definition at line 51 of file PedestalTask.h.

Referenced by _process(), and PedestalTask().

edm::EDGetTokenT<HcalTBTriggerData> PedestalTask::_tokTrigger
protected

Definition at line 53 of file PedestalTask.h.

Referenced by _isApplicable(), and PedestalTask().

edm::EDGetTokenT<HcalUMNioDigi> PedestalTask::_tokuMN
protected

Definition at line 49 of file PedestalTask.h.

Referenced by _isApplicable(), and PedestalTask().

std::vector<hcaldqm::flag::Flag> PedestalTask::_vflags
protected

Definition at line 55 of file PedestalTask.h.

Referenced by _dump(), bookHistograms(), and PedestalTask().

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

Definition at line 76 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerXXX<int> PedestalTask::_xNBadMean1LS
protected

Definition at line 87 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerXXX<int> PedestalTask::_xNBadRMS1LS
protected

Definition at line 87 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerXXX<int> PedestalTask::_xNChs
protected

Definition at line 85 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerXXX<int> PedestalTask::_xNMsn1LS
protected

Definition at line 86 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerXXX<int> PedestalTask::_xPedEntries1LS
protected

Definition at line 81 of file PedestalTask.h.

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

hcaldqm::ContainerXXX<int> PedestalTask::_xPedEntriesTotal
protected

Definition at line 84 of file PedestalTask.h.

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

hcaldqm::ContainerXXX<double> PedestalTask::_xPedRefMean
protected

Definition at line 90 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerXXX<double> PedestalTask::_xPedRefRMS
protected

Definition at line 91 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

hcaldqm::ContainerXXX<double> PedestalTask::_xPedSum1LS
protected

Definition at line 79 of file PedestalTask.h.

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

hcaldqm::ContainerXXX<double> PedestalTask::_xPedSum21LS
protected

Definition at line 80 of file PedestalTask.h.

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

hcaldqm::ContainerXXX<double> PedestalTask::_xPedSum2Total
protected

Definition at line 83 of file PedestalTask.h.

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

hcaldqm::ContainerXXX<double> PedestalTask::_xPedSumTotal
protected

Definition at line 82 of file PedestalTask.h.

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