1 #ifndef FWCore_Framework_one_OutputModuleBase_h
2 #define FWCore_Framework_one_OutputModuleBase_h
47 class ModuleCallingContext;
48 class PreallocationConfiguration;
52 template<
typename T>
class ModuleHolderT;
62 template <
typename T>
friend class ::edm::WorkerT;
63 template <
typename T>
friend class ::edm::OutputModuleCommunicatorT;
125 bool anyProductProduced);
BranchIDLists const * branchIDLists() const
std::unique_ptr< BranchIDLists > branchIDLists_
void doPreForkReleaseResources()
ModuleDescription const & description() const
bool wantAllEvents() const
std::vector< BranchIDList > BranchIDLists
SelectedProductsForBranchType keptProducts_
void doWriteLuminosityBlock(LuminosityBlockPrincipal const &lbp, ModuleCallingContext const *)
ModuleDescription moduleDescription_
void doWriteRun(RunPrincipal const &rp, ModuleCallingContext const *)
static void prevalidate(ConfigurationDescriptions &)
BranchParents branchParents_
detail::TriggerResultsBasedEventSelector::handle_t Trig
void configure(OutputModuleDescription const &desc)
void registerProductsAndCallbacks(OutputModuleBase const *, ProductRegistry const *)
virtual void doEndRun_(RunPrincipal const &, ModuleCallingContext const *)
bool doBeginRun(RunPrincipal const &rp, EventSetup const &c, ModuleCallingContext const *)
BranchChildren branchChildren_
void selectProducts(ProductRegistry const &preg)
ParameterSetID selectorConfig() const
ProductSelectorRules productSelectorRules_
virtual void doBeginRun_(RunPrincipal const &, ModuleCallingContext const *)
Trig getTriggerResults(EventPrincipal const &ep, ModuleCallingContext const *) const
virtual void doRespondToCloseInputFile_(FileBlock const &)
virtual void doRespondToOpenInputFile_(FileBlock const &)
bool doEvent(EventPrincipal const &ep, EventSetup const &c, ModuleCallingContext const *)
virtual void openFile(FileBlock const &)
int remainingEvents() const
bool selected(BranchDescription const &desc) const
std::map< BranchID::value_type, BranchID::value_type > const & droppedBranchIDToKeptBranchID()
virtual void reallyCloseFile()
virtual void reallyOpenFile()
void doPreallocate(PreallocationConfiguration const &)
void setEventSelectionInfo(std::map< std::string, std::vector< std::pair< std::string, int > > > const &outputModulePathPositions, bool anyProductProduced)
virtual void writeRun(RunPrincipal const &, ModuleCallingContext const *)=0
SelectedProductsForBranchType const & keptProducts() const
virtual void preForkReleaseResources()
std::string workerType() const
OutputModuleBase ModuleType
std::array< bool, NumBranchTypes > const & hasNewlyDroppedBranch() const
virtual void doBeginLuminosityBlock_(LuminosityBlockPrincipal const &, ModuleCallingContext const *)
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
OutputModuleBase(ParameterSet const &pset)
virtual void doEndLuminosityBlock_(LuminosityBlockPrincipal const &, ModuleCallingContext const *)
void setModuleDescription(ModuleDescription const &md)
const ModuleDescription & moduleDescription() const
void doPostForkReacquireResources(unsigned int iChildIndex, unsigned int iNumberOfChildren)
boost::array< SelectedProducts, NumBranchTypes > SelectedProductsForBranchType
BranchChildren const & branchChildren() const
void doRespondToCloseInputFile(FileBlock const &fb)
void doRespondToOpenInputFile(FileBlock const &fb)
std::string const & processName() const
static void fillDescriptions(ConfigurationDescriptions &descriptions)
virtual void write(EventPrincipal const &e, ModuleCallingContext const *)=0
bool doEndRun(RunPrincipal const &rp, EventSetup const &c, ModuleCallingContext const *)
OutputModuleBase & operator=(OutputModuleBase const &)=delete
static const std::string & baseType()
std::string process_name_
void doOpenFile(FileBlock const &fb)
virtual void writeLuminosityBlock(LuminosityBlockPrincipal const &, ModuleCallingContext const *)=0
virtual void postForkReacquireResources(unsigned int, unsigned int)
BranchIDLists const * origBranchIDLists_
bool doBeginLuminosityBlock(LuminosityBlockPrincipal const &lbp, EventSetup const &c, ModuleCallingContext const *)
virtual bool shouldWeCloseFile() const
Ask the OutputModule if we should end the current file.
void doCloseFile()
Tell the OutputModule that is must end the current file.
static void fillDescription(ParameterSetDescription &desc)
virtual bool isFileOpen() const
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
void updateBranchParents(EventPrincipal const &ep)
ProductSelector productSelector_
virtual ~OutputModuleBase()
detail::TriggerResultsBasedEventSelector selectors_
ParameterSetID selector_config_id_
void fillDependencyGraph()
bool limitReached() const
bool doEndLuminosityBlock(LuminosityBlockPrincipal const &lbp, EventSetup const &c, ModuleCallingContext const *)
std::map< BranchID, std::set< ParentageID > > BranchParents