#include "FWCore/Framework/interface/ESConsumesCollector.h"
Public Member Functions | |
template<typename Product , typename Record > | |
auto | consumesFrom (ESInputTag const &tag) |
ESConsumesCollector ()=delete | |
ESConsumesCollector (ESConsumesCollector const &)=default | |
ESConsumesCollector (ESConsumesCollector &&)=default | |
ESConsumesCollector & | operator= (ESConsumesCollector const &)=default |
ESConsumesCollector & | operator= (ESConsumesCollector &&)=default |
Protected Member Functions | |
ESConsumesCollector (ESConsumesInfo *const iConsumer, unsigned int iTransitionID) | |
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 44 of file ESConsumesCollector.h.
|
delete |
|
default |
|
default |
|
inlineexplicitprotected |
Definition at line 66 of file ESConsumesCollector.h.
References m_transitionID.
|
inline |
Definition at line 54 of file ESConsumesCollector.h.
References edm::ESInputTag::data(), m_consumer, m_transitionID, edm::ESInputTag::module(), and dataset::name.
|
default |
|
default |
|
private |
Definition at line 71 of file ESConsumesCollector.h.
Referenced by consumesFrom().
|
private |
Definition at line 72 of file ESConsumesCollector.h.
Referenced by consumesFrom(), and ESConsumesCollector().