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;
105 virtual bool wantsGlobalRuns()
const = 0;
106 virtual bool wantsGlobalLuminosityBlocks()
const = 0;
130 virtual void preallocLumis(
unsigned int);
144 void setEventSelectionInfo(
145 std::map<
std::string, std::vector<std::pair<std::string, int>>>
const& outputModulePathPositions,
146 bool anyProductProduced);
151 return droppedBranchIDToKeptBranchID_;
182 std::vector<detail::TriggerResultsBasedEventSelector>
selectors_;
212 void doRespondToOpenInputFile(
FileBlock const&
fb);
213 void doRespondToCloseInputFile(
FileBlock const&
fb);
223 bool needToRunSelection()
const;
224 std::vector<ProductResolverIndexAndSkipBit> productsUsedBySelection()
const;
229 virtual void reallyCloseFile();
259 std::map<BranchID, BranchDescription const*>& trueBranchIDToKeptBranchDesc,
260 std::set<BranchID>& keptProductsInEvent);
SubProcessParentageHelper const * subProcessParentageHelper() const
SharedResourcesAcquirer & sharedResourcesAcquirer()
bool wantAllEvents() const
std::vector< BranchIDList > BranchIDLists
SelectedProductsForBranchType keptProducts_
ModuleDescription moduleDescription_
ParameterSet selectEvents_
std::array< SelectedProducts, NumBranchTypes > SelectedProductsForBranchType
bool wantsStreamRuns() const
SubProcessParentageHelper const * subProcessParentageHelper_
virtual void preActionBeforeRunEventAsync(WaitingTask *iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) const
bool hasAccumulator() const
void registerProductsAndCallbacks(OutputModuleBase const *, ProductRegistry const *)
SerialTaskQueue luminosityBlockQueue_
ParameterSetID selectorConfig() const
virtual void doBeginLuminosityBlock_(LuminosityBlockForOutput const &)
ProductSelectorRules productSelectorRules_
virtual SerialTaskQueue * globalLuminosityBlocksQueue()
virtual void doRespondToCloseInputFile_(FileBlock const &)
virtual void doRespondToOpenInputFile_(FileBlock const &)
virtual void openFile(FileBlock const &)
int remainingEvents() const
virtual void doEndRun_(RunForOutput const &)
std::atomic< int > remainingEvents_
bool wantsStreamLuminosityBlocks() const
std::map< BranchID::value_type, BranchID::value_type > const & droppedBranchIDToKeptBranchID()
SelectedProductsForBranchType const & keptProducts() const
std::string workerType() const
OutputModuleBase ModuleType
edm::propagate_const< std::unique_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
std::array< bool, NumBranchTypes > const & hasNewlyDroppedBranch() const
SharedResourcesAcquirer resourcesAcquirer_
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
std::vector< detail::TriggerResultsBasedEventSelector > selectors_
void setModuleDescription(ModuleDescription const &md)
const ModuleDescription & moduleDescription() const
virtual SerialTaskQueue * globalRunsQueue()
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
virtual void doEndLuminosityBlock_(LuminosityBlockForOutput const &)
SerialTaskQueue runQueue_
void doRegisterThinnedAssociations(ProductRegistry const &, ThinnedAssociationsHelper &)
std::string const & processName() const
virtual void doBeginRun_(RunForOutput const &)
std::string process_name_
BranchIDLists const * origBranchIDLists_
virtual void setProcessesWithSelectedMergeableRunProducts(std::set< std::string > const &)
virtual bool shouldWeCloseFile() const
Ask the OutputModule if we should end the current file.
virtual bool isFileOpen() const
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
ProductSelector productSelector_
ParameterSetID selector_config_id_
edm::propagate_const< std::unique_ptr< BranchIDLists > > branchIDLists_
bool limitReached() const
std::map< BranchID, bool > keepAssociation_