1 #ifndef FWCore_Framework_one_OutputModuleBase_h 2 #define FWCore_Framework_one_OutputModuleBase_h 48 class ModuleCallingContext;
49 class PreallocationConfiguration;
51 class ProductRegistry;
52 class ThinnedAssociationsHelper;
53 class SubProcessParentageHelper;
56 template <
typename T>
class OutputModuleCommunicatorT;
59 template<
typename T>
class ModuleHolderT;
67 template <
typename T>
friend class ::edm::WorkerT;
68 template <
typename T>
friend class ::edm::OutputModuleCommunicatorT;
98 virtual bool wantsGlobalRuns()
const = 0;
99 virtual bool wantsGlobalLuminosityBlocks()
const = 0;
106 return resourcesAcquirer_;
116 return subProcessParentageHelper_;
120 return moduleDescription_;
144 void setEventSelectionInfo(
std::map<
std::string, std::vector<std::pair<std::string, int> > >
const& outputModulePathPositions,
145 bool anyProductProduced);
150 return droppedBranchIDToKeptBranchID_;
182 std::vector<detail::TriggerResultsBasedEventSelector>
selectors_;
212 void doRespondToOpenInputFile(
FileBlock const&
fb);
213 void doRespondToCloseInputFile(
FileBlock const&
fb);
224 bool needToRunSelection()
const;
225 std::vector<ProductResolverIndexAndSkipBit> productsUsedBySelection()
const;
230 virtual void reallyCloseFile();
257 std::map<BranchID, BranchDescription const*>& trueBranchIDToKeptBranchDesc,
258 std::set<BranchID>& keptProductsInEvent);
261 moduleDescription_ = md;
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 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()
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
SelectedProductsForBranchType const & keptProducts() const
SerialTaskQueue * globalRunsQueue()
std::string workerType() const
OutputModuleBase ModuleType
edm::propagate_const< std::unique_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
std::array< bool, NumBranchTypes > const & hasNewlyDroppedBranch() const
SharedResourcesAcquirer resourcesAcquirer_
SerialTaskQueue * globalLuminosityBlocksQueue()
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
std::vector< detail::TriggerResultsBasedEventSelector > selectors_
void setModuleDescription(ModuleDescription const &md)
const ModuleDescription & moduleDescription() const
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 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_