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;
110 return subProcessParentageHelper_;
114 return moduleDescription_;
138 void setEventSelectionInfo(
std::map<
std::string, std::vector<std::pair<std::string, int> > >
const& outputModulePathPositions,
139 bool anyProductProduced);
144 return droppedBranchIDToKeptBranchID_;
176 std::vector<detail::TriggerResultsBasedEventSelector>
selectors_;
204 void doRespondToOpenInputFile(
FileBlock const&
fb);
205 void doRespondToCloseInputFile(
FileBlock const&
fb);
212 return resourcesAcquirer_;
220 bool needToRunSelection()
const;
221 std::vector<ProductResolverIndexAndSkipBit> productsUsedBySelection()
const;
226 virtual void reallyCloseFile();
252 std::map<BranchID, BranchDescription const*>& trueBranchIDToKeptBranchDesc,
253 std::set<BranchID>& keptProductsInEvent);
256 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_
bool wantsGlobalRuns() const
virtual void preActionBeforeRunEventAsync(WaitingTask *iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) const
void registerProductsAndCallbacks(OutputModuleBase const *, ProductRegistry const *)
bool wantsGlobalLuminosityBlocks() const
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()
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 void doEndLuminosityBlock_(LuminosityBlockForOutput const &)
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_