#include "FWCore/Framework/interface/ESConsumesCollector.h"
Public Member Functions | |
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 |
template<typename Product , typename Record > | |
ESConsumesCollector & | setConsumes (ESGetToken< Product, Record > &token) |
template<typename Product , typename Record > | |
ESConsumesCollector & | setConsumes (ESGetToken< Product, Record > &token, ESInputTag const &tag) |
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 58 of file ESConsumesCollector.h.
|
delete |
|
delete |
|
default |
|
inlineexplicitprotected |
Definition at line 104 of file ESConsumesCollector.h.
|
inline |
Definition at line 81 of file ESConsumesCollector.h.
References m_consumer, and m_transitionID.
|
inline |
Definition at line 68 of file ESConsumesCollector.h.
References m_consumer, m_transitionID, and GlobalPosition_Frontier_DevDB_cff::tag.
|
default |
|
delete |
|
inlineprotected |
Definition at line 108 of file ESConsumesCollector.h.
References m_consumer, m_transitionID, eostools::move(), and setConsumes().
|
inline |
Definition at line 98 of file ESConsumesCollector.h.
References unpackBuffers-CaloStage2::token.
|
inline |
Definition at line 92 of file ESConsumesCollector.h.
References GlobalPosition_Frontier_DevDB_cff::tag, and unpackBuffers-CaloStage2::token.
Referenced by registerMayConsume().
|
private |
Definition at line 126 of file ESConsumesCollector.h.
Referenced by consumesFrom(), and registerMayConsume().
|
private |
Definition at line 127 of file ESConsumesCollector.h.
Referenced by consumesFrom(), and registerMayConsume().