Go to the documentation of this file. 1 #ifndef FWCore_Framework_one_OutputModuleBase_h
2 #define FWCore_Framework_one_OutputModuleBase_h
49 class MergeableRunProductMetadata;
50 class ModuleCallingContext;
51 class PreallocationConfiguration;
53 class ProductRegistry;
54 class ThinnedAssociationsHelper;
55 class SubProcessParentageHelper;
59 class OutputModuleCommunicatorT;
73 friend class ::edm::WorkerT;
75 friend class ::edm::OutputModuleCommunicatorT;
147 std::map<
std::string, std::vector<std::pair<std::string, int>>>
const& outputModulePathPositions,
148 bool anyProductProduced);
184 std::vector<detail::TriggerResultsBasedEventSelector>
selectors_;
261 std::map<BranchID, BranchDescription const*>& trueBranchIDToKeptBranchDesc,
262 std::set<BranchID>& keptProductsInEvent);
SelectedProductsForBranchType keptProducts_
int remainingEvents() const
const ModuleDescription & moduleDescription() const
bool doBeginLuminosityBlock(LuminosityBlockPrincipal const &lbp, EventSetupImpl const &c, ModuleCallingContext const *)
void setModuleDescription(ModuleDescription const &md)
void doRegisterThinnedAssociations(ProductRegistry const &, ThinnedAssociationsHelper &)
OutputModuleBase ModuleType
virtual void doBeginRun_(RunForOutput const &)
SubProcessParentageHelper const * subProcessParentageHelper() const
virtual bool isFileOpen() const
ModuleDescription moduleDescription_
virtual SerialTaskQueue * globalLuminosityBlocksQueue()
ProductSelector productSelector_
bool doEndLuminosityBlock(LuminosityBlockPrincipal const &lbp, EventSetupImpl const &c, ModuleCallingContext const *)
virtual void doEndLuminosityBlock_(LuminosityBlockForOutput const &)
static const std::vector< std::string > & defaultSelectionStrings()
static void prevalidate(ConfigurationDescriptions &)
bool needToRunSelection() const
SerialTaskQueue runQueue_
void doRespondToOpenInputFile(FileBlock const &fb)
std::atomic< int > remainingEvents_
void selectProducts(ProductRegistry const &preg, ThinnedAssociationsHelper const &)
virtual bool wantsGlobalRuns() const =0
static void fillDescriptions(ConfigurationDescriptions &descriptions)
virtual void doBeginLuminosityBlock_(LuminosityBlockForOutput const &)
ThinnedAssociationsHelper const * thinnedAssociationsHelper() const
bool doEvent(EventPrincipal const &ep, EventSetupImpl const &c, ActivityRegistry *, ModuleCallingContext const *)
static const std::string & baseType()
bool doBeginRun(RunPrincipal const &rp, EventSetupImpl const &c, ModuleCallingContext const *)
OutputModuleBase(ParameterSet const &pset)
SharedResourcesAcquirer & sharedResourcesAcquirer()
virtual void preActionBeforeRunEventAsync(WaitingTask *iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) const
virtual void doRespondToCloseInputFile_(FileBlock const &)
bool doEndRun(RunPrincipal const &rp, EventSetupImpl const &c, ModuleCallingContext const *)
ParameterSetID selectorConfig() const
std::map< BranchID, bool > keepAssociation_
virtual void writeRun(RunForOutput const &)=0
SubProcessParentageHelper const * subProcessParentageHelper_
ProductSelectorRules productSelectorRules_
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
bool wantAllEvents() const
void doPreallocate(PreallocationConfiguration const &)
virtual void setProcessesWithSelectedMergeableRunProducts(std::set< std::string > const &)
static void fillDescription(ParameterSetDescription &desc, std::vector< std::string > const &iDefaultOutputCommands=ProductSelectorRules::defaultSelectionStrings())
virtual void doRespondToOpenInputFile_(FileBlock const &)
void doCloseFile()
Tell the OutputModule that is must end the current file.
~OutputModuleBase() override
void doWriteLuminosityBlock(LuminosityBlockPrincipal const &lbp, ModuleCallingContext const *)
virtual bool wantsGlobalLuminosityBlocks() const =0
BranchIDLists const * origBranchIDLists_
std::vector< BranchIDList > BranchIDLists
std::string process_name_
ParameterSet selectEvents_
edm::propagate_const< std::unique_ptr< BranchIDLists > > branchIDLists_
SharedResourcesAcquirer resourcesAcquirer_
virtual void openFile(FileBlock const &)
SelectedProductsForBranchType const & keptProducts() const
BranchIDLists const * branchIDLists()
void registerProductsAndCallbacks(OutputModuleBase const *, ProductRegistry const *)
void doOpenFile(FileBlock const &fb)
SerialTaskQueue luminosityBlockQueue_
ParameterSetID selector_config_id_
std::string const & processName() const
void keepThisBranch(BranchDescription const &desc, std::map< BranchID, BranchDescription const * > &trueBranchIDToKeptBranchDesc, std::set< BranchID > &keptProductsInEvent)
virtual void preallocLumis(unsigned int)
ModuleDescription const & description() const
std::array< SelectedProducts, NumBranchTypes > SelectedProductsForBranchType
void doWriteRun(RunPrincipal const &rp, ModuleCallingContext const *, MergeableRunProductMetadata const *)
virtual SharedResourcesAcquirer createAcquirer()
std::vector< detail::TriggerResultsBasedEventSelector > selectors_
void configure(OutputModuleDescription const &desc)
virtual void writeLuminosityBlock(LuminosityBlockForOutput const &)=0
bool wantsStreamLuminosityBlocks() const
virtual bool shouldWeCloseFile() const
Ask the OutputModule if we should end the current file.
std::map< BranchID::value_type, BranchID::value_type > const & droppedBranchIDToKeptBranchID()
std::array< bool, NumBranchTypes > const & hasNewlyDroppedBranch() const
std::vector< ProductResolverIndexAndSkipBit > productsUsedBySelection() const
bool hasAccumulator() const
OutputModuleBase & operator=(OutputModuleBase const &)=delete
bool prePrefetchSelection(StreamID id, EventPrincipal const &, ModuleCallingContext const *)
virtual void doEndRun_(RunForOutput const &)
virtual void write(EventForOutput const &)=0
bool limitReached() const
virtual void reallyCloseFile()
virtual SerialTaskQueue * globalRunsQueue()
std::string workerType() const
bool selected(BranchDescription const &desc) const
bool wantsStreamRuns() const
void doRespondToCloseInputFile(FileBlock const &fb)
edm::propagate_const< std::unique_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
void setEventSelectionInfo(std::map< std::string, std::vector< std::pair< std::string, int >>> const &outputModulePathPositions, bool anyProductProduced)