#include "FWCore/Framework/interface/ESConsumesCollector.h"
Public Member Functions | |
ESConsumesCollectorAdaptor | consumes () |
ESConsumesCollectorWithTagAdaptor | consumes (ESInputTag tag) |
template<typename Product , typename Record > | |
auto | consumesFrom () |
template<typename Product , typename Record > | |
auto | consumesFrom (ESInputTag const &tag) |
ESConsumesCollector ()=delete | |
ESConsumesCollector (ESConsumesCollector &&)=default | |
ESConsumesCollector (ESConsumesCollector const &)=delete | |
ESConsumesCollector & | operator= (ESConsumesCollector &&)=default |
ESConsumesCollector & | operator= (ESConsumesCollector const &)=delete |
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 61 of file ESConsumesCollector.h.
|
delete |
|
delete |
|
default |
|
inlineexplicitprotected |
Definition at line 98 of file ESConsumesCollector.h.
|
inline |
Definition at line 200 of file ESConsumesCollector.h.
Referenced by registerMayConsume().
|
inline |
Definition at line 201 of file ESConsumesCollector.h.
References eostools::move(), and GlobalPosition_Frontier_DevDB_cff::tag.
|
inline |
Definition at line 84 of file ESConsumesCollector.h.
References m_consumer, and m_transitionID.
|
inline |
Definition at line 71 of file ESConsumesCollector.h.
References m_consumer, m_transitionID, and GlobalPosition_Frontier_DevDB_cff::tag.
|
default |
|
delete |
|
inlineprotected |
Definition at line 102 of file ESConsumesCollector.h.
References consumes(), m_consumer, m_transitionID, and eostools::move().
|
private |
Definition at line 120 of file ESConsumesCollector.h.
Referenced by edm::ESConsumesCollectorAdaptor::consumes(), edm::ESConsumesCollectorWithTagAdaptor::consumes(), consumesFrom(), and registerMayConsume().
|
private |
Definition at line 121 of file ESConsumesCollector.h.
Referenced by consumesFrom(), and registerMayConsume().