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;
113 virtual bool wantsStreamRuns()
const = 0;
114 virtual bool wantsStreamLuminosityBlocks()
const = 0;
130 void doStreamBeginLuminosityBlock(
StreamID id,
134 void doStreamEndLuminosityBlock(
StreamID id,
154 void setEventSelectionInfo(
155 std::map<
std::string, std::vector<std::pair<std::string, int>>>
const& outputModulePathPositions,
156 bool anyProductProduced);
161 return droppedBranchIDToKeptBranchID_;
192 std::vector<detail::TriggerResultsBasedEventSelector>
selectors_;
211 void updateBranchIDListsWithKeptAliases();
216 void doRespondToOpenInputFile(
FileBlock const&
fb);
217 void doRespondToCloseInputFile(
FileBlock const&
fb);
227 bool needToRunSelection()
const;
228 std::vector<ProductResolverIndexAndSkipBit> productsUsedBySelection()
const;
233 virtual void reallyCloseFile();
275 std::map<BranchID, BranchDescription const*>& trueBranchIDToKeptBranchDesc,
276 std::set<BranchID>& keptProductsInEvent);
virtual void doEndRunSummary_(RunForOutput const &, EventSetup const &)
std::string process_name_
virtual void preallocate(PreallocationConfiguration const &)
SelectedProductsForBranchType const & keptProducts() const
BranchIDLists const * origBranchIDLists_
std::string workerType() const
virtual void setProcessesWithSelectedMergeableRunProducts(std::set< std::string > const &)
virtual void doStreamEndRun_(StreamID, RunForOutput const &, EventSetup const &)
void setModuleDescription(ModuleDescription const &md)
std::vector< BranchIDList > BranchIDLists
virtual void preallocStreams(unsigned int)
virtual bool isFileOpen() const
std::array< SelectedProducts, NumBranchTypes > SelectedProductsForBranchType
bool wantsGlobalRuns() const
virtual void doEndLuminosityBlockSummary_(LuminosityBlockForOutput const &, EventSetup const &)
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
OutputModuleBase ModuleType
std::vector< detail::TriggerResultsBasedEventSelector > selectors_
virtual void openFile(FileBlock const &)
virtual void doBeginStream_(StreamID)
ParameterSetID selector_config_id_
virtual void doRespondToOpenInputFile_(FileBlock const &)
virtual void doStreamBeginRun_(StreamID, RunForOutput const &, EventSetup const &)
std::string const & processName() const
SelectedProductsForBranchType keptProducts_
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
void registerProductsAndCallbacks(OutputModuleBase const *, ProductRegistry const *)
ParameterSet selectEvents_
void doRegisterThinnedAssociations(ProductRegistry const &, ThinnedAssociationsHelper &)
void preActionBeforeRunEventAsync(WaitingTask *iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) const
ModuleDescription moduleDescription_
int remainingEvents() const
edm::propagate_const< std::unique_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
virtual void doEndStream_(StreamID)
std::map< BranchID, bool > keepAssociation_
bool wantsGlobalLuminosityBlocks() const
virtual void doBeginLuminosityBlock_(LuminosityBlockForOutput const &)
const ModuleDescription & moduleDescription() const
edm::propagate_const< std::unique_ptr< BranchIDLists > > branchIDLists_
virtual void doStreamEndLuminosityBlock_(StreamID, LuminosityBlockForOutput const &, EventSetup const &)
std::array< bool, NumBranchTypes > const & hasNewlyDroppedBranch() const
virtual void doStreamEndLuminosityBlockSummary_(StreamID, LuminosityBlockForOutput const &, EventSetup const &)
bool limitReached() const
ProductSelector productSelector_
virtual void doEndRun_(RunForOutput const &)
virtual void preallocLumis(unsigned int)
ParameterSetID selectorConfig() const
ProductSelectorRules productSelectorRules_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
bool wantAllEvents() const
std::atomic< int > remainingEvents_
virtual void doEndLuminosityBlock_(LuminosityBlockForOutput const &)
bool hasAccumulator() const
virtual void doBeginRun_(RunForOutput 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()
virtual void doStreamEndRunSummary_(StreamID, RunForOutput const &, EventSetup const &)
virtual void doRespondToCloseInputFile_(FileBlock const &)
virtual void doBeginRunSummary_(RunForOutput const &, EventSetup const &)
virtual void doBeginLuminosityBlockSummary_(LuminosityBlockForOutput const &, EventSetup const &)
virtual void doStreamBeginLuminosityBlock_(StreamID, LuminosityBlockForOutput const &, EventSetup const &)