CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
one::dqmimplementation::DQMLumisEDProducer Class Reference

#include <oneDQMEDAnalyzer.h>

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

Public Member Functions

void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) override
 
virtual void dqmBeginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
 DQMLumisEDProducer ()
 
 DQMLumisEDProducer (DQMLumisEDProducer const &)=delete
 
 DQMLumisEDProducer (DQMLumisEDProducer &&)=delete
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup) final
 
 ~DQMLumisEDProducer () override=default
 
- Public Member Functions inherited from one::dqmimplementation::DQMRunEDProducer< edm::EndLuminosityBlockProducer, edm::one::WatchLuminosityBlocks >
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
 
virtual bool getCanSaveByLumi ()
 
 ~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
 
ESProxyIndex const * esGetTokenIndices (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::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)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Attributes

edm::EDPutTokenT< DQMTokenlumiToken_
 

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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
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 81 of file oneDQMEDAnalyzer.h.

Constructor & Destructor Documentation

DQMLumisEDProducer::DQMLumisEDProducer ( )

Definition at line 6 of file oneDQMEDAnalyzer.cc.

6  :
7  lumiToken_{produces<DQMToken,edm::Transition::EndLuminosityBlock>("endLumi")}
8 {}
edm::EDPutTokenT< DQMToken > lumiToken_
one::dqmimplementation::DQMLumisEDProducer::~DQMLumisEDProducer ( )
overridedefault
one::dqmimplementation::DQMLumisEDProducer::DQMLumisEDProducer ( DQMLumisEDProducer const &  )
delete
one::dqmimplementation::DQMLumisEDProducer::DQMLumisEDProducer ( DQMLumisEDProducer &&  )
delete

Member Function Documentation

void DQMLumisEDProducer::beginLuminosityBlock ( edm::LuminosityBlock const &  lumi,
edm::EventSetup const &  setup 
)
override

Definition at line 10 of file oneDQMEDAnalyzer.cc.

References dqmBeginLuminosityBlock().

11 {
13 
14  /*
15  edm::Service<DQMStore>()->bookTransaction(
16  [this, &lumi, &setup](DQMStore::IBooker & booker)
17  {
18  booker.cd();
19  this->bookLumiHistograms(booker, lumi, setup);
20  },
21  lumi.run(),
22  lumi.moduleCallingContext()->moduleDescription()->id());
23  */
24 }
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:2
virtual void dqmBeginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
void DQMLumisEDProducer::dqmBeginLuminosityBlock ( edm::LuminosityBlock const &  lumi,
edm::EventSetup const &  setup 
)
virtual

Definition at line 26 of file oneDQMEDAnalyzer.cc.

Referenced by beginLuminosityBlock().

27 { }
void DQMLumisEDProducer::endLuminosityBlock ( edm::LuminosityBlock const &  ,
edm::EventSetup const &   
)
override

Definition at line 29 of file oneDQMEDAnalyzer.cc.

30 { }
void DQMLumisEDProducer::endLuminosityBlockProduce ( edm::LuminosityBlock lumi,
edm::EventSetup const &  setup 
)
final

Definition at line 32 of file oneDQMEDAnalyzer.cc.

References edm::LuminosityBlock::emplace(), edm::ModuleDescription::id(), edm::LuminosityBlockBase::luminosityBlock(), lumiToken_, edm::one::EDProducerBase::moduleDescription(), and edm::LuminosityBlockBase::run().

33 {
34  edm::Service<DQMStore>()->cloneLumiHistograms(
35  lumi.run(),
36  lumi.luminosityBlock(),
37  moduleDescription().id());
38 
40 }
ModuleDescription const & moduleDescription() const
void emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
LuminosityBlockNumber_t luminosityBlock() const
RunNumber_t run() const
edm::EDPutTokenT< DQMToken > lumiToken_
unsigned int id() const

Member Data Documentation

edm::EDPutTokenT<DQMToken> one::dqmimplementation::DQMLumisEDProducer::lumiToken_
private

Definition at line 102 of file oneDQMEDAnalyzer.h.

Referenced by endLuminosityBlockProduce().