1 #ifndef FWCore_Framework_stream_EDAnalyzerAdaptorBase_h 2 #define FWCore_Framework_stream_EDAnalyzerAdaptorBase_h 40 class ModuleCallingContext;
41 class ProductResolverIndexHelper;
43 class PreallocationConfiguration;
44 class ProductResolverIndexAndSkipBit;
46 class ProductRegistry;
47 class ThinnedAssociationsHelper;
55 namespace eventsetup {
79 virtual bool wantsGlobalRuns()
const = 0;
80 virtual bool wantsGlobalLuminosityBlocks()
const = 0;
90 for (
auto&
m : m_streamModules) {
92 setModuleDescriptionPtr(
m);
97 void itemsToGet(
BranchType, std::vector<ProductResolverIndexAndSkipBit>&)
const;
98 void itemsMayGet(
BranchType, std::vector<ProductResolverIndexAndSkipBit>&)
const;
99 std::vector<ProductResolverIndexAndSkipBit>
const& itemsToGetFrom(
BranchType)
const;
106 void modulesWhoseProductsAreConsumed(std::vector<ModuleDescription const*>&
modules,
108 std::map<std::string, ModuleDescription const*>
const& labelsToDesc,
111 void convertCurrentProcessAlias(
std::string const& processName);
113 std::vector<ConsumesInfo> consumesInfo()
const;
129 virtual void setupStreamModules() = 0;
131 virtual void doEndJob() = 0;
140 void doStreamBeginLuminosityBlock(
StreamID id,
145 void doStreamEndLuminosityBlock(
StreamID id,
163 void doRespondToOpenInputFile(
FileBlock const&
fb);
164 void doRespondToCloseInputFile(
FileBlock const& fb);
void registerProductsAndCallbacks(ProductRegistry *iReg) override
std::vector< EDAnalyzerBase * > m_streamModules
std::string workerType() const
bool wantsStreamLuminosityBlocks() const
bool wantsStreamRuns() const
bool hasAccumulator() const
void preActionBeforeRunEventAsync(WaitingTask *iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) const
void doRegisterThinnedAssociations(ProductRegistry const &, ThinnedAssociationsHelper &)
void createStreamModules(T iFunc)
const ModuleDescription & moduleDescription() const
void setModuleDescription(ModuleDescription const &md)
virtual void preallocLumis(unsigned int)
ModuleDescription moduleDescription_