#include "FWCore/Framework/interface/ESConsumesCollector.h"
Public Member Functions | |
ESConsumesCollectorAdaptor | consumes () |
ESConsumesCollectorWithTagAdaptor | consumes (ESInputTag tag) |
template<typename Product , typename Record > | |
auto | consumesFrom (ESInputTag const &tag) |
template<typename Product , typename Record > | |
auto | consumesFrom () |
ESConsumesCollector ()=delete | |
ESConsumesCollector (ESConsumesCollector const &)=delete | |
ESConsumesCollector (ESConsumesCollector &&)=default | |
ESConsumesCollector & | operator= (ESConsumesCollector const &)=delete |
ESConsumesCollector & | operator= (ESConsumesCollector &&)=default |
Protected Member Functions | |
ESConsumesCollector (ESConsumesInfo *const iConsumer, unsigned int iTransitionID) | |
template<typename Product , typename Record , typename Collector , typename PTag > | |
auto | registerMayConsume (std::unique_ptr< Collector > iCollector, PTag const &productTag) |
Private Attributes | |
edm::propagate_const< ESConsumesInfo * > | m_consumer {nullptr} |
unsigned int | m_transitionID {0} |
Description: Helper class to gather consumes information for the EventSetup.
Usage: The constructor of an ESProducer module can get an instance of edm::ESConsumesCollector by calling consumesCollector() method. This instance can then be passed to helper classes in order to register the event-setup data the helper will request from an Event, LuminosityBlock or Run on behalf of the module.
Caveat: The ESConsumesCollector should be used during the time that modules are being constructed. It should not be saved and used later. It will not work if it is used to call the consumes function during beginJob, beginRun, beginLuminosity block, event processing or at any later time. As of now, an ESConsumesCollector is provided for only ESProducer subclasses–i.e. those that call setWhatProduced(this, ...).
Definition at line 64 of file ESConsumesCollector.h.
|
delete |
|
delete |
|
default |
|
inlineexplicitprotected |
Definition at line 101 of file ESConsumesCollector.h.
|
inline |
Definition at line 205 of file ESConsumesCollector.h.
Referenced by registerMayConsume().
|
inline |
Definition at line 206 of file ESConsumesCollector.h.
References eostools::move(), and makeGlobalPositionRcd_cfg::tag.
|
inline |
Definition at line 74 of file ESConsumesCollector.h.
References m_consumer, m_transitionID, and makeGlobalPositionRcd_cfg::tag.
|
inline |
Definition at line 87 of file ESConsumesCollector.h.
References m_consumer, and m_transitionID.
|
delete |
|
default |
|
inlineprotected |
Definition at line 105 of file ESConsumesCollector.h.
References consumes(), m_consumer, m_transitionID, and eostools::move().
|
private |
Definition at line 123 of file ESConsumesCollector.h.
Referenced by edm::ESConsumesCollectorAdaptor::consumes(), edm::ESConsumesCollectorWithTagAdaptor::consumes(), consumesFrom(), and registerMayConsume().
|
private |
Definition at line 124 of file ESConsumesCollector.h.
Referenced by consumesFrom(), and registerMayConsume().