1 #ifndef FWCore_Framework_OutputModule_h
2 #define FWCore_Framework_OutputModule_h
33 class ModuleCallingContext;
34 class PreallocationConfiguration;
37 template<
typename T>
class ModuleHolderT;
45 template <
typename T>
friend class WorkerT;
111 bool anyProductProduced);
void setModuleDescription(ModuleDescription const &md)
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
void doPostForkReacquireResources(unsigned int iChildIndex, unsigned int iNumberOfChildren)
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
friend class maker::ModuleHolderT
std::vector< BranchIDList > BranchIDLists
virtual void writeLuminosityBlock(LuminosityBlockPrincipal const &, ModuleCallingContext const *)=0
bool doEvent(EventPrincipal const &ep, EventSetup const &c, ModuleCallingContext const *mcc)
void selectProducts(ProductRegistry const &preg)
virtual void write(EventPrincipal const &e, ModuleCallingContext const *)=0
ModuleDescription moduleDescription_
void doPreallocate(PreallocationConfiguration const &)
int remainingEvents() const
virtual void reallyCloseFile()
std::string const & processName() 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()
void doPreForkReleaseResources()
std::unique_ptr< BranchIDLists > branchIDLists_
bool doEndLuminosityBlock(LuminosityBlockPrincipal const &lbp, EventSetup const &c, ModuleCallingContext const *mcc)
detail::TriggerResultsBasedEventSelector selectors_
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()
virtual void postForkReacquireResources(unsigned int, unsigned int)
static void prevalidate(ConfigurationDescriptions &)
BranchChildren const & branchChildren() const
boost::array< SelectedProducts, NumBranchTypes > SelectedProductsForBranchType
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)
SelectedProductsForBranchType keptProducts_
ProductSelector productSelector_
BranchChildren branchChildren_
BranchIDLists const * branchIDLists() const
ProductSelectorRules productSelectorRules_
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 &)
ModuleDescription const & moduleDescription() const
virtual void writeRun(RunPrincipal const &, ModuleCallingContext const *)=0
virtual void endRun(RunPrincipal const &, ModuleCallingContext const *)
Trig getTriggerResults(EventPrincipal const &ep, ModuleCallingContext const *) 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_