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 DQMOneEDAnalyzer< edm::LuminosityBlockCache< hcaldqm::Cache > > hcaldqm::DQModule edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::Accumulator, Args... > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
void dqmEndRun (edm::Run const &, edm::EventSetup const &) override
 
std::shared_ptr< hcaldqm::CacheglobalBeginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) const override
 
void globalEndLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
 PedestalTask (edm::ParameterSet const &)
 
 ~PedestalTask () override
 
- Public Member Functions inherited from hcaldqm::DQTask
void analyze (edm::Event const &, edm::EventSetup const &) override
 
void dqmBeginRun (edm::Run const &, edm::EventSetup const &) override
 
 DQTask (edm::ParameterSet const &)
 
std::shared_ptr< hcaldqm::CacheglobalBeginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) const override
 
void globalEndLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
 ~DQTask () override
 
- Public Member Functions inherited from DQMOneEDAnalyzer< edm::LuminosityBlockCache< hcaldqm::Cache > >
void accumulate (edm::Event const &event, edm::EventSetup const &setup) override
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
 DQMOneEDAnalyzer ()
 
void endRun (edm::Run const &, edm::EventSetup const &) final
 
void endRunProduce (edm::Run &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::Accumulator, Args... >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 
bool wantsGlobalLuminosityBlocks () const noexcept final
 
bool wantsGlobalRuns () const noexcept final
 
bool wantsInputProcessBlocks () const noexcept final
 
bool wantsProcessBlocks () const noexcept final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const noexcept
 
bool wantsStreamRuns () const noexcept
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
std::vector< bool > const & recordProvenanceList () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~ProducerBase () noexcept(false) override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
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::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, 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
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 
- Public Member Functions inherited from hcaldqm::DQModule
 DQModule (edm::ParameterSet const &)
 
virtual ~DQModule () noexcept(false)
 

Protected Types

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

Protected Member Functions

virtual void _dump ()
 
bool _isApplicable (edm::Event const &) override
 
void _process (edm::Event const &, edm::EventSetup const &) override
 
void _resetMonitors (hcaldqm::UpdateFreq) override
 
- Protected Member Functions inherited from hcaldqm::DQTask
virtual int _getCalibType (edm::Event const &)
 
- Protected Member Functions inherited from edm::ProducerBase
template<Transition Tr = Transition::Event>
auto produces (std::string instanceName) noexcept
 declare what type of product will make and with which optional label More...
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
template<Transition Tr = Transition::Event>
auto produces () noexcept
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
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)
 
void resetItemsToGetFrom (BranchType iType)
 

Protected Attributes

hcaldqm::Container1D _cADC_SubdetPM
 
hcaldqm::ContainerProf2D _cMean1LS_depth
 
hcaldqm::ContainerProf2D _cMean1LS_FEDuTCA
 
hcaldqm::Container1D _cMean1LS_Subdet
 
hcaldqm::Container2D _cMeanBad1LS_depth
 
hcaldqm::Container2D _cMeanBad1LS_FEDuTCA
 
hcaldqm::Container2D _cMeanBadTotal_depth
 
hcaldqm::Container2D _cMeanBadTotal_FEDuTCA
 
hcaldqm::ContainerProf2D _cMeanDBRef1LS_depth
 
hcaldqm::ContainerProf2D _cMeanDBRef1LS_FEDuTCA
 
hcaldqm::Container1D _cMeanDBRef1LS_Subdet
 
hcaldqm::ContainerProf2D _cMeanDBRefTotal_depth
 
hcaldqm::ContainerProf2D _cMeanDBRefTotal_FEDuTCA
 
hcaldqm::Container1D _cMeanDBRefTotal_Subdet
 
hcaldqm::ContainerProf2D _cMeanTotal_depth
 
hcaldqm::ContainerProf2D _cMeanTotal_FEDuTCA
 
hcaldqm::Container1D _cMeanTotal_Subdet
 
hcaldqm::Container2D _cMissing1LS_depth
 
hcaldqm::Container2D _cMissing1LS_FEDuTCA
 
hcaldqm::Container2D _cMissingTotal_depth
 
hcaldqm::Container2D _cMissingTotal_FEDuTCA
 
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::Container1D _cRMS1LS_Subdet
 
hcaldqm::Container2D _cRMSBad1LS_depth
 
hcaldqm::Container2D _cRMSBad1LS_FEDuTCA
 
hcaldqm::Container2D _cRMSBadTotal_depth
 
hcaldqm::Container2D _cRMSBadTotal_FEDuTCA
 
hcaldqm::ContainerProf2D _cRMSDBRef1LS_depth
 
hcaldqm::ContainerProf2D _cRMSDBRef1LS_FEDuTCA
 
hcaldqm::Container1D _cRMSDBRef1LS_Subdet
 
hcaldqm::ContainerProf2D _cRMSDBRefTotal_depth
 
hcaldqm::ContainerProf2D _cRMSDBRefTotal_FEDuTCA
 
hcaldqm::Container1D _cRMSDBRefTotal_Subdet
 
hcaldqm::ContainerProf2D _cRMSTotal_depth
 
hcaldqm::ContainerProf2D _cRMSTotal_FEDuTCA
 
hcaldqm::Container1D _cRMSTotal_Subdet
 
hcaldqm::ContainerSingle2D _cSummaryvsLS
 
hcaldqm::Container2D _cSummaryvsLS_FED
 
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
 
hcaldqm::filter::HashFilter _filter_C38
 
hcaldqm::filter::HashFilter _filter_uTCA
 
hcaldqm::filter::HashFilter _filter_VME
 
edm::InputTag _tagHO
 
edm::InputTag _tagQIE10
 
edm::InputTag _tagQIE11
 
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< HODigiCollection_tokHO
 
edm::EDGetTokenT< QIE10DigiCollection_tokQIE10
 
edm::EDGetTokenT< QIE11DigiCollection_tokQIE11
 
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
 
edm::ESGetToken< HcalDbService, HcalDbRecordhcalDbServiceToken_
 
- Protected Attributes inherited from hcaldqm::DQTask
ContainerI _cEvsPerLS
 
ContainerI _cEvsTotal
 
ContainerS _cProcessingTypeName
 
ContainerS _cRunKeyName
 
ContainerI _cRunKeyVal
 
edm::ESHandle< HcalDbService_dbService
 
HcalElectronicsMap const * _emap = nullptr
 
int _procLSs
 
edm::InputTag _tagRaw
 
edm::EDGetTokenT< FEDRawDataCollection_tokRaw
 
std::vector< uint32_t > _vcdaqEids
 
ContainerXXX< uint32_t > _xQuality
 
edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcdhcalChannelQualityToken_
 
edm::ESGetToken< HcalDbService, HcalDbRecordhcalDbServiceToken_
 
edm::ESGetToken< RunInfo, RunInfoRcdrunInfoToken_
 
- Protected Attributes inherited from DQMOneEDAnalyzer< edm::LuminosityBlockCache< hcaldqm::Cache > >
edm::EDPutTokenT< DQMTokenrunToken_
 
- 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 DQMOneEDAnalyzer< edm::LuminosityBlockCache< hcaldqm::Cache > >
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
template<typename T >
using BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T >
 
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > >
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from hcaldqm::DQTask
static void fillPSetDescription (edm::ParameterSetDescription &des)
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from hcaldqm::DQModule
static void fillPSetDescription (edm::ParameterSetDescription &desc)
 

Detailed Description

Definition at line 21 of file PedestalTask.h.

Member Enumeration Documentation

◆ PedestalFlag

Enumerator
fMsn 
fBadM 
fBadR 
nPedestalFlag 

Definition at line 53 of file PedestalTask.h.

Constructor & Destructor Documentation

◆ PedestalTask()

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

Definition at line 6 of file PedestalTask.cc.

References _tagHO, _tagQIE10, _tagQIE11, _tagTrigger, _taguMN, _thresh_badm, _thresh_badr, _thresh_mean, _thresh_missing_high, _thresh_missing_low, _thresh_rms, _tokHO, _tokQIE10, _tokQIE11, _tokTrigger, _tokuMN, _vflags, fBadM, nanoDQM_cfi::Flag, fMsn, edm::ParameterSet::getUntrackedParameter(), and ProducerED_cfi::InputTag.

7  : DQTask(ps), hcalDbServiceToken_(esConsumes<HcalDbService, HcalDbRecord, edm::Transition::BeginRun>()) {
8  // tags
9  _tagQIE11 = ps.getUntrackedParameter<edm::InputTag>("tagHE", edm::InputTag("hcalDigis"));
10  _tagHO = ps.getUntrackedParameter<edm::InputTag>("tagHO", edm::InputTag("hcalDigis"));
11  _tagQIE10 = ps.getUntrackedParameter<edm::InputTag>("tagHF", edm::InputTag("hcalDigis"));
12  _tagTrigger = ps.getUntrackedParameter<edm::InputTag>("tagTrigger", edm::InputTag("tbunpacker"));
13  _taguMN = ps.getUntrackedParameter<edm::InputTag>("taguMN", edm::InputTag("hcalDigis"));
14  _tokQIE11 = consumes<QIE11DigiCollection>(_tagQIE11);
15  _tokHO = consumes<HODigiCollection>(_tagHO);
16  _tokQIE10 = consumes<QIE10DigiCollection>(_tagQIE10);
17  _tokTrigger = consumes<HcalTBTriggerData>(_tagTrigger);
18  _tokuMN = consumes<HcalUMNioDigi>(_taguMN);
19 
20  _vflags.resize(2);
23  //_vflags[fBadR]=hcaldqm::flag::Flag("BadR");
24 
25  _thresh_mean = ps.getUntrackedParameter<double>("thresh_mean", 0.25);
26  _thresh_rms = ps.getUntrackedParameter<double>("thresh_mean", 0.25);
27  _thresh_badm = ps.getUntrackedParameter<double>("thresh_badm", 0.1);
28  _thresh_badr = ps.getUntrackedParameter<double>("thresh_badr", 0.1);
29  _thresh_missing_high = ps.getUntrackedParameter<double>("thresh_missing_high", 0.2);
30  _thresh_missing_low = ps.getUntrackedParameter<double>("thresh_missing_low", 0.05);
31 }
edm::InputTag _tagQIE11
Definition: PedestalTask.h:40
edm::InputTag _taguMN
Definition: PedestalTask.h:44
double _thresh_badm
Definition: PedestalTask.h:62
double _thresh_badr
Definition: PedestalTask.h:62
DQTask(edm::ParameterSet const &)
Definition: DQTask.cc:8
edm::InputTag _tagHO
Definition: PedestalTask.h:41
edm::EDGetTokenT< QIE10DigiCollection > _tokQIE10
Definition: PedestalTask.h:48
edm::EDGetTokenT< HcalTBTriggerData > _tokTrigger
Definition: PedestalTask.h:49
double _thresh_missing_low
Definition: PedestalTask.h:63
edm::InputTag _tagQIE10
Definition: PedestalTask.h:42
double _thresh_missing_high
Definition: PedestalTask.h:63
edm::EDGetTokenT< QIE11DigiCollection > _tokQIE11
Definition: PedestalTask.h:46
std::vector< hcaldqm::flag::Flag > _vflags
Definition: PedestalTask.h:52
edm::EDGetTokenT< HcalUMNioDigi > _tokuMN
Definition: PedestalTask.h:45
edm::InputTag _tagTrigger
Definition: PedestalTask.h:43
edm::EDGetTokenT< HODigiCollection > _tokHO
Definition: PedestalTask.h:47
double _thresh_mean
Definition: PedestalTask.h:62
edm::ESGetToken< HcalDbService, HcalDbRecord > hcalDbServiceToken_
Definition: PedestalTask.h:50
double _thresh_rms
Definition: PedestalTask.h:62

◆ ~PedestalTask()

PedestalTask::~PedestalTask ( )
inlineoverride

Definition at line 24 of file PedestalTask.h.

24 {}

Member Function Documentation

◆ _dump()

void PedestalTask::_dump ( )
protectedvirtual

Definition at line 504 of file PedestalTask.cc.

References _cMean1LS_depth, _cMean1LS_FEDuTCA, _cMean1LS_Subdet, _cMeanBad1LS_depth, _cMeanBad1LS_FEDuTCA, _cMeanBadTotal_depth, _cMeanBadTotal_FEDuTCA, _cMeanDBRef1LS_depth, _cMeanDBRef1LS_FEDuTCA, _cMeanDBRef1LS_Subdet, _cMeanDBRefTotal_depth, _cMeanDBRefTotal_FEDuTCA, _cMeanDBRefTotal_Subdet, _cMeanTotal_depth, _cMeanTotal_FEDuTCA, _cMeanTotal_Subdet, _cMissing1LS_depth, _cMissing1LS_FEDuTCA, _cMissingTotal_depth, _cMissingTotal_FEDuTCA, _cMissingvsLS_Subdet, _cNBadMeanvsLS_Subdet, _cNBadRMSvsLS_Subdet, _cOccupancyvsLS_Subdet, _cRMS1LS_depth, _cRMS1LS_FEDuTCA, _cRMS1LS_Subdet, _cRMSBad1LS_depth, _cRMSBad1LS_FEDuTCA, _cRMSBadTotal_depth, _cRMSBadTotal_FEDuTCA, _cRMSDBRef1LS_depth, _cRMSDBRef1LS_FEDuTCA, _cRMSDBRef1LS_Subdet, _cRMSDBRefTotal_depth, _cRMSDBRefTotal_FEDuTCA, _cRMSDBRefTotal_Subdet, _cRMSTotal_depth, _cRMSTotal_FEDuTCA, _cRMSTotal_Subdet, _cSummaryvsLS, _cSummaryvsLS_FED, hcaldqm::DQModule::_currentLS, _ehashmap, hcaldqm::DQTask::_emap, _filter_C38, hcaldqm::DQModule::_ptype, hcaldqm::flag::Flag::_state, _thresh_badm, _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(), callgraph::cs, runTauDisplay::eid, hcaldqm::ContainerXXX< STDTYPE >::exists(), hcaldqm::flag::fBAD, fBadM, hcaldqm::flag::fGOOD, hcaldqm::Container2D::fill(), hcaldqm::ContainerProf2D::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(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, hcaldqm::electronicsmap::ElectronicsMap::lookup(), hcaldqm::flag::Flag::reset(), hcaldqm::ContainerXXX< STDTYPE >::reset(), hcaldqm::Container1D::reset(), hcaldqm::ContainerSingle2D::setBinContent(), hcaldqm::Container2D::setBinContent(), and mathSSE::sqrt().

Referenced by dqmEndRun(), and globalEndLuminosityBlock().

504  {
505  // reset what's needed
506 
507  // Mean/RMS actual values
512  if (_ptype != fOffline) { // hidefed2crate
515  }
516 
521  if (_ptype != fOffline) { // hidefed2crate
524  }
525 
526  // DB Conditions Comparison
531 
536 
537  if (_ptype != fOffline) { // hidefed2crate
540 
543  }
544 
545  // missing channels
549 
553 
554  // Missing or Bad
555  if (_ptype != fOffline) { // hidefed2crate
559 
563 
564  // reset some XXX containers
565  _xNChs.reset();
566  _xNMsn1LS.reset();
569  }
570  // - ITERATE OVER ALL TEH CHANNELS
571  // - FIND THE ONES THAT ARE MISSING
572  // - FIND THE ONES WITH BAD PEDESTAL MEANs
573  // - FIND THE ONES WITH BAD PEDESTAL RMSs
574  std::vector<HcalGenericDetId> dids = _emap->allPrecisionId();
575  for (std::vector<HcalGenericDetId>::const_iterator it = dids.begin(); it != dids.end(); ++it) {
576  if (!it->isHcalDetId())
577  continue;
579  if (_filter_C38.filter(eid))
580  continue;
581 
582  // filter out channels with bad quality
583  if (_xQuality.exists(HcalDetId(*it))) {
586  continue;
587  }
588 
589  HcalDetId did = HcalDetId(it->rawId());
590  double sum1LS = _xPedSum1LS.get(did);
591 #ifndef HIDE_PEDESTAL_CONDITIONS
592  double refm = _xPedRefMean.get(did);
593 #endif
594  double sum21LS = _xPedSum21LS.get(did);
595 #ifndef HIDE_PEDESTAL_CONDITIONS
596  double refr = _xPedRefRMS.get(did);
597 #endif
598  double n1LS = _xPedEntries1LS.get(did);
599 
600  double sumTotal = _xPedSumTotal.get(did);
601  double sum2Total = _xPedSum2Total.get(did);
602  double nTotal = _xPedEntriesTotal.get(did);
603 
604  if (_ptype != fOffline) { // hidefed2crate
605  _xNChs.get(eid)++;
606  }
607  // IF A CHANNEL IS MISSING FOR THIS LS
608  if (n1LS == 0) {
611  if (_ptype != fOffline) { // hidefed2crate
612  if (!eid.isVMEid())
614  _xNMsn1LS.get(eid)++;
615  }
616  // ALSO CHECK
617  // IF A CHANNEL HAS BEEN MISSING FOR ALL LSs SO FAR
618  if (nTotal == 0) {
620  if (_ptype != fOffline) { // hidefed2crate
621  if (!eid.isVMEid())
623  }
624  }
625  continue;
626  }
627 
628  // if not missing, fill the occupancy...
630 
631  // compute the means and diffs for this LS
632  sum1LS /= n1LS;
633  double rms1LS = sqrt(sum21LS / n1LS - sum1LS * sum1LS);
634 #ifndef HIDE_PEDESTAL_CONDITIONS
635  double diffm1LS = sum1LS - refm;
636  double diffr1LS = rms1LS - refr;
637 #endif
638  // compute the means and diffs for the whole Run
639  sumTotal /= nTotal;
640  double rmsTotal = sqrt(sum2Total / nTotal - sumTotal * sumTotal);
641 #ifndef HIDE_PEDESTAL_CONDITIONS
642  double diffmTotal = sumTotal - refm;
643  double diffrTotal = rmsTotal - refr;
644 #endif
645  // FILL ACTUAL MEANs AND RMSs FOR THIS LS
646  _cMean1LS_Subdet.fill(did, sum1LS);
647  _cMean1LS_depth.fill(did, sum1LS);
648  _cRMS1LS_Subdet.fill(did, rms1LS);
649  _cRMS1LS_depth.fill(did, rms1LS);
650 
651  // FILL THE DIFFERENCES FOR THIS LS
652 #ifndef HIDE_PEDESTAL_CONDITIONS
653  _cMeanDBRef1LS_Subdet.fill(did, diffm1LS);
654  _cMeanDBRef1LS_depth.fill(did, diffm1LS);
655  _cRMSDBRef1LS_Subdet.fill(did, diffr1LS);
656  _cRMSDBRef1LS_depth.fill(did, diffr1LS);
657 #endif
658  // FILL ACTUAL MEANs AND RMSs FOR THE WHOLE RUN
659  _cMeanTotal_Subdet.fill(did, sumTotal);
660  _cMeanTotal_depth.fill(did, sumTotal);
661  _cRMSTotal_Subdet.fill(did, rmsTotal);
662  _cRMSTotal_depth.fill(did, rmsTotal);
663 
664  // FILL THE DIFFERENCES FOR THE WHOLE RUN
665 #ifndef HIDE_PEDESTAL_CONDITIONS
666  _cMeanDBRefTotal_Subdet.fill(did, diffmTotal);
667  _cMeanDBRefTotal_depth.fill(did, diffmTotal);
668  _cRMSDBRefTotal_Subdet.fill(did, diffrTotal);
669  _cRMSDBRefTotal_depth.fill(did, diffrTotal);
670 #endif
671  // FOR THIS LS
672  if (_ptype != fOffline) { // hidefed2crate
673  if (!eid.isVMEid()) {
674  _cMean1LS_FEDuTCA.fill(eid, sum1LS);
675  _cRMS1LS_FEDuTCA.fill(eid, rms1LS);
676  _cMeanDBRef1LS_FEDuTCA.fill(eid, diffm1LS);
677  _cRMSDBRef1LS_FEDuTCA.fill(eid, diffr1LS);
678  }
679 
680  // FOR THE WHOLE RUN
681  if (!eid.isVMEid()) {
682  _cMeanTotal_FEDuTCA.fill(eid, sumTotal);
683  _cRMSTotal_FEDuTCA.fill(eid, rmsTotal);
684  _cMeanDBRefTotal_FEDuTCA.fill(eid, diffmTotal);
685  _cRMSDBRefTotal_FEDuTCA.fill(eid, diffrTotal);
686  }
687  }
688 
689  // FOR THE CURRENT LS COMPARE MEANS AND RMSS
690 #ifndef HIDE_PEDESTAL_CONDITIONS
691  if (fabs(diffm1LS) > _thresh_mean) {
694  if (_ptype != fOffline) { // hidefed2crate
695  if (!eid.isVMEid())
697  _xNBadMean1LS.get(eid)++;
698  }
699  }
700  if (fabs(diffr1LS) > _thresh_rms) {
701  _cRMSBad1LS_depth.fill(did);
703  if (_ptype != fOffline) { // hidefed2crate
704  if (!eid.isVMEid())
706  _xNBadRMS1LS.get(eid)++;
707  }
708  }
709 
710  // FOR THIS RUN
711  if (fabs(diffmTotal) > _thresh_mean) {
713  if (_ptype != fOffline) { // hidefed2crate
714  if (!eid.isVMEid())
716  }
717  }
718  if (fabs(diffrTotal) > _thresh_rms) {
720  if (_ptype != fOffline) { // hidefed2crate
721  if (!eid.isVMEid())
723  }
724  }
725 #endif
726  }
727 
728  // SET THE FLAGS FOR THIS LS
729  if (_ptype != fOffline) { // hidefed2crate
730  for (std::vector<uint32_t>::const_iterator it = _vhashFEDs.begin(); it != _vhashFEDs.end(); ++it) {
731  hcaldqm::flag::Flag fSum("PED");
733 
734  std::vector<uint32_t>::const_iterator jt = std::find(_vcdaqEids.begin(), _vcdaqEids.end(), (*it));
735  if (jt == _vcdaqEids.end()) {
736  // not @cDAQ
737  for (uint32_t iflag = 0; iflag < _vflags.size(); iflag++)
740  continue;
741  }
742 
743  // @cDAQ
745  double frmissing = (_xNChs.get(eid) == 0) ? 0 : double(_xNMsn1LS.get(eid)) / double(_xNChs.get(eid));
746  double frbadm = (_xNChs.get(eid) == 0) ? 0 : _xNBadMean1LS.get(eid) / _xNChs.get(eid);
747  //double frbadr = _xNBadRMS1LS.get(eid)/_xNChs.get(eid);
748 
749  if (frmissing >= _thresh_missing_high)
750  _vflags[fMsn]._state = hcaldqm::flag::fBAD;
751  else if (frmissing >= _thresh_missing_low)
753  else
755  if (frbadm >= _thresh_badm)
757  else
759  // BadR removed May 9, 2018 - the pedestal RMS isn't stable enough to monitor right now.
760  //if (frbadr>=_thresh_badr)
761  // _vflags[fBadR]._state = hcaldqm::flag::fBAD;
762  //else
763  // _vflags[fBadR]._state = hcaldqm::flag::fGOOD;
764  }
765 
766  int iflag = 0;
767  for (std::vector<hcaldqm::flag::Flag>::iterator ft = _vflags.begin(); ft != _vflags.end(); ++ft) {
768  _cSummaryvsLS_FED.setBinContent(eid, _currentLS, iflag, int(ft->_state));
769  fSum += (*ft);
770  iflag++;
771  ft->reset();
772  }
773  _cSummaryvsLS.setBinContent(eid, _currentLS, fSum._state);
774  }
775  }
776 
777  // reset the pedestal containers instead of writting reset... func
778  _xPedSum1LS.reset();
781 }
hcaldqm::ContainerXXX< double > _xPedRefRMS
Definition: PedestalTask.h:81
hcaldqm::Container2D _cMissing1LS_depth
Definition: PedestalTask.h:125
double _thresh_badm
Definition: PedestalTask.h:62
hcaldqm::ContainerXXX< double > _xPedSumTotal
Definition: PedestalTask.h:72
virtual bool exists(HcalDetId const &)
Definition: ContainerXXX.h:213
hcaldqm::Container2D _cMissingTotal_depth
Definition: PedestalTask.h:127
hcaldqm::Container1D _cMeanTotal_Subdet
Definition: PedestalTask.h:84
void fill(HcalDetId const &) override
hcaldqm::ContainerProf2D _cMean1LS_depth
Definition: PedestalTask.h:90
hcaldqm::Container1D _cMeanDBRef1LS_Subdet
Definition: PedestalTask.h:101
hcaldqm::ContainerProf2D _cRMSDBRef1LS_depth
Definition: PedestalTask.h:106
hcaldqm::Container1D _cMean1LS_Subdet
Definition: PedestalTask.h:86
hcaldqm::ContainerXXX< int > _xPedEntries1LS
Definition: PedestalTask.h:71
hcaldqm::Container2D _cMeanBad1LS_FEDuTCA
Definition: PedestalTask.h:134
hcaldqm::Container1D _cRMSTotal_Subdet
Definition: PedestalTask.h:85
hcaldqm::Container1D _cNBadRMSvsLS_Subdet
Definition: PedestalTask.h:119
hcaldqm::Container2D _cRMSBadTotal_depth
Definition: PedestalTask.h:137
hcaldqm::ContainerProf2D _cRMSDBRef1LS_FEDuTCA
Definition: PedestalTask.h:108
hcaldqm::ContainerProf2D _cRMSTotal_depth
Definition: PedestalTask.h:96
hcaldqm::ContainerXXX< double > _xPedSum1LS
Definition: PedestalTask.h:69
hcaldqm::ContainerXXX< int > _xPedEntriesTotal
Definition: PedestalTask.h:74
hcaldqm::ContainerXXX< double > _xPedSum21LS
Definition: PedestalTask.h:70
hcaldqm::Container2D _cMeanBadTotal_FEDuTCA
Definition: PedestalTask.h:139
hcaldqm::Container2D _cRMSBadTotal_FEDuTCA
Definition: PedestalTask.h:138
hcaldqm::Container2D _cRMSBad1LS_depth
Definition: PedestalTask.h:132
virtual void reset()
Definition: ContainerXXX.h:293
hcaldqm::ContainerProf2D _cRMSDBRefTotal_depth
Definition: PedestalTask.h:111
std::vector< uint32_t > _vhashFEDs
Definition: PedestalTask.h:66
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
hcaldqm::Container1D _cRMSDBRef1LS_Subdet
Definition: PedestalTask.h:102
hcaldqm::Container1D _cMissingvsLS_Subdet
Definition: PedestalTask.h:116
double _thresh_missing_low
Definition: PedestalTask.h:63
hcaldqm::Container1D _cRMS1LS_Subdet
Definition: PedestalTask.h:87
hcaldqm::Container1D _cOccupancyvsLS_Subdet
Definition: PedestalTask.h:117
ProcessingType _ptype
Definition: DQModule.h:44
virtual void fill(uint32_t)
Definition: Container1D.cc:73
virtual void reset()
Definition: Container1D.cc:60
double _thresh_missing_high
Definition: PedestalTask.h:63
hcaldqm::ContainerProf2D _cMean1LS_FEDuTCA
Definition: PedestalTask.h:92
std::vector< hcaldqm::flag::Flag > _vflags
Definition: PedestalTask.h:52
virtual void setBinContent(int, int, int)
hcaldqm::ContainerXXX< int > _xNChs
Definition: PedestalTask.h:75
ContainerXXX< uint32_t > _xQuality
Definition: DQTask.h:66
T sqrt(T t)
Definition: SSEVec.h:23
hcaldqm::ContainerProf2D _cRMS1LS_FEDuTCA
Definition: PedestalTask.h:93
hcaldqm::Container1D _cRMSDBRefTotal_Subdet
Definition: PedestalTask.h:104
hcaldqm::Container2D _cMeanBadTotal_depth
Definition: PedestalTask.h:136
hcaldqm::Container2D _cMissing1LS_FEDuTCA
Definition: PedestalTask.h:126
hcaldqm::ContainerProf2D _cMeanDBRef1LS_FEDuTCA
Definition: PedestalTask.h:107
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
Definition: PedestalTask.h:56
HcalElectronicsMap const * _emap
Definition: DQTask.h:81
hcaldqm::Container2D _cMeanBad1LS_depth
Definition: PedestalTask.h:131
hcaldqm::ContainerProf2D _cMeanDBRefTotal_FEDuTCA
Definition: PedestalTask.h:112
hcaldqm::ContainerSingle2D _cSummaryvsLS
Definition: PedestalTask.h:145
hcaldqm::ContainerProf2D _cRMS1LS_depth
Definition: PedestalTask.h:91
hcaldqm::Container2D _cRMSBad1LS_FEDuTCA
Definition: PedestalTask.h:133
hcaldqm::Container1D _cNBadMeanvsLS_Subdet
Definition: PedestalTask.h:118
hcaldqm::filter::HashFilter _filter_C38
Definition: PedestalTask.h:59
bool isFEDHBHE(HcalElectronicsId const &)
Definition: Utilities.cc:156
hcaldqm::ContainerProf2D _cMeanTotal_depth
Definition: PedestalTask.h:95
hcaldqm::ContainerProf2D _cMeanDBRefTotal_depth
Definition: PedestalTask.h:110
hcaldqm::ContainerProf2D _cMeanDBRef1LS_depth
Definition: PedestalTask.h:105
hcaldqm::ContainerProf2D _cRMSTotal_FEDuTCA
Definition: PedestalTask.h:98
void setBinContent(HcalDetId const &, int) override
Definition: Container2D.cc:163
hcaldqm::Container1D _cMeanDBRefTotal_Subdet
Definition: PedestalTask.h:103
hcaldqm::ContainerXXX< double > _xPedSum2Total
Definition: PedestalTask.h:73
double _thresh_mean
Definition: PedestalTask.h:62
virtual STDTYPE & get(HcalDetId const &)
Definition: ContainerXXX.h:198
hcaldqm::ContainerXXX< int > _xNMsn1LS
Definition: PedestalTask.h:76
hcaldqm::ContainerXXX< int > _xNBadRMS1LS
Definition: PedestalTask.h:77
hcaldqm::ContainerXXX< double > _xPedRefMean
Definition: PedestalTask.h:80
hcaldqm::Container2D _cMissingTotal_FEDuTCA
Definition: PedestalTask.h:128
std::vector< HcalGenericDetId > allPrecisionId() const
void fill(HcalDetId const &) override
Definition: Container2D.cc:52
hcaldqm::ContainerProf2D _cRMSDBRefTotal_FEDuTCA
Definition: PedestalTask.h:113
virtual bool filter(HcalDetId const &) const
Definition: HashFilter.cc:24
bool isFEDHO(HcalElectronicsId const &)
Definition: Utilities.cc:182
std::vector< uint32_t > _vcdaqEids
Definition: DQTask.h:69
hcaldqm::ContainerXXX< int > _xNBadMean1LS
Definition: PedestalTask.h:77
hcaldqm::ContainerProf2D _cMeanTotal_FEDuTCA
Definition: PedestalTask.h:97
Readout chain identification for Hcal.
bool isFEDHF(HcalElectronicsId const &)
Definition: Utilities.cc:170
hcaldqm::Container2D _cSummaryvsLS_FED
Definition: PedestalTask.h:144
double _thresh_rms
Definition: PedestalTask.h:62

◆ _isApplicable()

bool PedestalTask::_isApplicable ( edm::Event const &  e)
overrideprotectedvirtual

Reimplemented from hcaldqm::DQTask.

Definition at line 897 of file PedestalTask.cc.

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

897  {
898  if (_ptype == fOnline) {
900  if (!e.getByToken(_tokuMN, cumn))
901  return false;
902 
903  // for online just check the event type not the user Word
904  uint8_t eventType = cumn->eventType();
906  return true;
907  } else {
908  // local
910  if (!e.getByToken(_tokTrigger, ctrigger))
911  _logger.dqmthrow("Collection HcalTBTriggerData isn't available" + _tagTrigger.label() + " " +
913  return ctrigger->wasSpillIgnorantPedestalTrigger();
914  }
915 
916  return false;
917 }
std::string const & instance() const
Definition: InputTag.h:37
void dqmthrow(std::string const &msg) const
Definition: Logger.h:12
std::string const & label() const
Definition: InputTag.h:36
edm::EDGetTokenT< HcalTBTriggerData > _tokTrigger
Definition: PedestalTask.h:49
bool wasSpillIgnorantPedestalTrigger() const
returns true if this trigger was a calibration trigger
ProcessingType _ptype
Definition: DQModule.h:44
edm::EDGetTokenT< HcalUMNioDigi > _tokuMN
Definition: PedestalTask.h:45
Logger _logger
Definition: DQModule.h:55
uint8_t eventType() const
edm::InputTag _tagTrigger
Definition: PedestalTask.h:43
uint8_t const EVENTTYPE_PEDESTAL
Definition: Constants.h:297

◆ _process()

void PedestalTask::_process ( edm::Event const &  e,
edm::EventSetup const &  es 
)
overrideprotectedvirtual

Implements hcaldqm::DQTask.

Definition at line 811 of file PedestalTask.cc.

References _cADC_SubdetPM, _cOccupancyEAvsLS_Subdet, hcaldqm::DQModule::_currentLS, hcaldqm::DQModule::_logger, _tagHO, _tagQIE10, _tagQIE11, _tokHO, _tokQIE10, _tokQIE11, _xPedEntries1LS, _xPedEntriesTotal, _xPedSum1LS, _xPedSum21LS, _xPedSum2Total, _xPedSumTotal, gpuClustering::adc, edm::SortedCollection< T, SORT >::begin(), edm::DataFrameContainer::begin(), hcaldqm::constants::CAPS_NUM, QIE11DataFrame::detid(), QIE10DataFrame::detid(), Logger::dqmthrow(), MillePedeFileConverter_cfg::e, edm::SortedCollection< T, SORT >::end(), edm::DataFrameContainer::end(), hcaldqm::Container1D::fill(), hcaldqm::ContainerXXX< STDTYPE >::get(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, mps_fire::i, HODataFrame::id(), edm::InputTag::instance(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, edm::InputTag::label(), QIE11DataFrame::samples(), QIE10DataFrame::samples(), HODataFrame::size(), and HcalDetId::subdet().

811  {
815 
816  if (!e.getByToken(_tokHO, c_ho))
817  _logger.dqmthrow("Collection HODigiCollection isn't available" + _tagHO.label() + " " + _tagHO.instance());
818  if (!e.getByToken(_tokQIE10, c_QIE10))
819  _logger.dqmthrow("Collection QIE10DigiCollection isn't available" + _tagQIE10.label() + " " + _tagQIE10.instance());
820  if (!e.getByToken(_tokQIE11, c_QIE11))
821  _logger.dqmthrow("Collection QIE11DigiCollection isn't available" + _tagQIE11.label() + " " + _tagQIE11.instance());
822 
823  auto lumiCache = luminosityBlockCache(e.getLuminosityBlock().index());
824  _currentLS = lumiCache->currentLS;
825 
826  int nHB(0), nHE(0), nHO(0), nHF(0);
827  for (QIE11DigiCollection::const_iterator it = c_QIE11->begin(); it != c_QIE11->end(); ++it) {
828  const QIE11DataFrame digi = static_cast<const QIE11DataFrame>(*it);
829  HcalDetId const& did = digi.detid();
830  // Require barrel or endcap. As of 2017, some calibration channels are ending up in this collection.
831  if ((did.subdet() != HcalEndcap) && (did.subdet() != HcalBarrel)) {
832  continue;
833  }
834  int digiSizeToUse = floor(digi.samples() / constants::CAPS_NUM) * constants::CAPS_NUM - 1;
835  did.subdet() == HcalBarrel ? nHB++ : nHE++;
836 
837  for (int i = 0; i < digiSizeToUse; i++) {
838  _cADC_SubdetPM.fill(did, digi[i].adc());
839 
840  _xPedSum1LS.get(did) += digi[i].adc();
841  _xPedSum21LS.get(did) += digi[i].adc() * digi[i].adc();
842  _xPedEntries1LS.get(did)++;
843 
844  _xPedSumTotal.get(did) += digi[i].adc();
845  _xPedSum2Total.get(did) += digi[i].adc() * digi[i].adc();
846  _xPedEntriesTotal.get(did)++;
847  }
848  }
849 
852 
853  for (HODigiCollection::const_iterator it = c_ho->begin(); it != c_ho->end(); ++it) {
854  const HODataFrame digi = (const HODataFrame)(*it);
855  HcalDetId did = digi.id();
856  int digiSizeToUse = floor(digi.size() / constants::CAPS_NUM) * constants::CAPS_NUM - 1;
857  nHO++;
858  for (int i = 0; i < digiSizeToUse; i++) {
859  _cADC_SubdetPM.fill(did, it->sample(i).adc());
860 
861  _xPedSum1LS.get(did) += it->sample(i).adc();
862  _xPedSum21LS.get(did) += it->sample(i).adc() * it->sample(i).adc();
863  _xPedEntries1LS.get(did)++;
864 
865  _xPedSumTotal.get(did) += it->sample(i).adc();
866  _xPedSum2Total.get(did) += it->sample(i).adc() * it->sample(i).adc();
867  _xPedEntriesTotal.get(did)++;
868  }
869  }
871 
872  for (QIE10DigiCollection::const_iterator it = c_QIE10->begin(); it != c_QIE10->end(); ++it) {
873  const QIE10DataFrame digi = static_cast<const QIE10DataFrame>(*it);
874  HcalDetId did = digi.detid();
875  if (did.subdet() != HcalForward) {
876  continue;
877  }
878  // HF has 3 samples in global, so impossible to make divisible by 4
879  int digiSizeToUse =
880  (digi.samples() >= 4 ? floor(digi.samples() / constants::CAPS_NUM) * constants::CAPS_NUM - 1 : digi.samples());
881  nHF++;
882  for (int i = 0; i < digiSizeToUse; i++) {
883  _cADC_SubdetPM.fill(did, digi[i].adc());
884 
885  _xPedSum1LS.get(did) += digi[i].adc();
886  _xPedSum21LS.get(did) += digi[i].adc() * digi[i].adc();
887  _xPedEntries1LS.get(did)++;
888 
889  _xPedSumTotal.get(did) += digi[i].adc();
890  _xPedSum2Total.get(did) += digi[i].adc() * digi[i].adc();
891  _xPedEntriesTotal.get(did)++;
892  }
893  }
895 }
edm::InputTag _tagQIE11
Definition: PedestalTask.h:40
constexpr DetId detid() const
Get the detector id.
hcaldqm::ContainerXXX< double > _xPedSumTotal
Definition: PedestalTask.h:72
std::string const & instance() const
Definition: InputTag.h:37
hcaldqm::ContainerXXX< int > _xPedEntries1LS
Definition: PedestalTask.h:71
void dqmthrow(std::string const &msg) const
Definition: Logger.h:12
std::vector< T >::const_iterator const_iterator
edm::InputTag _tagHO
Definition: PedestalTask.h:41
hcaldqm::ContainerXXX< double > _xPedSum1LS
Definition: PedestalTask.h:69
hcaldqm::ContainerXXX< int > _xPedEntriesTotal
Definition: PedestalTask.h:74
hcaldqm::ContainerXXX< double > _xPedSum21LS
Definition: PedestalTask.h:70
edm::EDGetTokenT< QIE10DigiCollection > _tokQIE10
Definition: PedestalTask.h:48
std::string const & label() const
Definition: InputTag.h:36
constexpr DetId detid() const
Get the detector id.
edm::InputTag _tagQIE10
Definition: PedestalTask.h:42
constexpr HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:138
virtual void fill(uint32_t)
Definition: Container1D.cc:73
edm::EDGetTokenT< QIE11DigiCollection > _tokQIE11
Definition: PedestalTask.h:46
int const CAPS_NUM
Definition: Constants.h:211
hcaldqm::Container1D _cADC_SubdetPM
Definition: PedestalTask.h:141
Logger _logger
Definition: DQModule.h:55
const_iterator begin() const
hcaldqm::ContainerProf1D _cOccupancyEAvsLS_Subdet
Definition: PedestalTask.h:122
const_iterator end() const
const_iterator end() const
constexpr int samples() const
total number of samples in the digi
const_iterator begin() const
The iterator returned can not safely be used across threads.
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
edm::EDGetTokenT< HODigiCollection > _tokHO
Definition: PedestalTask.h:47
hcaldqm::ContainerXXX< double > _xPedSum2Total
Definition: PedestalTask.h:73
constexpr int size() const
total number of samples in the digi
Definition: HODataFrame.h:27
virtual STDTYPE & get(HcalDetId const &)
Definition: ContainerXXX.h:198
constexpr int samples() const
total number of samples in the digi
constexpr HcalDetId const & id() const
Definition: HODataFrame.h:23
uint16_t *__restrict__ uint16_t const *__restrict__ adc

◆ _resetMonitors()

void PedestalTask::_resetMonitors ( hcaldqm::UpdateFreq  uf)
overrideprotectedvirtual

Reimplemented from hcaldqm::DQTask.

Definition at line 492 of file PedestalTask.cc.

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

492  {
493  DQTask::_resetMonitors(uf);
494 
495  switch (uf) {
496  case hcaldqm::f50LS:
498  break;
499  default:
500  break;
501  }
502 }
virtual void reset()
Definition: Container1D.cc:60
hcaldqm::Container1D _cADC_SubdetPM
Definition: PedestalTask.h:141

◆ bookHistograms()

void PedestalTask::bookHistograms ( DQMStore::IBooker ib,
edm::Run const &  r,
edm::EventSetup const &  es 
)
overridevirtual

Reimplemented from hcaldqm::DQTask.

Definition at line 33 of file PedestalTask.cc.

References _cADC_SubdetPM, _cMean1LS_depth, _cMean1LS_FEDuTCA, _cMean1LS_Subdet, _cMeanBad1LS_depth, _cMeanBad1LS_FEDuTCA, _cMeanBadTotal_depth, _cMeanBadTotal_FEDuTCA, _cMeanDBRef1LS_depth, _cMeanDBRef1LS_FEDuTCA, _cMeanDBRef1LS_Subdet, _cMeanDBRefTotal_depth, _cMeanDBRefTotal_FEDuTCA, _cMeanDBRefTotal_Subdet, _cMeanTotal_depth, _cMeanTotal_FEDuTCA, _cMeanTotal_Subdet, _cMissing1LS_depth, _cMissing1LS_FEDuTCA, _cMissingTotal_depth, _cMissingTotal_FEDuTCA, _cMissingvsLS_Subdet, _cNBadMeanvsLS_Subdet, _cNBadRMSvsLS_Subdet, _cOccupancyEAvsLS_Subdet, _cOccupancyvsLS_Subdet, _cRMS1LS_depth, _cRMS1LS_FEDuTCA, _cRMS1LS_Subdet, _cRMSBad1LS_depth, _cRMSBad1LS_FEDuTCA, _cRMSBadTotal_depth, _cRMSBadTotal_FEDuTCA, _cRMSDBRef1LS_depth, _cRMSDBRef1LS_FEDuTCA, _cRMSDBRef1LS_Subdet, _cRMSDBRefTotal_depth, _cRMSDBRefTotal_FEDuTCA, _cRMSDBRefTotal_Subdet, _cRMSTotal_depth, _cRMSTotal_FEDuTCA, _cRMSTotal_Subdet, _cSummaryvsLS, _cSummaryvsLS_FED, _ehashmap, hcaldqm::DQTask::_emap, _filter_C38, _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::ContainerProf1D::book(), hcaldqm::ContainerProf2D::book(), hcaldqm::ContainerSingle2D::book(), hcaldqm::Container2D::book(), hcaldqm::Container1D::book(), bookHistograms(), hcaldqm::constants::CRATE_uTCA_MIN, hcaldqm::constants::CRATE_VME_MIN, createIOVlist::dbs, 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::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_to8000, hcaldqm::fOffline, hcaldqm::quantity::fSlotuTCA, hcaldqm::quantity::fState, hcaldqm::hashfunctions::fSubdet, hcaldqm::hashfunctions::fSubdetPM, hcaldqm::utilities::getFEDList(), hcaldqm::utilities::getFEDuTCAList(), hcaldqm::utilities::getFEDVMEList(), edm::EventSetup::getHandle(), hcalDbServiceToken_, mps_fire::i, cuy::ib, hcaldqm::ContainerProf1D::initialize(), hcaldqm::ContainerXXX< STDTYPE >::initialize(), hcaldqm::ContainerProf2D::initialize(), hcaldqm::filter::HashFilter::initialize(), hcaldqm::Container2D::initialize(), hcaldqm::ContainerSingle2D::initialize(), hcaldqm::electronicsmap::ElectronicsMap::initialize(), hcaldqm::Container1D::initialize(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, hcaldqm::electronicsmap::ElectronicsMap::lookup(), compareTotals::means, alignCSCRings::r, nano_mu_digi_cff::rawId, HcalElectronicsId::rawId(), hcaldqm::ContainerXXX< STDTYPE >::set(), hcaldqm::constants::SLOT_uTCA_MIN, and hcaldqm::constants::SPIGOT_MIN.

33  {
34  if (_ptype == fLocal)
35  if (r.runAuxiliary().run() == 1)
36  return;
38 
40  _emap = dbs->getHcalMapping();
41  std::vector<uint32_t> vhashVME;
42  std::vector<uint32_t> vhashuTCA;
43  std::vector<uint32_t> vhashC38;
44  vhashVME.push_back(
47  vhashC38.push_back(HcalElectronicsId(38, SLOT_uTCA_MIN, FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId());
51 
52  // Containers XXX
59 
60 #ifndef HIDE_PEDESTAL_CONDITIONS
63 #endif
64 
65  // Containers
67  "Mean1LS",
71  0);
73  "RMS1LS",
77  0);
79  "Mean1LS",
84  0);
86  "RMS1LS",
91  0);
92  if (_ptype != fOffline) { // hidefed2crate
94  "Mean1LS",
99  0);
101  "RMS1LS",
106  0);
107  }
108 
110  "Mean",
114  0);
116  "RMS",
120  0);
122  "Mean",
127  0);
129  "RMS",
134  0);
135 
137  "MeanDBRef1LS",
141  0);
143  "RMSDBRef1LS",
147  0);
149  "MeanDBRef1LS",
154  0);
156  "RMSDBRef1LS",
161  0);
162 
164  "MeanDBRef",
168  0);
170  "RMSDBRef",
174  0);
176  "MeanDBRef",
181  0);
183  "RMSDBRef",
188  0);
189 
191  "MissingvsLS",
195  0);
197  "OccupancyvsLS",
201  0);
203  "OccupancyEAvsLS",
207  0);
209  "NBadMeanvsLS",
213  0);
215  "NBadRMSvsLS",
219  0);
220 
222  "Missing1LS",
227  0);
229  "MeanBad1LS",
234  0);
236  "RMSBad1LS",
241  0);
242 
244  "Missing",
249  0);
251  "MeanBad",
256  0);
258  "RMSBad",
263  0);
264 
266  "ADC",
270  0);
271 
272  if (_ptype != fOffline) { // hidefed2crate
273  std::vector<int> vFEDs = hcaldqm::utilities::getFEDList(_emap);
274  std::vector<int> vFEDsVME = hcaldqm::utilities::getFEDVMEList(_emap);
275  std::vector<int> vFEDsuTCA = hcaldqm::utilities::getFEDuTCAList(_emap);
276  for (std::vector<int>::const_iterator it = vFEDsVME.begin(); it != vFEDsVME.end(); ++it)
277  _vhashFEDs.push_back(
279  for (std::vector<int>::const_iterator it = vFEDsuTCA.begin(); it != vFEDsuTCA.end(); ++it) {
280  std::pair<uint16_t, uint16_t> cspair = utilities::fed2crate(*it);
281  _vhashFEDs.push_back(HcalElectronicsId(cspair.first, cspair.second, FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId());
282  }
288  "Mean",
293  0);
295  "RMS",
300  0);
302  "MeanDBRef1LS",
307  0);
309  "RMSDBRef1LS",
314  0);
316  _name,
317  "MeanDBRef",
322  0);
324  "RMSDBRef",
329  0);
331  "Missing1LS",
336  0);
338  "MeanBad1LS",
343  0);
345  "RMSBad1LS",
350  0);
352  "Missing",
357  0);
359  "MeanBad",
364  0);
366  "RMSBad",
371  0);
373  "SummaryvsLS",
378  0);
380  "SummaryvsLS",
384  0);
385  }
386 
387  // book plots
400 
412 
413  if (_ptype != fOffline) { // hidefed2crate
421 
429  }
430 
436  if (_ptype != fOffline) { // hidefed2crate
439  }
440 
441  // book compact containers
448 
449 #ifndef HIDE_PEDESTAL_CONDITIONS
452 #endif
453 
454  if (_ptype != fOffline) { // hidefed2crate
455  _xNChs.book(_emap);
459  }
460 
462 
463  // load conditions pedestals
464  std::vector<HcalGenericDetId> dids = _emap->allPrecisionId();
465  for (std::vector<HcalGenericDetId>::const_iterator it = dids.begin(); it != dids.end(); ++it) {
466  // skip if calib or whatever
467  if (!it->isHcalDetId())
468  continue;
469  // skip Crate 38
471  continue;
472 #ifndef HIDE_PEDESTAL_CONDITIONS
473  HcalDetId did = HcalDetId(it->rawId());
474 
475  HcalPedestal const* peds = dbs->getPedestal(did);
476  float const* means = peds->getValues();
477  float const* rmss = peds->getWidths();
478  double msum = 0;
479  double rsum = 0;
480  for (uint32_t i = 0; i < 4; i++) {
481  msum += means[i];
482  rsum += rmss[i];
483  }
484  msum /= 4;
485  rsum /= 4;
486  _xPedRefMean.set(did, msum);
487  _xPedRefRMS.set(did, rsum);
488 #endif
489  }
490 }
void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, int debug=0) override
hcaldqm::ContainerXXX< double > _xPedRefRMS
Definition: PedestalTask.h:81
hcaldqm::Container2D _cMissing1LS_depth
Definition: PedestalTask.h:125
hcaldqm::ContainerXXX< double > _xPedSumTotal
Definition: PedestalTask.h:72
virtual void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN), int debug=0)
Definition: Container1D.cc:33
int const CRATE_VME_MIN
Definition: Constants.h:99
hcaldqm::Container2D _cMissingTotal_depth
Definition: PedestalTask.h:127
hcaldqm::Container1D _cMeanTotal_Subdet
Definition: PedestalTask.h:84
std::pair< uint16_t, uint16_t > fed2crate(int fed)
Definition: Utilities.cc:10
hcaldqm::ContainerProf2D _cMean1LS_depth
Definition: PedestalTask.h:90
dbs
Find files in dataset.
hcaldqm::Container1D _cMeanDBRef1LS_Subdet
Definition: PedestalTask.h:101
hcaldqm::ContainerProf2D _cRMSDBRef1LS_depth
Definition: PedestalTask.h:106
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
hcaldqm::Container1D _cMean1LS_Subdet
Definition: PedestalTask.h:86
hcaldqm::ContainerXXX< int > _xPedEntries1LS
Definition: PedestalTask.h:71
hcaldqm::Container2D _cMeanBad1LS_FEDuTCA
Definition: PedestalTask.h:134
hcaldqm::Container1D _cRMSTotal_Subdet
Definition: PedestalTask.h:85
hcaldqm::Container1D _cNBadRMSvsLS_Subdet
Definition: PedestalTask.h:119
hcaldqm::Container2D _cRMSBadTotal_depth
Definition: PedestalTask.h:137
hcaldqm::ContainerProf2D _cRMSDBRef1LS_FEDuTCA
Definition: PedestalTask.h:108
hcaldqm::ContainerProf2D _cRMSTotal_depth
Definition: PedestalTask.h:96
hcaldqm::ContainerXXX< double > _xPedSum1LS
Definition: PedestalTask.h:69
hcaldqm::ContainerXXX< int > _xPedEntriesTotal
Definition: PedestalTask.h:74
virtual void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
int const SPIGOT_MIN
Definition: Constants.h:124
hcaldqm::ContainerXXX< double > _xPedSum21LS
Definition: PedestalTask.h:70
hcaldqm::Container2D _cMeanBadTotal_FEDuTCA
Definition: PedestalTask.h:139
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
hcaldqm::Container2D _cRMSBadTotal_FEDuTCA
Definition: PedestalTask.h:138
hcaldqm::Container2D _cRMSBad1LS_depth
Definition: PedestalTask.h:132
hcaldqm::ContainerProf2D _cRMSDBRefTotal_depth
Definition: PedestalTask.h:111
std::vector< uint32_t > _vhashFEDs
Definition: PedestalTask.h:66
hcaldqm::Container1D _cRMSDBRef1LS_Subdet
Definition: PedestalTask.h:102
int const FIBER_VME_MIN
Definition: Constants.h:129
hcaldqm::Container1D _cMissingvsLS_Subdet
Definition: PedestalTask.h:116
int const FIBERCH_MIN
Definition: Constants.h:138
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
example_stream void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::vector< int > getFEDVMEList(HcalElectronicsMap const *)
Definition: Utilities.cc:115
hcaldqm::Container1D _cRMS1LS_Subdet
Definition: PedestalTask.h:87
hcaldqm::Container1D _cOccupancyvsLS_Subdet
Definition: PedestalTask.h:117
ProcessingType _ptype
Definition: DQModule.h:44
hcaldqm::ContainerProf2D _cMean1LS_FEDuTCA
Definition: PedestalTask.h:92
std::vector< hcaldqm::flag::Flag > _vflags
Definition: PedestalTask.h:52
hcaldqm::ContainerXXX< int > _xNChs
Definition: PedestalTask.h:75
int const FED_VME_MIN
Definition: Constants.h:86
hcaldqm::ContainerProf2D _cRMS1LS_FEDuTCA
Definition: PedestalTask.h:93
hcaldqm::Container1D _cRMSDBRefTotal_Subdet
Definition: PedestalTask.h:104
hcaldqm::Container2D _cMeanBadTotal_depth
Definition: PedestalTask.h:136
int const FIBER_uTCA_MIN1
Definition: Constants.h:132
hcaldqm::Container1D _cADC_SubdetPM
Definition: PedestalTask.h:141
hcaldqm::Container2D _cMissing1LS_FEDuTCA
Definition: PedestalTask.h:126
hcaldqm::ContainerProf1D _cOccupancyEAvsLS_Subdet
Definition: PedestalTask.h:122
hcaldqm::filter::HashFilter _filter_VME
Definition: PedestalTask.h:58
hcaldqm::ContainerProf2D _cMeanDBRef1LS_FEDuTCA
Definition: PedestalTask.h:107
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
Definition: PedestalTask.h:56
std::string _name
Definition: DQModule.h:42
HcalElectronicsMap const * _emap
Definition: DQTask.h:81
int const CRATE_uTCA_MIN
Definition: Constants.h:104
hcaldqm::Container2D _cMeanBad1LS_depth
Definition: PedestalTask.h:131
hcaldqm::ContainerProf2D _cMeanDBRefTotal_FEDuTCA
Definition: PedestalTask.h:112
hcaldqm::ContainerSingle2D _cSummaryvsLS
Definition: PedestalTask.h:145
hcaldqm::ContainerProf2D _cRMS1LS_depth
Definition: PedestalTask.h:91
hcaldqm::Container2D _cRMSBad1LS_FEDuTCA
Definition: PedestalTask.h:133
hcaldqm::Container1D _cNBadMeanvsLS_Subdet
Definition: PedestalTask.h:118
hcaldqm::filter::HashFilter _filter_C38
Definition: PedestalTask.h:59
hcaldqm::ContainerProf2D _cMeanTotal_depth
Definition: PedestalTask.h:95
virtual void book(HcalElectronicsMap const *)
Definition: ContainerXXX.h:88
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
Definition: Container1D.cc:592
virtual void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
Definition: Container2D.cc:25
hcaldqm::ContainerProf2D _cMeanDBRefTotal_depth
Definition: PedestalTask.h:110
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
hcaldqm::ContainerProf2D _cMeanDBRef1LS_depth
Definition: PedestalTask.h:105
hcaldqm::ContainerProf2D _cRMSTotal_FEDuTCA
Definition: PedestalTask.h:98
constexpr uint32_t rawId() const
void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fEnergy), int debug=0) override
hcaldqm::Container1D _cMeanDBRefTotal_Subdet
Definition: PedestalTask.h:103
hcaldqm::ContainerXXX< double > _xPedSum2Total
Definition: PedestalTask.h:73
edm::ESGetToken< HcalDbService, HcalDbRecord > hcalDbServiceToken_
Definition: PedestalTask.h:50
hcaldqm::ContainerXXX< int > _xNMsn1LS
Definition: PedestalTask.h:76
hcaldqm::ContainerXXX< int > _xNBadRMS1LS
Definition: PedestalTask.h:77
hcaldqm::Container2D _cMissingTotal_FEDuTCA
Definition: PedestalTask.h:128
hcaldqm::ContainerXXX< double > _xPedRefMean
Definition: PedestalTask.h:80
std::vector< HcalGenericDetId > allPrecisionId() const
std::vector< int > getFEDList(HcalElectronicsMap const *)
Definition: Utilities.cc:97
std::vector< int > getFEDuTCAList(HcalElectronicsMap const *)
Definition: Utilities.cc:135
hcaldqm::ContainerProf2D _cRMSDBRefTotal_FEDuTCA
Definition: PedestalTask.h:113
virtual void initialize(FilterType ftype, hashfunctions::HashType htype, std::vector< uint32_t > const &)
Definition: HashFilter.cc:17
virtual bool filter(HcalDetId const &) const
Definition: HashFilter.cc:24
std::string _subsystem
Definition: DQModule.h:49
hcaldqm::ContainerXXX< int > _xNBadMean1LS
Definition: PedestalTask.h:77
virtual void initialize(hashfunctions::HashType, int debug=0)
Definition: ContainerXXX.h:82
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
Definition: Container2D.cc:567
hcaldqm::ContainerProf2D _cMeanTotal_FEDuTCA
Definition: PedestalTask.h:97
Readout chain identification for Hcal.
hcaldqm::Container2D _cSummaryvsLS_FED
Definition: PedestalTask.h:144
virtual void set(HcalDetId const &, STDTYPE)
Definition: ContainerXXX.h:183
int const SLOT_uTCA_MIN
Definition: Constants.h:111
hcaldqm::filter::HashFilter _filter_uTCA
Definition: PedestalTask.h:57
ib
Definition: cuy.py:661

◆ dqmEndRun()

void PedestalTask::dqmEndRun ( edm::Run const &  r,
edm::EventSetup const &   
)
overridevirtual

Reimplemented from DQMOneEDAnalyzer< edm::LuminosityBlockCache< hcaldqm::Cache > >.

Definition at line 788 of file PedestalTask.cc.

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

788  {
789  if (_ptype == fLocal) {
790  if (r.runAuxiliary().run() == 1)
791  return;
792  else
793  this->_dump();
794  } else if (_ptype == fOnline)
795  return;
796 }
ProcessingType _ptype
Definition: DQModule.h:44
virtual void _dump()

◆ globalBeginLuminosityBlock()

std::shared_ptr< hcaldqm::Cache > PedestalTask::globalBeginLuminosityBlock ( edm::LuminosityBlock const &  lb,
edm::EventSetup const &  es 
) const
override

Definition at line 783 of file PedestalTask.cc.

784  {
785  return DQTask::globalBeginLuminosityBlock(lb, es);
786 }

◆ globalEndLuminosityBlock()

void PedestalTask::globalEndLuminosityBlock ( edm::LuminosityBlock const &  lb,
edm::EventSetup const &  es 
)
override

Definition at line 798 of file PedestalTask.cc.

References hcaldqm::DQModule::_currentLS, _dump(), hcaldqm::DQModule::_ptype, hcaldqm::DQTask::_xQuality, hcaldqm::fLocal, edm::LuminosityBlock::index(), and hcaldqm::ContainerXXX< STDTYPE >::reset().

798  {
799  auto lumiCache = luminosityBlockCache(lb.index());
800  _currentLS = lumiCache->currentLS;
801  _xQuality.reset();
802  _xQuality = lumiCache->xQuality;
803 
804  if (_ptype == fLocal)
805  return;
806  this->_dump();
807 
808  DQTask::globalEndLuminosityBlock(lb, es);
809 }
virtual void reset()
Definition: ContainerXXX.h:293
ProcessingType _ptype
Definition: DQModule.h:44
ContainerXXX< uint32_t > _xQuality
Definition: DQTask.h:66
virtual void _dump()

Member Data Documentation

◆ _cADC_SubdetPM

hcaldqm::Container1D PedestalTask::_cADC_SubdetPM
protected

Definition at line 141 of file PedestalTask.h.

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

◆ _cMean1LS_depth

hcaldqm::ContainerProf2D PedestalTask::_cMean1LS_depth
protected

Definition at line 90 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cMean1LS_FEDuTCA

hcaldqm::ContainerProf2D PedestalTask::_cMean1LS_FEDuTCA
protected

Definition at line 92 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cMean1LS_Subdet

hcaldqm::Container1D PedestalTask::_cMean1LS_Subdet
protected

Definition at line 86 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cMeanBad1LS_depth

hcaldqm::Container2D PedestalTask::_cMeanBad1LS_depth
protected

Definition at line 131 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cMeanBad1LS_FEDuTCA

hcaldqm::Container2D PedestalTask::_cMeanBad1LS_FEDuTCA
protected

Definition at line 134 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cMeanBadTotal_depth

hcaldqm::Container2D PedestalTask::_cMeanBadTotal_depth
protected

Definition at line 136 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cMeanBadTotal_FEDuTCA

hcaldqm::Container2D PedestalTask::_cMeanBadTotal_FEDuTCA
protected

Definition at line 139 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cMeanDBRef1LS_depth

hcaldqm::ContainerProf2D PedestalTask::_cMeanDBRef1LS_depth
protected

Definition at line 105 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cMeanDBRef1LS_FEDuTCA

hcaldqm::ContainerProf2D PedestalTask::_cMeanDBRef1LS_FEDuTCA
protected

Definition at line 107 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cMeanDBRef1LS_Subdet

hcaldqm::Container1D PedestalTask::_cMeanDBRef1LS_Subdet
protected

Definition at line 101 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cMeanDBRefTotal_depth

hcaldqm::ContainerProf2D PedestalTask::_cMeanDBRefTotal_depth
protected

Definition at line 110 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cMeanDBRefTotal_FEDuTCA

hcaldqm::ContainerProf2D PedestalTask::_cMeanDBRefTotal_FEDuTCA
protected

Definition at line 112 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cMeanDBRefTotal_Subdet

hcaldqm::Container1D PedestalTask::_cMeanDBRefTotal_Subdet
protected

Definition at line 103 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cMeanTotal_depth

hcaldqm::ContainerProf2D PedestalTask::_cMeanTotal_depth
protected

Definition at line 95 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cMeanTotal_FEDuTCA

hcaldqm::ContainerProf2D PedestalTask::_cMeanTotal_FEDuTCA
protected

Definition at line 97 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cMeanTotal_Subdet

hcaldqm::Container1D PedestalTask::_cMeanTotal_Subdet
protected

Definition at line 84 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cMissing1LS_depth

hcaldqm::Container2D PedestalTask::_cMissing1LS_depth
protected

Definition at line 125 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cMissing1LS_FEDuTCA

hcaldqm::Container2D PedestalTask::_cMissing1LS_FEDuTCA
protected

Definition at line 126 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cMissingTotal_depth

hcaldqm::Container2D PedestalTask::_cMissingTotal_depth
protected

Definition at line 127 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cMissingTotal_FEDuTCA

hcaldqm::Container2D PedestalTask::_cMissingTotal_FEDuTCA
protected

Definition at line 128 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cMissingvsLS_Subdet

hcaldqm::Container1D PedestalTask::_cMissingvsLS_Subdet
protected

Definition at line 116 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cNBadMeanvsLS_Subdet

hcaldqm::Container1D PedestalTask::_cNBadMeanvsLS_Subdet
protected

Definition at line 118 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cNBadRMSvsLS_Subdet

hcaldqm::Container1D PedestalTask::_cNBadRMSvsLS_Subdet
protected

Definition at line 119 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cOccupancyEAvsLS_Subdet

hcaldqm::ContainerProf1D PedestalTask::_cOccupancyEAvsLS_Subdet
protected

Definition at line 122 of file PedestalTask.h.

Referenced by _process(), and bookHistograms().

◆ _cOccupancyvsLS_Subdet

hcaldqm::Container1D PedestalTask::_cOccupancyvsLS_Subdet
protected

Definition at line 117 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cRMS1LS_depth

hcaldqm::ContainerProf2D PedestalTask::_cRMS1LS_depth
protected

Definition at line 91 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cRMS1LS_FEDuTCA

hcaldqm::ContainerProf2D PedestalTask::_cRMS1LS_FEDuTCA
protected

Definition at line 93 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cRMS1LS_Subdet

hcaldqm::Container1D PedestalTask::_cRMS1LS_Subdet
protected

Definition at line 87 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cRMSBad1LS_depth

hcaldqm::Container2D PedestalTask::_cRMSBad1LS_depth
protected

Definition at line 132 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cRMSBad1LS_FEDuTCA

hcaldqm::Container2D PedestalTask::_cRMSBad1LS_FEDuTCA
protected

Definition at line 133 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cRMSBadTotal_depth

hcaldqm::Container2D PedestalTask::_cRMSBadTotal_depth
protected

Definition at line 137 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cRMSBadTotal_FEDuTCA

hcaldqm::Container2D PedestalTask::_cRMSBadTotal_FEDuTCA
protected

Definition at line 138 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cRMSDBRef1LS_depth

hcaldqm::ContainerProf2D PedestalTask::_cRMSDBRef1LS_depth
protected

Definition at line 106 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cRMSDBRef1LS_FEDuTCA

hcaldqm::ContainerProf2D PedestalTask::_cRMSDBRef1LS_FEDuTCA
protected

Definition at line 108 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cRMSDBRef1LS_Subdet

hcaldqm::Container1D PedestalTask::_cRMSDBRef1LS_Subdet
protected

Definition at line 102 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cRMSDBRefTotal_depth

hcaldqm::ContainerProf2D PedestalTask::_cRMSDBRefTotal_depth
protected

Definition at line 111 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cRMSDBRefTotal_FEDuTCA

hcaldqm::ContainerProf2D PedestalTask::_cRMSDBRefTotal_FEDuTCA
protected

Definition at line 113 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cRMSDBRefTotal_Subdet

hcaldqm::Container1D PedestalTask::_cRMSDBRefTotal_Subdet
protected

Definition at line 104 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cRMSTotal_depth

hcaldqm::ContainerProf2D PedestalTask::_cRMSTotal_depth
protected

Definition at line 96 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cRMSTotal_FEDuTCA

hcaldqm::ContainerProf2D PedestalTask::_cRMSTotal_FEDuTCA
protected

Definition at line 98 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cRMSTotal_Subdet

hcaldqm::Container1D PedestalTask::_cRMSTotal_Subdet
protected

Definition at line 85 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cSummaryvsLS

hcaldqm::ContainerSingle2D PedestalTask::_cSummaryvsLS
protected

Definition at line 145 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _cSummaryvsLS_FED

hcaldqm::Container2D PedestalTask::_cSummaryvsLS_FED
protected

Definition at line 144 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _ehashmap

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

Definition at line 56 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _filter_C38

hcaldqm::filter::HashFilter PedestalTask::_filter_C38
protected

Definition at line 59 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _filter_uTCA

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

Definition at line 57 of file PedestalTask.h.

Referenced by bookHistograms().

◆ _filter_VME

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

Definition at line 58 of file PedestalTask.h.

Referenced by bookHistograms().

◆ _tagHO

edm::InputTag PedestalTask::_tagHO
protected

Definition at line 41 of file PedestalTask.h.

Referenced by _process(), and PedestalTask().

◆ _tagQIE10

edm::InputTag PedestalTask::_tagQIE10
protected

Definition at line 42 of file PedestalTask.h.

Referenced by _process(), and PedestalTask().

◆ _tagQIE11

edm::InputTag PedestalTask::_tagQIE11
protected

Definition at line 40 of file PedestalTask.h.

Referenced by _process(), and PedestalTask().

◆ _tagTrigger

edm::InputTag PedestalTask::_tagTrigger
protected

Definition at line 43 of file PedestalTask.h.

Referenced by _isApplicable(), and PedestalTask().

◆ _taguMN

edm::InputTag PedestalTask::_taguMN
protected

Definition at line 44 of file PedestalTask.h.

Referenced by PedestalTask().

◆ _thresh_badm

double PedestalTask::_thresh_badm
protected

Definition at line 62 of file PedestalTask.h.

Referenced by _dump(), and PedestalTask().

◆ _thresh_badr

double PedestalTask::_thresh_badr
protected

Definition at line 62 of file PedestalTask.h.

Referenced by PedestalTask().

◆ _thresh_mean

double PedestalTask::_thresh_mean
protected

Definition at line 62 of file PedestalTask.h.

Referenced by _dump(), and PedestalTask().

◆ _thresh_missing_high

double PedestalTask::_thresh_missing_high
protected

Definition at line 63 of file PedestalTask.h.

Referenced by _dump(), and PedestalTask().

◆ _thresh_missing_low

double PedestalTask::_thresh_missing_low
protected

Definition at line 63 of file PedestalTask.h.

Referenced by _dump(), and PedestalTask().

◆ _thresh_rms

double PedestalTask::_thresh_rms
protected

Definition at line 62 of file PedestalTask.h.

Referenced by _dump(), and PedestalTask().

◆ _tokHO

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

Definition at line 47 of file PedestalTask.h.

Referenced by _process(), and PedestalTask().

◆ _tokQIE10

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

Definition at line 48 of file PedestalTask.h.

Referenced by _process(), and PedestalTask().

◆ _tokQIE11

edm::EDGetTokenT<QIE11DigiCollection> PedestalTask::_tokQIE11
protected

Definition at line 46 of file PedestalTask.h.

Referenced by _process(), and PedestalTask().

◆ _tokTrigger

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

Definition at line 49 of file PedestalTask.h.

Referenced by _isApplicable(), and PedestalTask().

◆ _tokuMN

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

Definition at line 45 of file PedestalTask.h.

Referenced by _isApplicable(), and PedestalTask().

◆ _vflags

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

Definition at line 52 of file PedestalTask.h.

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

◆ _vhashFEDs

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

Definition at line 66 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _xNBadMean1LS

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

Definition at line 77 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _xNBadRMS1LS

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

Definition at line 77 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _xNChs

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

Definition at line 75 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _xNMsn1LS

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

Definition at line 76 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _xPedEntries1LS

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

Definition at line 71 of file PedestalTask.h.

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

◆ _xPedEntriesTotal

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

Definition at line 74 of file PedestalTask.h.

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

◆ _xPedRefMean

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

Definition at line 80 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _xPedRefRMS

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

Definition at line 81 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

◆ _xPedSum1LS

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

Definition at line 69 of file PedestalTask.h.

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

◆ _xPedSum21LS

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

Definition at line 70 of file PedestalTask.h.

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

◆ _xPedSum2Total

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

Definition at line 73 of file PedestalTask.h.

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

◆ _xPedSumTotal

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

Definition at line 72 of file PedestalTask.h.

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

◆ hcalDbServiceToken_

edm::ESGetToken<HcalDbService, HcalDbRecord> PedestalTask::hcalDbServiceToken_
protected

Definition at line 50 of file PedestalTask.h.

Referenced by bookHistograms().