CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
DQMEDAnalyzer Class Referenceabstract

#include <DQMEDAnalyzer.h>

Inheritance diagram for DQMEDAnalyzer:
edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > > edm::stream::EDAnalyzerBase edm::EDConsumerBase BasicGenParticleValidation BasicHepMCHeavyIonValidation BasicHepMCValidation BeamHaloAnalyzer BPhysicsSpectrum BPhysicsValidation CaloTowerAnalyzer CaloTowersAnalyzer CSCMonitorModule dEdxAnalyzer DiMuonHistograms DQMDcsInfo DQMEventInfo DQMExample_Step1 DrellYanValidation DuplicationChecker EcalDQMonitorTask EcalFEDMonitorTemp< SUBDET > EcalPileUpDepMonitor ECALRecHitAnalyzer EcalZmassTask EmDQM EmDQMReco ESFEDIntegrityTask ESIntegrityTask ESOccupancyTask ESPedestalTask ESRawDataTask ESRecoSummary ESTimingTask ESTrendTask GeneralHLTOffline HcalNoiseRates HCALRecHitAnalyzer HcalRecHitsAnalyzer HeavyFlavorValidation HiggsValidation HLTMuonOfflineAnalyzer HLTMuonValidator HLTTauDQMOfflineSource HTMHTAnalyzer L1TFED LogMessageMonitor MBUEandQCDValidation METTester MonitorLTC MuonEnergyDepositAnalyzer MuonIsolationDQM MuonPFAnalyzer MuonSeedsAnalyzer RPCDcsInfo RPCEfficiency RPCFEDIntegrity RPCMonitorDigi RPCMonitorLinkSynchro RPCMonitorRaw RPCRecHitProbability RPCTTUMonitor SiPixelClusterSource SiPixelDigiSource SiPixelDigiValid SiPixelHLTSource SiPixelRawDataErrorSource SiPixelRecHitsValid SiStripBaselineValidator SiStripDigiValid SiStripFEDCheckPlugin SiStripMonitorFilter SiStripMonitorHLT SiStripMonitorPedestals SiStripMonitorRawData SiStripRecHitsValid SUSYDQMAnalyzer TauValidation TopDiLeptonHLTValidation TopSingleLeptonHLTValidation TrackEfficiencyMonitor TrackerHitAnalyzer TrackingMonitor TrackingTruthValid TrackSplittingMonitor TriggerRatesMonitor TTbar_GenJetAnalyzer TTbar_GenLepAnalyzer TTbar_Kinematics TTbarSpinCorrHepMCAnalyzer WValidation

Public Member Functions

virtual void beginRun (edm::Run const &, edm::EventSetup const &) final
 
virtual void beginStream (edm::StreamID id) final
 
virtual void bookHistograms (DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &)=0
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 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
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Static Public Member Functions

static std::shared_ptr
< dqmDetails::NoCache
globalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
 
static std::shared_ptr
< dqmDetails::NoCache
globalBeginRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *)
 
static void globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, dqmDetails::NoCache *)
 
static void globalEndRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *, dqmDetails::NoCache *)
 
- Static Public Member Functions inherited from edm::stream::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Attributes

uint32_t stream_id_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
typedef CacheContexts< T...> CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T...> HasAbility
 
typedef
CacheTypes::LuminosityBlockCache 
LuminosityBlockCache
 
typedef
LuminosityBlockContextT
< LuminosityBlockCache,
RunCache, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDAnalyzerBase
typedef EDAnalyzerAdaptorBase ModuleType
 
- Protected Member Functions inherited from edm::stream::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
- 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)
 

Detailed Description

Definition at line 20 of file DQMEDAnalyzer.h.

Constructor & Destructor Documentation

DQMEDAnalyzer::DQMEDAnalyzer ( void  )

Definition at line 10 of file DQMEDAnalyzer.cc.

10 {}

Member Function Documentation

void DQMEDAnalyzer::beginRun ( edm::Run const &  iRun,
edm::EventSetup const &  iSetup 
)
finalvirtual

Reimplemented from edm::stream::EDAnalyzerBase.

Definition at line 17 of file DQMEDAnalyzer.cc.

References b, bookHistograms(), DQMStore::bookTransaction(), dqmBeginRun(), edm::ModuleDescription::id(), edm::Run::moduleCallingContext(), edm::ModuleCallingContext::moduleDescription(), cppFunctionSkipper::operator, edm::RunBase::run(), and streamId().

18  {
19  dqmBeginRun(iRun, iSetup);
21  store->bookTransaction([this, &iRun, &iSetup](DQMStore::IBooker &b) {
22  this->bookHistograms(b, iRun, iSetup);
23  },
24  iRun.run(),
25  streamId(),
26  iRun.moduleCallingContext()->moduleDescription()->id());
27 }
virtual void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &)=0
uint32_t streamId() const
Definition: DQMEDAnalyzer.h:51
virtual void dqmBeginRun(edm::Run const &, edm::EventSetup const &)
Definition: DQMEDAnalyzer.h:52
double b
Definition: hdecay.h:120
void DQMEDAnalyzer::beginStream ( edm::StreamID  id)
finalvirtual

Reimplemented from edm::stream::EDAnalyzerBase.

Definition at line 12 of file DQMEDAnalyzer.cc.

References stream_id_.

13 {
14  stream_id_ = id.value();
15 }
uint32_t stream_id_
Definition: DQMEDAnalyzer.h:56
virtual void DQMEDAnalyzer::bookHistograms ( DQMStore::IBooker i,
edm::Run const &  ,
edm::EventSetup const &   
)
pure virtual

Implemented in BeamHaloAnalyzer, CSCMonitorModule, SiStripRecHitsValid, RPCEfficiency, EmDQMReco, ECALRecHitAnalyzer, EmDQM, TriggerRatesMonitor, MuonIsolationDQM, LogMessageMonitor, SiPixelClusterSource, SiStripMonitorPedestals, HcalRecHitsAnalyzer, SiPixelRawDataErrorSource, TTbar_Kinematics, TrackingMonitor, TopDiLeptonHLTValidation, RPCTTUMonitor, SiStripFEDCheckPlugin, TTbar_GenJetAnalyzer, TTbarSpinCorrHepMCAnalyzer, HeavyFlavorValidation, DQMExample_Step1, TopSingleLeptonHLTValidation, TauValidation, TTbar_GenLepAnalyzer, METTester, SiPixelDigiSource, GeneralHLTOffline, L1TFED, SiPixelHLTSource, HLTMuonOfflineAnalyzer, TrackEfficiencyMonitor, TrackSplittingMonitor, HLTMuonValidator, SiStripMonitorRawData, dEdxAnalyzer, EcalZmassTask, HcalNoiseRates, DuplicationChecker, SiStripBaselineValidator, MuonPFAnalyzer, DQMEventInfo, MBUEandQCDValidation, DiMuonHistograms, MuonEnergyDepositAnalyzer, BasicGenParticleValidation, MuonSeedsAnalyzer, BPhysicsSpectrum, BPhysicsValidation, HiggsValidation, CaloTowersAnalyzer, EcalPileUpDepMonitor, HTMHTAnalyzer, DQMDcsInfo, BasicHepMCValidation, WValidation, SiPixelRecHitsValid, BasicHepMCHeavyIonValidation, DrellYanValidation, EcalFEDMonitorTemp< SUBDET >, MonitorLTC, TrackerHitAnalyzer, RPCFEDIntegrity, RPCMonitorDigi, HCALRecHitAnalyzer, SiStripMonitorFilter, SiStripMonitorHLT, HLTTauDQMOfflineSource, RPCDcsInfo, CaloTowerAnalyzer, ESRawDataTask, ESTimingTask, SUSYDQMAnalyzer, ESTrendTask, RPCMonitorRaw, RPCRecHitProbability, RPCMonitorLinkSynchro, SiPixelDigiValid, SiStripDigiValid, EcalDQMonitorTask, TrackingTruthValid, ESFEDIntegrityTask, ESOccupancyTask, ESPedestalTask, ESIntegrityTask, and ESRecoSummary.

Referenced by beginRun().

virtual void DQMEDAnalyzer::dqmBeginRun ( edm::Run const &  ,
edm::EventSetup const &   
)
inlinevirtual
void DQMEDAnalyzer::endLuminosityBlockSummary ( edm::LuminosityBlock const &  iLumi,
edm::EventSetup const &  iSetup,
dqmDetails::NoCache  
) const
finalvirtual

Definition at line 38 of file DQMEDAnalyzer.cc.

References edm::LuminosityBlockBase::id(), edm::ModuleDescription::id(), LogDebug, edm::LuminosityBlockID::luminosityBlock(), DQMStore::mergeAndResetMEsLuminositySummaryCache(), edm::LuminosityBlock::moduleCallingContext(), edm::ModuleCallingContext::moduleDescription(), cppFunctionSkipper::operator, edm::LuminosityBlockBase::run(), and stream_id_.

40  {
42  assert(store);
43  LogDebug("DQMEDAnalyzer") << "Merging Lumi local MEs ("
44  << iLumi.run() << ", "
45  << iLumi.id().luminosityBlock() << ", "
46  << stream_id_ << ", "
47  << iLumi.moduleCallingContext()->moduleDescription()->id()
48  << ") into the DQMStore@" << store << std::endl;
49  store->mergeAndResetMEsLuminositySummaryCache(iLumi.run(),
50  iLumi.id().luminosityBlock(),
51  stream_id_,
52  iLumi.moduleCallingContext()->moduleDescription()->id());
53 }
#define LogDebug(id)
uint32_t stream_id_
Definition: DQMEDAnalyzer.h:56
void DQMEDAnalyzer::endRunSummary ( edm::Run const &  iRun,
edm::EventSetup const &  iSetup,
dqmDetails::NoCache  
) const
finalvirtual

Definition at line 55 of file DQMEDAnalyzer.cc.

References edm::ModuleDescription::id(), LogDebug, DQMStore::mergeAndResetMEsRunSummaryCache(), edm::Run::moduleCallingContext(), edm::ModuleCallingContext::moduleDescription(), cppFunctionSkipper::operator, edm::RunBase::run(), and stream_id_.

57  {
59  assert(store);
60  LogDebug("DQMEDAnalyzer") << "Merging Run local MEs ("
61  << iRun.run() << ", "
62  << stream_id_ << ", "
63  << iRun.moduleCallingContext()->moduleDescription()->id()
64  << ") into the DQMStore@" << store << std::endl;
65  store->mergeAndResetMEsRunSummaryCache(iRun.run(),
66  stream_id_,
67  iRun.moduleCallingContext()->moduleDescription()->id());
68 }
#define LogDebug(id)
uint32_t stream_id_
Definition: DQMEDAnalyzer.h:56
std::shared_ptr< dqmDetails::NoCache > DQMEDAnalyzer::globalBeginLuminosityBlockSummary ( edm::LuminosityBlock const &  ,
edm::EventSetup const &  ,
LuminosityBlockContext const *   
)
static

Definition at line 77 of file DQMEDAnalyzer.cc.

80 {
81  return nullptr;
82 }
std::shared_ptr< dqmDetails::NoCache > DQMEDAnalyzer::globalBeginRunSummary ( edm::Run const &  ,
edm::EventSetup const &  ,
RunContext const *   
)
static

Definition at line 31 of file DQMEDAnalyzer.cc.

34 {
35  return nullptr;
36 }
void DQMEDAnalyzer::globalEndLuminosityBlockSummary ( edm::LuminosityBlock const &  ,
edm::EventSetup const &  ,
LuminosityBlockContext const *  ,
dqmDetails::NoCache  
)
static

Definition at line 84 of file DQMEDAnalyzer.cc.

88 {}
void DQMEDAnalyzer::globalEndRunSummary ( edm::Run const &  ,
edm::EventSetup const &  ,
RunContext const *  ,
dqmDetails::NoCache  
)
static

Definition at line 70 of file DQMEDAnalyzer.cc.

74 {}
uint32_t DQMEDAnalyzer::streamId ( ) const
inline

Definition at line 51 of file DQMEDAnalyzer.h.

References stream_id_.

Referenced by beginRun().

51 {return stream_id_;}
uint32_t stream_id_
Definition: DQMEDAnalyzer.h:56

Member Data Documentation

uint32_t DQMEDAnalyzer::stream_id_
private

Definition at line 56 of file DQMEDAnalyzer.h.

Referenced by beginStream(), endLuminosityBlockSummary(), endRunSummary(), and streamId().