Go to the documentation of this file. 1 #ifndef FWCore_Framework_global_OutputModuleBase_h
2 #define FWCore_Framework_global_OutputModuleBase_h
47 class MergeableRunProductMetadata;
48 class ModuleCallingContext;
49 class PreallocationConfiguration;
51 class ProductRegistry;
52 class ThinnedAssociationsHelper;
70 friend class ::edm::WorkerT;
72 friend class ::edm::OutputModuleCommunicatorT;
155 std::map<
std::string, std::vector<std::pair<std::string, int>>>
const& outputModulePathPositions,
156 bool anyProductProduced);
192 std::vector<detail::TriggerResultsBasedEventSelector>
selectors_;
275 std::map<BranchID, BranchDescription const*>& trueBranchIDToKeptBranchDesc,
276 std::set<BranchID>& keptProductsInEvent);
void doRegisterThinnedAssociations(ProductRegistry const &, ThinnedAssociationsHelper &)
bool doBeginRun(RunPrincipal const &rp, EventSetupImpl const &c, ModuleCallingContext const *)
virtual void doBeginRun_(RunForOutput const &)
BranchIDLists const * branchIDLists() const
ProductSelectorRules productSelectorRules_
virtual void setProcessesWithSelectedMergeableRunProducts(std::set< std::string > const &)
virtual void doStreamEndRun_(StreamID, RunForOutput const &, EventSetup const &)
bool needToRunSelection() const
void updateBranchIDListsWithKeptAliases()
virtual void reallyCloseFile()
ModuleDescription const & description() const
ParameterSetID selector_config_id_
bool prePrefetchSelection(StreamID id, EventPrincipal const &, ModuleCallingContext const *)
void configure(OutputModuleDescription const &desc)
ParameterSetID selectorConfig() const
virtual void doBeginRunSummary_(RunForOutput const &, EventSetup const &)
int remainingEvents() const
virtual bool shouldWeCloseFile() const
Ask the OutputModule if we should end the current file.
static void fillDescriptions(ConfigurationDescriptions &descriptions)
virtual void doStreamBeginRun_(StreamID, RunForOutput const &, EventSetup const &)
std::map< BranchID::value_type, BranchID::value_type > const & droppedBranchIDToKeptBranchID()
virtual void doEndLuminosityBlock_(LuminosityBlockForOutput const &)
~OutputModuleBase() override
bool doBeginLuminosityBlock(LuminosityBlockPrincipal const &lbp, EventSetupImpl const &c, ModuleCallingContext const *)
virtual void preallocate(PreallocationConfiguration const &)
ModuleDescription moduleDescription_
virtual void doEndLuminosityBlockSummary_(LuminosityBlockForOutput const &, EventSetup const &)
BranchIDLists const * origBranchIDLists_
bool hasAccumulator() const
std::vector< ProductResolverIndexAndSkipBit > productsUsedBySelection() const
const ModuleDescription & moduleDescription() const
SelectedProductsForBranchType keptProducts_
OutputModuleBase & operator=(OutputModuleBase const &)=delete
void doPreallocate(PreallocationConfiguration const &)
void doBeginStream(StreamID id)
std::string workerType() const
virtual void doBeginLuminosityBlockSummary_(LuminosityBlockForOutput const &, EventSetup const &)
void doEndStream(StreamID id)
virtual void preallocStreams(unsigned int)
std::vector< BranchIDList > BranchIDLists
virtual void openFile(FileBlock const &)
void keepThisBranch(BranchDescription const &desc, std::map< BranchID, BranchDescription const * > &trueBranchIDToKeptBranchDesc, std::set< BranchID > &keptProductsInEvent)
virtual void doEndRun_(RunForOutput const &)
void doOpenFile(FileBlock const &fb)
void preActionBeforeRunEventAsync(WaitingTask *iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) const
virtual void doBeginStream_(StreamID)
virtual void doRespondToCloseInputFile_(FileBlock const &)
bool limitReached() const
virtual void doStreamBeginLuminosityBlock_(StreamID, LuminosityBlockForOutput const &, EventSetup const &)
virtual void doEndRunSummary_(RunForOutput const &, EventSetup const &)
void setEventSelectionInfo(std::map< std::string, std::vector< std::pair< std::string, int >>> const &outputModulePathPositions, bool anyProductProduced)
std::map< BranchID, bool > keepAssociation_
std::string const & processName() const
void selectProducts(ProductRegistry const &preg, ThinnedAssociationsHelper const &)
std::string process_name_
virtual void doRespondToOpenInputFile_(FileBlock const &)
void doWriteRun(RunPrincipal const &rp, ModuleCallingContext const *, MergeableRunProductMetadata const *)
static const std::string & baseType()
ParameterSet selectEvents_
bool wantAllEvents() const
void doStreamBeginRun(StreamID id, RunPrincipal &ep, EventSetupImpl const &c, ModuleCallingContext const *)
void registerProductsAndCallbacks(OutputModuleBase const *, ProductRegistry const *)
void doStreamEndRun(StreamID id, RunPrincipal &ep, EventSetupImpl const &c, ModuleCallingContext const *)
std::array< SelectedProducts, NumBranchTypes > SelectedProductsForBranchType
void doRespondToOpenInputFile(FileBlock const &fb)
bool wantsGlobalRuns() const
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
bool wantsGlobalLuminosityBlocks() const
ProductSelector productSelector_
void doCloseFile()
Tell the OutputModule that is must end the current file.
OutputModuleBase ModuleType
static void fillDescription(ParameterSetDescription &desc)
void doStreamBeginLuminosityBlock(StreamID id, LuminosityBlockPrincipal &ep, EventSetupImpl const &c, ModuleCallingContext const *)
OutputModuleBase(ParameterSet const &pset)
bool doEndLuminosityBlock(LuminosityBlockPrincipal const &lbp, EventSetupImpl const &c, ModuleCallingContext const *)
edm::propagate_const< std::unique_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
virtual void writeRun(RunForOutput const &)=0
virtual void writeLuminosityBlock(LuminosityBlockForOutput const &)=0
void doStreamEndLuminosityBlock(StreamID id, LuminosityBlockPrincipal &ep, EventSetupImpl const &c, ModuleCallingContext const *)
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
std::atomic< int > remainingEvents_
virtual void doStreamEndLuminosityBlock_(StreamID, LuminosityBlockForOutput const &, EventSetup const &)
bool selected(BranchDescription const &desc) const
virtual void doEndStream_(StreamID)
virtual bool isFileOpen() const
bool doEndRun(RunPrincipal const &rp, EventSetupImpl const &c, ModuleCallingContext const *)
virtual void doStreamEndLuminosityBlockSummary_(StreamID, LuminosityBlockForOutput const &, EventSetup const &)
edm::propagate_const< std::unique_ptr< BranchIDLists > > branchIDLists_
SelectedProductsForBranchType const & keptProducts() const
bool doEvent(EventPrincipal const &ep, EventSetupImpl const &c, ActivityRegistry *, ModuleCallingContext const *)
static void prevalidate(ConfigurationDescriptions &)
virtual void doBeginLuminosityBlock_(LuminosityBlockForOutput const &)
virtual bool wantsStreamRuns() const =0
void doRespondToCloseInputFile(FileBlock const &fb)
ThinnedAssociationsHelper const * thinnedAssociationsHelper() const
std::array< bool, NumBranchTypes > const & hasNewlyDroppedBranch() const
void setModuleDescription(ModuleDescription const &md)
virtual void preallocLumis(unsigned int)
std::vector< detail::TriggerResultsBasedEventSelector > selectors_
virtual bool wantsStreamLuminosityBlocks() const =0
void doWriteLuminosityBlock(LuminosityBlockPrincipal const &lbp, ModuleCallingContext const *)
virtual void write(EventForOutput const &)=0
virtual void doStreamEndRunSummary_(StreamID, RunForOutput const &, EventSetup const &)