Go to the documentation of this file. 1 #ifndef FWCore_Framework_global_OutputModuleBase_h
2 #define FWCore_Framework_global_OutputModuleBase_h
50 class MergeableRunProductMetadata;
51 class ModuleCallingContext;
52 class PreallocationConfiguration;
54 class ThinnedAssociationsHelper;
71 friend class ::edm::WorkerT;
73 friend class ::edm::OutputModuleCommunicatorT;
154 bool anyProductProduced);
190 std::vector<detail::TriggerResultsBasedEventSelector>
selectors_;
279 std::map<BranchID, BranchDescription const*>& trueBranchIDToKeptBranchDesc,
280 std::set<BranchID>& keptProductsInEvent);
void doRegisterThinnedAssociations(ProductRegistry const &, ThinnedAssociationsHelper &)
virtual void doBeginRun_(RunForOutput const &)
BranchIDLists const * branchIDLists() const
ProductSelectorRules productSelectorRules_
bool doEndLuminosityBlock(LumiTransitionInfo const &, ModuleCallingContext const *)
void doEndProcessBlock(ProcessBlockPrincipal const &, ModuleCallingContext const *)
virtual void setProcessesWithSelectedMergeableRunProducts(std::set< std::string > const &)
virtual void doStreamEndRun_(StreamID, RunForOutput const &, EventSetup const &)
bool needToRunSelection() const
void updateBranchIDListsWithKeptAliases()
void doAccessInputProcessBlock(ProcessBlockPrincipal const &, ModuleCallingContext const *)
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.
void doAcquire(EventTransitionInfo const &, ActivityRegistry *, ModuleCallingContext const *, WaitingTaskWithArenaHolder &)
static void fillDescriptions(ConfigurationDescriptions &descriptions)
virtual void doStreamBeginRun_(StreamID, RunForOutput const &, EventSetup const &)
void doBeginProcessBlock(ProcessBlockPrincipal const &, ModuleCallingContext const *)
std::map< BranchID::value_type, BranchID::value_type > const & droppedBranchIDToKeptBranchID()
virtual void doEndLuminosityBlock_(LuminosityBlockForOutput const &)
~OutputModuleBase() override
bool doEndRun(RunTransitionInfo const &, ModuleCallingContext const *)
virtual void preallocate(PreallocationConfiguration const &)
virtual bool wantsProcessBlocks() const =0
ModuleDescription moduleDescription_
virtual void doEndLuminosityBlockSummary_(LuminosityBlockForOutput const &, EventSetup const &)
BranchIDLists const * origBranchIDLists_
bool hasAccumulator() const
std::vector< ProductResolverIndexAndSkipBit > productsUsedBySelection() const
virtual void writeProcessBlock(ProcessBlockForOutput const &)
virtual bool hasAcquire() 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 bool wantsInputProcessBlocks() const =0
virtual void doEndRun_(RunForOutput const &)
void doOpenFile(FileBlock const &fb)
virtual void doBeginStream_(StreamID)
virtual void doRespondToCloseInputFile_(FileBlock const &)
void selectProducts(ProductRegistry const &preg, ThinnedAssociationsHelper const &, ProcessBlockHelperBase 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_
void preActionBeforeRunEventAsync(WaitingTaskHolder iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) const
std::string const & processName() const
void doRespondToCloseOutputFile()
OutputProcessBlockHelper outputProcessBlockHelper_
std::string process_name_
virtual void doRespondToOpenInputFile_(FileBlock const &)
void doWriteRun(RunPrincipal const &rp, ModuleCallingContext const *, MergeableRunProductMetadata const *)
OutputProcessBlockHelper const & outputProcessBlockHelper() const
static const std::string & baseType()
ParameterSet selectEvents_
bool wantAllEvents() const
void registerProductsAndCallbacks(OutputModuleBase const *, ProductRegistry 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
bool doBeginLuminosityBlock(LumiTransitionInfo const &, ModuleCallingContext const *)
ProductSelector productSelector_
void doCloseFile()
Tell the OutputModule that is must end the current file.
void doWriteProcessBlock(ProcessBlockPrincipal const &, ModuleCallingContext const *)
OutputModuleBase ModuleType
static void fillDescription(ParameterSetDescription &desc)
OutputModuleBase(ParameterSet const &pset)
edm::propagate_const< std::unique_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
virtual void writeRun(RunForOutput const &)=0
virtual void writeLuminosityBlock(LuminosityBlockForOutput const &)=0
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 void doAcquire_(StreamID, EventForOutput const &, WaitingTaskWithArenaHolder &)
virtual bool isFileOpen() const
virtual void doStreamEndLuminosityBlockSummary_(StreamID, LuminosityBlockForOutput const &, EventSetup const &)
edm::propagate_const< std::unique_ptr< BranchIDLists > > branchIDLists_
SelectedProductsForBranchType const & keptProducts() const
static void prevalidate(ConfigurationDescriptions &)
virtual void doBeginLuminosityBlock_(LuminosityBlockForOutput const &)
virtual bool wantsStreamRuns() const =0
void doRespondToCloseInputFile(FileBlock const &fb)
ThinnedAssociationsHelper const * thinnedAssociationsHelper() const
bool doBeginRun(RunTransitionInfo const &, ModuleCallingContext 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 &)
bool doEvent(EventTransitionInfo const &, ActivityRegistry *, ModuleCallingContext const *)