1 #ifndef FWCore_Framework_EDConsumerBase_h 2 #define FWCore_Framework_EDConsumerBase_h 43 class ModuleDescription;
44 class ProductResolverIndexHelper;
45 class ProductRegistry;
46 class ConsumesCollector;
82 bool iPrefetchMayGet);
89 std::map<std::string, ModuleDescription const*>
const& labelsToDesc,
100 template <
typename ProductType, BranchType B=InEvent>
102 TypeToGet tid=TypeToGet::make<ProductType>();
110 template <BranchType B>
115 template <
typename ProductType, BranchType B=InEvent>
117 TypeToGet tid=TypeToGet::make<ProductType>();
122 return mayConsume<InEvent>(
id,
tag);
125 template <BranchType B>
130 template <
typename ProductType, BranchType B=InEvent>
132 TypeToGet tid=TypeToGet::make<ProductType>();
133 consumesMany<B>(tid);
137 consumesMany<InEvent>(
id);
140 template <BranchType B>
159 bool skipCurrentProcess,
169 unsigned short iDeltaToProductInstance,
170 unsigned short iDeltaToProcessName):
171 m_startOfModuleLabel(iStartOfModuleLabel),
172 m_deltaToProductInstance(iDeltaToProductInstance),
173 m_deltaToProcessName(iDeltaToProcessName) {}
std::vector< ConsumesInfo > consumesInfo() const
unsigned int ProductResolverIndex
void updateLookup(BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
void consumesMany(const TypeToGet &id)
void throwTypeMismatch(edm::TypeID const &, EDGetToken) const
LabelPlacement(unsigned int iStartOfModuleLabel, unsigned short iDeltaToProductInstance, unsigned short iDeltaToProcessName)
void throwBadToken(edm::TypeID const &iType, EDGetToken iToken) const
unsigned short m_deltaToProcessName
void throwConsumesCallAfterFrozen(TypeToGet const &, InputTag const &) const
edm::SoATuple< TokenLookupInfo, bool, LabelPlacement, edm::KindOfType > m_tokenInfo
void modulesWhoseProductsAreConsumed(std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFromEvent() const
unsigned int recordConsumes(BranchType iBranch, TypeToGet const &iType, edm::InputTag const &iTag, bool iAlwaysGets)
void consumesMany(const TypeToGet &id)
EDGetToken mayConsume(const TypeToGet &id, edm::InputTag const &tag)
ProductResolverIndexAndSkipBit indexFrom(EDGetToken, BranchType, TypeID const &) const
bool registeredToConsume(ProductResolverIndex, bool, BranchType) const
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
unsigned short m_deltaToProductInstance
void itemsToGet(BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
ProductResolverIndexAndSkipBit m_index
std::vector< ProductResolverIndexAndSkipBit > itemsToGetFromEvent_
void throwBranchMismatch(BranchType, EDGetToken) const
EDGetToken mayConsume(const TypeToGet &id, edm::InputTag const &tag)
std::vector< char > m_tokenLabels
edm::InputTag const & checkIfEmpty(edm::InputTag const &tag)
EDConsumerBase const & operator=(EDConsumerBase const &)=delete
EDGetToken consumes(TypeToGet const &id, edm::InputTag const &tag)
bool registeredToConsumeMany(TypeID const &, BranchType) const
void itemsMayGet(BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
void labelsForToken(EDGetToken iToken, Labels &oLabels) const
TokenLookupInfo(edm::TypeID const &iID, ProductResolverIndex iIndex, bool skipCurrentProcess, BranchType iBranch)
virtual ~EDConsumerBase() noexcept(false)
EDGetTokenT< ProductType > mayConsume(edm::InputTag const &tag)
unsigned int m_startOfModuleLabel
EDGetToken consumes(const TypeToGet &id, edm::InputTag const &tag)