1 #ifndef FWCore_Framework_OutputModule_h 2 #define FWCore_Framework_OutputModule_h 38 class ModuleCallingContext;
39 class PreallocationConfiguration;
41 class ProductRegistry;
42 class ThinnedAssociationsHelper;
46 template<
typename T>
class ModuleHolderT;
54 template <
typename T>
friend class WorkerT;
123 void setEventSelectionInfo(
std::map<
std::string, std::vector<std::pair<std::string, int> > >
const& outputModulePathPositions,
124 bool anyProductProduced);
129 return droppedBranchIDToKeptBranchID_;
161 std::vector<detail::TriggerResultsBasedEventSelector>
selectors_;
184 void doRespondToOpenInputFile(
FileBlock const&
fb);
185 void doRespondToCloseInputFile(
FileBlock const&
fb);
186 void doPreForkReleaseResources();
187 void doPostForkReacquireResources(
unsigned int iChildIndex,
unsigned int iNumberOfChildren);
194 return resourceAcquirer_;
202 void maybeOpenFile();
207 virtual void reallyCloseFile();
236 std::map<BranchID, BranchDescription const*>& trueBranchIDToKeptBranchDesc,
237 std::set<BranchID>& keptProductsInEvent);
240 moduleDescription_ = md;
void setModuleDescription(ModuleDescription const &md)
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
virtual void endRun(RunForOutput const &)
std::vector< BranchIDList > BranchIDLists
ParameterSet selectEvents_
static const std::vector< std::string > & defaultSelectionStrings()
ModuleDescription moduleDescription_
std::map< BranchID, bool > keepAssociation_
std::array< SelectedProducts, NumBranchTypes > SelectedProductsForBranchType
SharedResourcesAcquirer & sharedResourcesAcquirer()
int remainingEvents() const
SharedResourcesAcquirer resourceAcquirer_
virtual void beginRun(RunForOutput const &)
edm::propagate_const< std::unique_ptr< BranchIDLists > > branchIDLists_
std::string const & processName() const
virtual void reallyOpenFile()
edm::propagate_const< std::unique_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
BranchIDLists const * origBranchIDLists_
detail::TriggerResultsBasedEventSelector::handle_t Trig
SelectedProductsForBranchType const & keptProducts() const
bool wantAllEvents() const
std::string process_name_
void preActionBeforeRunEventAsync(WaitingTask *iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) const
std::map< BranchID::value_type, BranchID::value_type > const & droppedBranchIDToKeptBranchID()
virtual bool isFileOpen() const
virtual bool shouldWeCloseFile() const
Ask the OutputModule if we should end the current file.
virtual void postForkReacquireResources(unsigned int, unsigned int)
virtual void endLuminosityBlock(LuminosityBlockForOutput const &)
virtual void beginLuminosityBlock(LuminosityBlockForOutput const &)
std::array< bool, NumBranchTypes > const & hasNewlyDroppedBranch() const
virtual void respondToOpenInputFile(FileBlock const &)
bool limitReached() const
std::vector< detail::TriggerResultsBasedEventSelector > selectors_
SelectedProductsForBranchType keptProducts_
ProductSelector productSelector_
ProductSelectorRules productSelectorRules_
std::string workerType() const
virtual void respondToCloseInputFile(FileBlock const &)
virtual void openFile(FileBlock const &)
void doRegisterThinnedAssociations(ProductRegistry const &, ThinnedAssociationsHelper &)
ModuleDescription const & moduleDescription() const
std::atomic< int > remainingEvents_
virtual void preForkReleaseResources()
ParameterSetID selectorConfig() const
void registerProductsAndCallbacks(OutputModule const *, ProductRegistry const *)
ParameterSetID selector_config_id_