CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
one::dqmimplementation::DQMRunEDProducer< T > Class Template Referenceabstract

#include <oneDQMEDAnalyzer.h>

Inheritance diagram for one::dqmimplementation::DQMRunEDProducer< T >:
edm::one::EDProducer< edm::Accumulator, edm::EndRunProducer, edm::one::WatchRuns, T... > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

void accumulate (edm::Event const &ev, edm::EventSetup const &es) final
 
virtual void analyze (edm::Event const &, edm::EventSetup const &)
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual void bookHistograms (DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &)=0
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMRunEDProducer ()
 
 DQMRunEDProducer (DQMRunEDProducer< T... > const &)=delete
 
 DQMRunEDProducer (DQMRunEDProducer< T... > &&)=delete
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) override
 
void endRunProduce (edm::Run &run, edm::EventSetup const &setup) override
 
 ~DQMRunEDProducer () override=default
 
- Public Member Functions inherited from edm::one::EDProducer< edm::Accumulator, edm::EndRunProducer, edm::one::WatchRuns, T... >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInLumis () const final
 
bool hasAbilityToProduceInRuns () const final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~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
 
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)
 
 ~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
 
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)
 

Private Attributes

edm::EDPutTokenT< DQMTokenrunToken_
 

Additional Inherited Members

- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
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 edm::one::EDProducerBase
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... T>
class one::dqmimplementation::DQMRunEDProducer< T >

Definition at line 33 of file oneDQMEDAnalyzer.h.

Constructor & Destructor Documentation

template<typename... T>
one::dqmimplementation::DQMRunEDProducer< T >::DQMRunEDProducer ( )
inline

Definition at line 38 of file oneDQMEDAnalyzer.h.

38  :
39  runToken_{this-> template produces<DQMToken,edm::Transition::EndRun>("endRun")}
40  {}
edm::EDPutTokenT< DQMToken > runToken_
template<typename... T>
one::dqmimplementation::DQMRunEDProducer< T >::~DQMRunEDProducer ( )
overridedefault
template<typename... T>
one::dqmimplementation::DQMRunEDProducer< T >::DQMRunEDProducer ( DQMRunEDProducer< T... > const &  )
delete
template<typename... T>
one::dqmimplementation::DQMRunEDProducer< T >::DQMRunEDProducer ( DQMRunEDProducer< T... > &&  )
delete

Member Function Documentation

template<typename... T>
void one::dqmimplementation::DQMRunEDProducer< T >::accumulate ( edm::Event const &  ev,
edm::EventSetup const &  es 
)
inlinefinal

Definition at line 70 of file oneDQMEDAnalyzer.h.

70  {
71  analyze(ev,es);
72  }
bool ev
virtual void analyze(edm::Event const &, edm::EventSetup const &)
template<typename... T>
virtual void one::dqmimplementation::DQMRunEDProducer< T >::analyze ( edm::Event const &  ,
edm::EventSetup const &   
)
inlinevirtual

Definition at line 69 of file oneDQMEDAnalyzer.h.

69 {}
template<typename... T>
void one::dqmimplementation::DQMRunEDProducer< T >::beginRun ( edm::Run const &  run,
edm::EventSetup const &  setup 
)
inlinefinal

Definition at line 45 of file oneDQMEDAnalyzer.h.

45  {
47  edm::Service<DQMStore>()->bookTransaction(
48  [this, &run, &setup](DQMStore::IBooker & booker)
49  {
50  booker.cd();
51  this->bookHistograms(booker, run, setup);
52  },
53  run.run(),
54  this->moduleDescription().id());
55  }
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:2
ModuleDescription const & moduleDescription() const
virtual void dqmBeginRun(edm::Run const &, edm::EventSetup const &)
virtual void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &)=0
unsigned int id() const
template<typename... T>
virtual void one::dqmimplementation::DQMRunEDProducer< T >::bookHistograms ( DQMStore::IBooker i,
edm::Run const &  ,
edm::EventSetup const &   
)
pure virtual
template<typename... T>
virtual void one::dqmimplementation::DQMRunEDProducer< T >::dqmBeginRun ( edm::Run const &  ,
edm::EventSetup const &   
)
inlinevirtual

Definition at line 66 of file oneDQMEDAnalyzer.h.

66 {}
template<typename... T>
void one::dqmimplementation::DQMRunEDProducer< T >::endRun ( edm::Run const &  run,
edm::EventSetup const &  setup 
)
inlineoverride

Definition at line 57 of file oneDQMEDAnalyzer.h.

57 {}
template<typename... T>
void one::dqmimplementation::DQMRunEDProducer< T >::endRunProduce ( edm::Run run,
edm::EventSetup const &  setup 
)
inlineoverride

Definition at line 58 of file oneDQMEDAnalyzer.h.

58  {
59  edm::Service<DQMStore>()->cloneRunHistograms(
60  run.run(),
61  this->moduleDescription().id());
62 
64  }
RunNumber_t run() const
Definition: RunBase.h:40
void emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
Definition: Run.h:262
edm::EDPutTokenT< DQMToken > runToken_
ModuleDescription const & moduleDescription() const
unsigned int id() const

Member Data Documentation

template<typename... T>
edm::EDPutTokenT<DQMToken> one::dqmimplementation::DQMRunEDProducer< T >::runToken_
private

Definition at line 74 of file oneDQMEDAnalyzer.h.