1 #ifndef FWCore_Framework_global_OutputModuleBase_h 2 #define FWCore_Framework_global_OutputModuleBase_h 46 class ModuleCallingContext;
47 class PreallocationConfiguration;
49 class ProductRegistry;
50 class ThinnedAssociationsHelper;
56 template<
typename T>
class ModuleHolderT;
64 template <
typename T>
friend class ::edm::WorkerT;
65 template <
typename T>
friend class ::edm::OutputModuleCommunicatorT;
101 return moduleDescription_;
124 void doStreamBeginLuminosityBlock(
StreamID id,
128 void doStreamEndLuminosityBlock(
StreamID id,
148 void setEventSelectionInfo(
std::map<
std::string, std::vector<std::pair<std::string, int> > >
const& outputModulePathPositions,
149 bool anyProductProduced);
154 return droppedBranchIDToKeptBranchID_;
186 std::vector<detail::TriggerResultsBasedEventSelector>
selectors_;
208 void doRespondToOpenInputFile(
FileBlock const&
fb);
209 void doRespondToCloseInputFile(
FileBlock const&
fb);
210 void doPreForkReleaseResources();
211 void doPostForkReacquireResources(
unsigned int iChildIndex,
unsigned int iNumberOfChildren);
222 void maybeOpenFile();
230 virtual void reallyCloseFile();
245 virtual void preForkReleaseResources();
246 virtual void postForkReacquireResources(
unsigned int ,
unsigned int );
270 std::map<BranchID, BranchDescription const*>& trueBranchIDToKeptBranchDesc,
271 std::set<BranchID>& keptProductsInEvent);
274 moduleDescription_ = md;
virtual void doEndRunSummary_(RunForOutput const &, EventSetup const &)
std::string process_name_
SelectedProductsForBranchType const & keptProducts() const
BranchIDLists const * origBranchIDLists_
std::string workerType() const
virtual void doStreamEndRun_(StreamID, RunForOutput const &, EventSetup const &)
void setModuleDescription(ModuleDescription const &md)
std::vector< BranchIDList > BranchIDLists
virtual void preallocStreams(unsigned int)
virtual bool isFileOpen() const
std::array< SelectedProducts, NumBranchTypes > SelectedProductsForBranchType
virtual void reallyOpenFile()
virtual void doEndLuminosityBlockSummary_(LuminosityBlockForOutput const &, EventSetup const &)
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
OutputModuleBase ModuleType
std::vector< detail::TriggerResultsBasedEventSelector > selectors_
virtual void openFile(FileBlock const &)
virtual void doBeginStream_(StreamID)
ParameterSetID selector_config_id_
virtual void doRespondToOpenInputFile_(FileBlock const &)
virtual void doStreamBeginRun_(StreamID, RunForOutput const &, EventSetup const &)
std::string const & processName() const
SelectedProductsForBranchType keptProducts_
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
void registerProductsAndCallbacks(OutputModuleBase const *, ProductRegistry const *)
ParameterSet selectEvents_
void doRegisterThinnedAssociations(ProductRegistry const &, ThinnedAssociationsHelper &)
void preActionBeforeRunEventAsync(WaitingTask *iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) const
ModuleDescription moduleDescription_
int remainingEvents() const
edm::propagate_const< std::unique_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
virtual void doEndStream_(StreamID)
std::map< BranchID, bool > keepAssociation_
virtual void doBeginLuminosityBlock_(LuminosityBlockForOutput const &)
const ModuleDescription & moduleDescription() const
edm::propagate_const< std::unique_ptr< BranchIDLists > > branchIDLists_
virtual void doStreamEndLuminosityBlock_(StreamID, LuminosityBlockForOutput const &, EventSetup const &)
std::array< bool, NumBranchTypes > const & hasNewlyDroppedBranch() const
virtual void doStreamEndLuminosityBlockSummary_(StreamID, LuminosityBlockForOutput const &, EventSetup const &)
bool limitReached() const
ProductSelector productSelector_
virtual void doEndRun_(RunForOutput const &)
ParameterSetID selectorConfig() const
ProductSelectorRules productSelectorRules_
bool wantAllEvents() const
std::atomic< int > remainingEvents_
virtual void doEndLuminosityBlock_(LuminosityBlockForOutput const &)
virtual void doBeginRun_(RunForOutput const &)
virtual bool shouldWeCloseFile() const
Ask the OutputModule if we should end the current file.
std::map< BranchID::value_type, BranchID::value_type > const & droppedBranchIDToKeptBranchID()
virtual void doStreamEndRunSummary_(StreamID, RunForOutput const &, EventSetup const &)
virtual void doRespondToCloseInputFile_(FileBlock const &)
virtual void doBeginRunSummary_(RunForOutput const &, EventSetup const &)
virtual void doBeginLuminosityBlockSummary_(LuminosityBlockForOutput const &, EventSetup const &)
virtual void doStreamBeginLuminosityBlock_(StreamID, LuminosityBlockForOutput const &, EventSetup const &)