Go to the documentation of this file. 1 #ifndef FWCore_Framework_stream_ProducingModuleAdaptorBase_h
2 #define FWCore_Framework_stream_ProducingModuleAdaptorBase_h
25 #include <unordered_map>
45 class ModuleCallingContext;
46 class ProductResolverIndexHelper;
48 class PreallocationConfiguration;
49 class ProductResolverIndexAndSkipBit;
50 class ProductRegistry;
51 class ThinnedAssociationsHelper;
58 namespace eventsetup {
64 class ProducingModuleAdaptorBase {
99 std::map<std::string, ModuleDescription const*>
const& labelsToDesc,
107 std::unordered_multimap<std::string, std::tuple<edm::TypeID const*, const char*, edm::ProductResolverIndex>>;
116 template <
typename F>
126 template <
typename I>
virtual void streamEndRunSummary(T *, edm::Run const &, edm::EventSetup const &)=0
virtual void setupRun(T *, RunIndex)=0
void resolvePutIndicies(BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
virtual void streamEndLuminosityBlockSummary(T *, edm::LuminosityBlock const &, edm::EventSetup const &)=0
void doStreamBeginRun(StreamID id, RunPrincipal const &ep, EventSetupImpl const &c, ModuleCallingContext const *)
void itemsMayGet(BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
void registerProductsAndCallbacks(ProducingModuleAdaptorBase const *, ProductRegistry *reg)
void itemsToGet(BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
virtual ~ProducingModuleAdaptorBase()
void commit_(std::vector< edm::ProductResolverIndex > const &iShouldPut)
void modulesWhoseProductsAreConsumed(std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
ProducingModuleAdaptorBase()
ModuleDescription moduleDescription_
void updateLookup(BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
std::vector< T * > m_streamModules
virtual void doEndJob()=0
virtual void doBeginLuminosityBlock(LuminosityBlockPrincipal const &lbp, EventSetupImpl const &c, ModuleCallingContext const *)=0
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts(BranchType iBranchType) const
virtual void doBeginRun(RunPrincipal const &rp, EventSetupImpl const &c, ModuleCallingContext const *)=0
void doRespondToCloseInputFile(FileBlock const &fb)
void createStreamModules(F iFunc)
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
virtual bool wantsGlobalLuminosityBlocks() const =0
void doBeginStream(StreamID id)
const std::complex< double > I
virtual bool hasAccumulator() const =0
const EDConsumerBase * consumer()
virtual void doEndLuminosityBlock(LuminosityBlockPrincipal const &lbp, EventSetupImpl const &c, ModuleCallingContext const *)=0
void doPreallocate(PreallocationConfiguration const &)
virtual void preallocLumis(unsigned int)
virtual bool wantsGlobalRuns() const =0
virtual bool hasAcquire() const =0
virtual void setupStreamModules()=0
const ProducerBase * producer()
void doEndStream(StreamID id)
void commit(LuminosityBlock &iLumi)
void commit_(std::vector< edm::ProductResolverIndex > const &iShouldPut)
virtual void setupLuminosityBlock(T *, LuminosityBlockIndex)=0
std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > > ModuleToResolverIndicies
bool wantsStreamRuns() const
void doRegisterThinnedAssociations(ProductRegistry const &, ThinnedAssociationsHelper &)
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom(BranchType) const
void setModuleDescription(ModuleDescription const &md)
virtual void doEndRun(RunPrincipal const &rp, EventSetupImpl const &c, ModuleCallingContext const *)=0
bool wantsStreamLuminosityBlocks() const
void commit(Event &iEvent, I *iID)
std::vector< ConsumesInfo > consumesInfo() const
const ModuleDescription & moduleDescription() const
void doRespondToOpenInputFile(FileBlock const &fb)
void doStreamBeginLuminosityBlock(StreamID id, LuminosityBlockPrincipal const &ep, EventSetupImpl const &c, ModuleCallingContext const *)
void doStreamEndRun(StreamID id, RunPrincipal const &ep, EventSetupImpl const &c, ModuleCallingContext const *)
void doStreamEndLuminosityBlock(StreamID id, LuminosityBlockPrincipal const &ep, EventSetupImpl const &c, ModuleCallingContext const *)
const ProducingModuleAdaptorBase & operator=(const ProducingModuleAdaptorBase &)=delete
void convertCurrentProcessAlias(std::string const &processName)
virtual void doBeginJob()=0