CMS 3D CMS Logo

List of all members | Private Member Functions
DQMGlobalEDAnalyzer< H > Class Template Referenceabstract

#include <DQMGlobalEDAnalyzer.h>

Inheritance diagram for DQMGlobalEDAnalyzer< H >:
edm::global::EDAnalyzer< edm::RunCache< H > > edm::global::EDAnalyzerBase edm::EDConsumerBase

Private Member Functions

void analyze (edm::StreamID, edm::Event const &, edm::EventSetup const &) const final
 
virtual void bookHistograms (DQMStore::ConcurrentBooker &, edm::Run const &, edm::EventSetup const &, H &) const =0
 
virtual void dqmAnalyze (edm::Event const &, edm::EventSetup const &, H const &) const =0
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &, H &) const
 
std::shared_ptr< H > globalBeginRun (edm::Run const &, edm::EventSetup const &) const final
 
void globalEndRun (edm::Run const &, edm::EventSetup const &) const final
 

Additional Inherited Members

- Public Types inherited from edm::global::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Public Member Functions inherited from edm::global::EDAnalyzer< edm::RunCache< H > >
 EDAnalyzer ()=default
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsStreamLuminosityBlocks () const final
 
bool wantsStreamRuns () const final
 
- Public Member Functions inherited from edm::global::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
 ~EDAnalyzerBase () 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
 
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
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 
- Static Public Member Functions inherited from edm::global::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- 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

template<typename H>
class DQMGlobalEDAnalyzer< H >

Definition at line 11 of file DQMGlobalEDAnalyzer.h.

Member Function Documentation

template<typename H >
void DQMGlobalEDAnalyzer< H >::analyze ( edm::StreamID  ,
edm::Event const &  event,
edm::EventSetup const &  setup 
) const
finalprivatevirtual

Implements edm::global::EDAnalyzerBase.

Definition at line 57 of file DQMGlobalEDAnalyzer.h.

References DQMGlobalEDAnalyzer< H >::dqmAnalyze(), edm::Event::getRun(), h, and edm::Run::index().

Referenced by DQMGlobalEDAnalyzer< APVGain::APVGainHistograms >::dqmBeginRun().

58 {
59  //auto& h = const_cast<H&>(* this->runCache(event.getRun().index()));
60  auto const& h = * this->runCache(event.getRun().index());
62 }
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:1
virtual void dqmAnalyze(edm::Event const &, edm::EventSetup const &, H const &) const =0
Definition: event.py:1
template<typename H>
virtual void DQMGlobalEDAnalyzer< H >::bookHistograms ( DQMStore::ConcurrentBooker ,
edm::Run const &  ,
edm::EventSetup const &  ,
H &   
) const
privatepure virtual
template<typename H>
virtual void DQMGlobalEDAnalyzer< H >::dqmAnalyze ( edm::Event const &  ,
edm::EventSetup const &  ,
H const &   
) const
privatepure virtual
template<typename H>
virtual void DQMGlobalEDAnalyzer< H >::dqmBeginRun ( edm::Run const &  ,
edm::EventSetup const &  ,
H &   
) const
inlineprivatevirtual
template<typename H >
std::shared_ptr< H > DQMGlobalEDAnalyzer< H >::globalBeginRun ( edm::Run const &  run,
edm::EventSetup const &  setup 
) const
finalprivate

Definition at line 36 of file DQMGlobalEDAnalyzer.h.

References b, DQMGlobalEDAnalyzer< H >::bookHistograms(), DQMStore::IBooker::cd(), DQMGlobalEDAnalyzer< H >::dqmBeginRun(), h, and edm::RunBase::run().

37 {
38  auto h = std::make_shared<H>();
39  dqmBeginRun(run, setup, *h);
40  edm::Service<DQMStore>()->bookConcurrentTransaction([&, this](DQMStore::ConcurrentBooker &b) {
41  // this runs while holding the DQMStore lock
42  b.cd();
43  bookHistograms(b, run, setup, *h);
44  },
45  run.run() );
46  return h;
47 }
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
virtual void dqmBeginRun(edm::Run const &, edm::EventSetup const &, H &) const
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:1
double b
Definition: hdecay.h:120
virtual void bookHistograms(DQMStore::ConcurrentBooker &, edm::Run const &, edm::EventSetup const &, H &) const =0
template<typename H >
void DQMGlobalEDAnalyzer< H >::globalEndRun ( edm::Run const &  ,
edm::EventSetup const &   
) const
finalprivate

Definition at line 51 of file DQMGlobalEDAnalyzer.h.

52 {
53 }