1 #ifndef FWCore_Framework_OutputModule_h
2 #define FWCore_Framework_OutputModule_h
40 class ModuleCallingContext;
41 class PreallocationConfiguration;
43 class ProductRegistry;
44 class ThinnedAssociationsHelper;
47 template<
typename T>
class ModuleHolderT;
55 template <
typename T>
friend class WorkerT;
124 bool anyProductProduced);
161 std::vector<detail::TriggerResultsBasedEventSelector>
selectors_;
238 std::map<BranchID, BranchDescription const*>& trueBranchIDToKeptBranchDesc,
239 std::set<BranchID>& keptProductsInEvent);
void setModuleDescription(ModuleDescription const &md)
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
void doPostForkReacquireResources(unsigned int iChildIndex, unsigned int iNumberOfChildren)
void keepThisBranch(BranchDescription const &desc, std::map< BranchID, BranchDescription const * > &trueBranchIDToKeptBranchDesc, std::set< BranchID > &keptProductsInEvent)
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
std::vector< BranchIDList > BranchIDLists
virtual void writeLuminosityBlock(LuminosityBlockPrincipal const &, ModuleCallingContext const *)=0
ParameterSet selectEvents_
virtual void write(EventPrincipal const &e, ModuleCallingContext const *)=0
ModuleDescription moduleDescription_
std::map< BranchID, bool > keepAssociation_
static boost::mutex mutex
void doPreallocate(PreallocationConfiguration const &)
int remainingEvents() const
SharedResourcesAcquirer resourceAcquirer_
virtual void reallyCloseFile()
std::string const & processName() const
bool prePrefetchSelection(StreamID id, EventPrincipal const &, ModuleCallingContext const *)
virtual void reallyOpenFile()
static const std::string & baseType()
std::map< BranchID, std::set< ParentageID > > BranchParents
void updateBranchParents(EventPrincipal const &ep)
void doWriteLuminosityBlock(LuminosityBlockPrincipal const &lbp, ModuleCallingContext const *mcc)
void doOpenFile(FileBlock const &fb)
bool selected(BranchDescription const &desc) const
BranchIDLists const * origBranchIDLists_
detail::TriggerResultsBasedEventSelector::handle_t Trig
SelectedProductsForBranchType const & keptProducts() const
void doCloseFile()
Tell the OutputModule that is must end the current file.
virtual void endLuminosityBlock(LuminosityBlockPrincipal const &, ModuleCallingContext const *)
bool wantAllEvents() const
void setEventSelectionInfo(std::map< std::string, std::vector< std::pair< std::string, int > > > const &outputModulePathPositions, bool anyProductProduced)
std::string process_name_
static void fillDescriptions(ConfigurationDescriptions &descriptions)
void doWriteRun(RunPrincipal const &rp, ModuleCallingContext const *mcc)
virtual void beginLuminosityBlock(LuminosityBlockPrincipal const &, ModuleCallingContext const *)
std::map< BranchID::value_type, BranchID::value_type > const & droppedBranchIDToKeptBranchID()
bool doEvent(EventPrincipal const &ep, EventSetup const &c, ActivityRegistry *act, ModuleCallingContext const *mcc)
void doPreForkReleaseResources()
std::unique_ptr< BranchIDLists > branchIDLists_
bool doEndLuminosityBlock(LuminosityBlockPrincipal const &lbp, EventSetup const &c, ModuleCallingContext const *mcc)
virtual bool isFileOpen() const
virtual bool shouldWeCloseFile() const
Ask the OutputModule if we should end the current file.
void doRespondToCloseInputFile(FileBlock const &fb)
OutputModule & operator=(OutputModule const &)=delete
bool doBeginLuminosityBlock(LuminosityBlockPrincipal const &lbp, EventSetup const &c, ModuleCallingContext const *mcc)
void fillDependencyGraph()
std::unique_ptr< ThinnedAssociationsHelper > thinnedAssociationsHelper_
virtual void postForkReacquireResources(unsigned int, unsigned int)
void selectProducts(ProductRegistry const &preg, ThinnedAssociationsHelper const &)
static void prevalidate(ConfigurationDescriptions &)
BranchChildren const & branchChildren() const
boost::array< SelectedProducts, NumBranchTypes > SelectedProductsForBranchType
ThinnedAssociationsHelper const * thinnedAssociationsHelper() const
std::array< bool, NumBranchTypes > const & hasNewlyDroppedBranch() const
virtual void beginRun(RunPrincipal const &, ModuleCallingContext const *)
virtual void respondToOpenInputFile(FileBlock const &)
static void fillDescription(ParameterSetDescription &desc)
bool limitReached() const
bool doEndRun(RunPrincipal const &rp, EventSetup const &c, ModuleCallingContext const *mcc)
std::vector< detail::TriggerResultsBasedEventSelector > selectors_
SelectedProductsForBranchType keptProducts_
ProductSelector productSelector_
BranchChildren branchChildren_
BranchIDLists const * branchIDLists() const
ProductSelectorRules productSelectorRules_
Trig getTriggerResults(EDGetTokenT< TriggerResults > const &token, EventPrincipal const &ep, ModuleCallingContext const *) const
std::string workerType() const
void doRespondToOpenInputFile(FileBlock const &fb)
virtual void respondToCloseInputFile(FileBlock const &)
bool doBeginRun(RunPrincipal const &rp, EventSetup const &c, ModuleCallingContext const *mcc)
void configure(OutputModuleDescription const &desc)
virtual void openFile(FileBlock const &)
void doRegisterThinnedAssociations(ProductRegistry const &, ThinnedAssociationsHelper &)
ModuleDescription const & moduleDescription() const
std::atomic< int > remainingEvents_
virtual void writeRun(RunPrincipal const &, ModuleCallingContext const *)=0
virtual void endRun(RunPrincipal const &, ModuleCallingContext const *)
ModuleDescription const & description() const
BranchParents branchParents_
virtual void preForkReleaseResources()
OutputModule(ParameterSet const &pset)
ParameterSetID selectorConfig() const
void registerProductsAndCallbacks(OutputModule const *, ProductRegistry const *)
ParameterSetID selector_config_id_