1 #ifndef FWCore_Framework_global_EDAnalyzerBase_h 2 #define FWCore_Framework_global_EDAnalyzerBase_h 32 class ModuleCallingContext;
33 class PreallocationConfiguration;
36 class ProductRegistry;
37 class ThinnedAssociationsHelper;
65 virtual bool wantsGlobalRuns()
const = 0;
66 virtual bool wantsGlobalLuminosityBlocks()
const = 0;
67 virtual bool wantsStreamRuns()
const = 0;
68 virtual bool wantsStreamLuminosityBlocks()
const = 0;
71 callWhenNewProductsRegistered_ =
func;
89 void doStreamBeginLuminosityBlock(
StreamID id,
93 void doStreamEndLuminosityBlock(
StreamID id,
108 void doRespondToOpenInputFile(
FileBlock const&
fb);
109 void doRespondToCloseInputFile(
FileBlock const& fb);
119 virtual void preallocStreams(
unsigned int);
120 virtual void preallocLumis(
unsigned int);
122 virtual void doBeginStream_(
StreamID id);
123 virtual void doEndStream_(
StreamID id);
131 virtual void doBeginRun_(
Run const& rp,
EventSetup const& c);
132 virtual void doBeginRunSummary_(
Run const& rp,
EventSetup const& c);
133 virtual void doEndRunSummary_(
Run const& rp,
EventSetup const& c);
void registerProductsAndCallbacks(ProductRegistry *iReg) override
void callWhenNewProductsRegistered(std::function< void(BranchDescription const &)> const &func)
void preallocate(PreallocationConfiguration const &iPrealloc) override
void doRegisterThinnedAssociations(ProductRegistry const &, ThinnedAssociationsHelper &)
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
std::function< void(BranchDescription const &)> callWhenNewProductsRegistered_
ModuleDescription moduleDescription_
EDAnalyzerBase ModuleType
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::string workerType() const
void preActionBeforeRunEventAsync(WaitingTask *iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) const
void setModuleDescription(ModuleDescription const &md)
bool hasAccumulator() const
ModuleDescription const & moduleDescription() const