1 #ifndef FWCore_Framework_stream_ProducingModuleAdaptorBase_h
2 #define FWCore_Framework_stream_ProducingModuleAdaptorBase_h
25 #include <unordered_map>
48 class ModuleCallingContext;
49 class ModuleProcessName;
50 class ProductResolverIndexHelper;
52 class PreallocationConfiguration;
53 class ProductResolverIndexAndSkipBit;
54 class ThinnedAssociationsHelper;
61 namespace eventsetup {
67 class ProducingModuleAdaptorBase {
109 std::vector<ModuleProcessName>& modulesInPreviousProcesses,
111 std::map<std::string, ModuleDescription const*>
const& labelsToDesc,
119 std::unordered_multimap<std::string, std::tuple<edm::TypeID const*, const char*, edm::ProductResolverIndex>>;
128 template <
typename F>
130 unsigned int iStreamModule = 0;
132 m = iFunc(iStreamModule);
143 template <
typename I>
void doStreamEndLuminosityBlock(StreamID, LumiTransitionInfo const &, ModuleCallingContext const *)
ModuleDescription moduleDescription_
virtual void selectInputProcessBlocks(ProductRegistry const &, ProcessBlockHelperBase const &)=0
virtual void streamEndRunSummary(T *, edm::Run const &, edm::EventSetup const &)=0
std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> ModuleToResolverIndicies
virtual void doBeginJob()=0
void doRegisterThinnedAssociations(ProductRegistry const &, ThinnedAssociationsHelper &)
void doRespondToOpenInputFile(FileBlock const &)
void itemsToGet(BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
virtual void preallocLumis(unsigned int)
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom(BranchType) const
void commit_(std::vector< edm::ProductResolverIndex > const &iShouldPut)
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
virtual void doEndProcessBlock(ProcessBlockPrincipal const &, ModuleCallingContext const *)=0
void doPreallocate(PreallocationConfiguration const &)
const ProducerBase * producer()
virtual void doEndLuminosityBlock(LumiTransitionInfo const &, ModuleCallingContext const *)=0
std::vector< ConsumesInfo > consumesInfo() const
virtual void doBeginLuminosityBlock(LumiTransitionInfo const &, ModuleCallingContext const *)=0
void doRespondToCloseInputFile(FileBlock const &)
virtual bool hasAccumulator() const =0
virtual bool wantsGlobalLuminosityBlocks() const =0
const EDConsumerBase * consumer()
virtual ~ProducingModuleAdaptorBase()
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts(BranchType iBranchType) const
virtual void setupRun(T *, RunIndex)=0
void registerProductsAndCallbacks(ProducingModuleAdaptorBase const *, ProductRegistry *reg)
void commit_(std::vector< edm::ProductResolverIndex > const &iShouldPut)
void setModuleDescription(ModuleDescription const &md)
void doStreamBeginRun(StreamID, RunTransitionInfo const &, ModuleCallingContext const *)
virtual void streamEndLuminosityBlockSummary(T *, edm::LuminosityBlock const &, edm::EventSetup const &)=0
std::vector< ESProxyIndex > const & esGetTokenIndicesVector(edm::Transition iTrans) const
void updateLookup(BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
void commit(ProcessBlock &iProcessBlock)
const ProducingModuleAdaptorBase & operator=(const ProducingModuleAdaptorBase &)=delete
virtual void doBeginProcessBlock(ProcessBlockPrincipal const &, ModuleCallingContext const *)=0
void createStreamModules(F iFunc)
const std::complex< double > I
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector(edm::Transition iTrans) const
ProducingModuleAdaptorBase()
virtual void doBeginRun(RunTransitionInfo const &, ModuleCallingContext const *)=0
virtual bool wantsInputProcessBlocks() const =0
bool wantsStreamRuns() const
virtual void doAccessInputProcessBlock(ProcessBlockPrincipal const &, ModuleCallingContext const *)=0
virtual bool wantsProcessBlocks() const =0
const ModuleDescription & moduleDescription() const
void convertCurrentProcessAlias(std::string const &processName)
void commit_(std::vector< edm::ProductResolverIndex > const &iShouldPut, ParentageID *previousParentageId=nullptr)
virtual void setupLuminosityBlock(T *, LuminosityBlockIndex)=0
void modulesWhoseProductsAreConsumed(std::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modules, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
void resolvePutIndicies(BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
virtual void doEndRun(RunTransitionInfo const &, ModuleCallingContext const *)=0
virtual bool wantsGlobalRuns() const =0
virtual void doRespondToCloseOutputFile()=0
virtual void setupStreamModules()=0
void commit(LuminosityBlock &iLumi)
void doStreamEndRun(StreamID, RunTransitionInfo const &, ModuleCallingContext const *)
bool wantsStreamLuminosityBlocks() const
std::vector< T * > m_streamModules
void itemsMayGet(BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
virtual bool hasAcquire() const =0
void commit(Event &iEvent, I *iID)
void deleteModulesEarly()
void doStreamBeginLuminosityBlock(StreamID, LumiTransitionInfo const &, ModuleCallingContext const *)
void commit_(std::vector< edm::ProductResolverIndex > const &iShouldPut)
void doEndStream(StreamID)
void doBeginStream(StreamID)
virtual void doEndJob()=0