1 #ifndef FWCore_Framework_OutputModule_h
2 #define FWCore_Framework_OutputModule_h
38 template <
typename T>
friend class WorkerT;
108 bool anyProductProduced);
void setModuleDescription(ModuleDescription const &md)
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
void doPostForkReacquireResources(unsigned int iChildIndex, unsigned int iNumberOfChildren)
virtual void doOpenFile()
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
virtual void writeProductDependencies()
virtual void respondToCloseOutputFiles(FileBlock const &)
SelectionsArray const & keptProducts() const
std::vector< BranchIDList > BranchIDLists
void selectProducts(ProductRegistry const &preg)
ModuleDescription moduleDescription_
virtual void writeFileFormatVersion()
bool doEndLuminosityBlock(LuminosityBlockPrincipal const &lbp, EventSetup const &c, CurrentProcessingContext const *cpc)
CurrentProcessingContext const * current_context_
virtual void respondToOpenOutputFiles(FileBlock const &)
detail::CachedProducts selectors_
detail::CachedProducts::handle_t Trig
virtual void writeIndexIntoFile()
int remainingEvents() const
virtual void endRun(RunPrincipal const &)
std::string const & processName() const
static const std::string & baseType()
std::map< BranchID, std::set< ParentageID > > BranchParents
void updateBranchParents(EventPrincipal const &ep)
virtual void beginRun(RunPrincipal const &)
virtual void finishEndFile()
bool selected(BranchDescription const &desc) const
BranchIDLists const * origBranchIDLists_
virtual void writeParentageRegistry()
void doCloseFile()
Tell the OutputModule that is must end the current file.
bool wantAllEvents() const
void setEventSelectionInfo(std::map< std::string, std::vector< std::pair< std::string, int > > > const &outputModulePathPositions, bool anyProductProduced)
std::string process_name_
virtual void endLuminosityBlock(LuminosityBlockPrincipal const &)
virtual void writeProcessConfigurationRegistry()
static void fillDescriptions(ConfigurationDescriptions &descriptions)
bool doEvent(EventPrincipal const &ep, EventSetup const &c, CurrentProcessingContext const *cpc)
boost::array< Selections, NumBranchTypes > SelectionsArray
std::map< BranchID::value_type, BranchID::value_type > const & droppedBranchIDToKeptBranchID()
SelectionsArray keptProducts_
void doWriteLuminosityBlock(LuminosityBlockPrincipal const &lbp)
void doPreForkReleaseResources()
std::unique_ptr< BranchIDLists > branchIDLists_
virtual void beginLuminosityBlock(LuminosityBlockPrincipal const &)
void doRespondToCloseOutputFiles(FileBlock const &fb)
virtual void write(EventPrincipal const &e)=0
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
virtual void writeFileIdentifier()
void fillDependencyGraph()
virtual void postForkReacquireResources(unsigned int, unsigned int)
static void prevalidate(ConfigurationDescriptions &)
BranchChildren const & branchChildren() const
CurrentProcessingContext const * currentContext() const
virtual void writeRun(RunPrincipal const &)=0
void doWriteRun(RunPrincipal const &rp)
std::array< bool, NumBranchTypes > const & hasNewlyDroppedBranch() const
virtual void respondToOpenInputFile(FileBlock const &)
static void fillDescription(ParameterSetDescription &desc)
bool limitReached() const
bool doBeginLuminosityBlock(LuminosityBlockPrincipal const &lbp, EventSetup const &c, CurrentProcessingContext const *cpc)
ProductSelector productSelector_
std::vector< std::string > const & getAllTriggerNames()
BranchChildren branchChildren_
Trig getTriggerResults(Event const &ep) const
virtual void writeParameterSetRegistry()
BranchIDLists const * branchIDLists() const
ProductSelectorRules productSelectorRules_
std::string workerType() const
void doRespondToOpenInputFile(FileBlock const &fb)
virtual void respondToCloseInputFile(FileBlock const &)
bool doEndRun(RunPrincipal const &rp, EventSetup const &c, CurrentProcessingContext const *cpc)
void configure(OutputModuleDescription const &desc)
virtual void openFile(FileBlock const &)
bool doBeginRun(RunPrincipal const &rp, EventSetup const &c, CurrentProcessingContext const *cpc)
virtual void startEndFile()
virtual void writeBranchMapper()
virtual void writeLuminosityBlock(LuminosityBlockPrincipal const &)=0
ModuleDescription const & description() const
BranchParents branchParents_
virtual void preForkReleaseResources()
OutputModule(ParameterSet const &pset)
virtual void writeBranchIDListRegistry()
virtual void writeProcessHistoryRegistry()
void doRespondToOpenOutputFiles(FileBlock const &fb)
ParameterSetID selectorConfig() const
virtual void writeProductDescriptionRegistry()
void registerProductsAndCallbacks(OutputModule const *, ProductRegistry const *)
ParameterSetID selector_config_id_