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_;
108 virtual bool wantsStreamRuns()
const =0;
109 virtual bool wantsStreamLuminosityBlocks()
const =0;
132 void doStreamBeginLuminosityBlock(
StreamID id,
136 void doStreamEndLuminosityBlock(
StreamID id,
156 void setEventSelectionInfo(
std::map<
std::string, std::vector<std::pair<std::string, int> > >
const& outputModulePathPositions,
157 bool anyProductProduced);
162 return droppedBranchIDToKeptBranchID_;
194 std::vector<detail::TriggerResultsBasedEventSelector>
selectors_;
213 void updateBranchIDListsWithKeptAliases();
218 void doRespondToOpenInputFile(
FileBlock const&
fb);
219 void doRespondToCloseInputFile(
FileBlock const&
fb);
230 bool needToRunSelection()
const;
231 std::vector<ProductResolverIndexAndSkipBit> productsUsedBySelection()
const;
236 virtual void reallyCloseFile();
275 std::map<BranchID, BranchDescription const*>& trueBranchIDToKeptBranchDesc,
276 std::set<BranchID>& keptProductsInEvent);
279 moduleDescription_ = md;
virtual void doEndRunSummary_(RunForOutput const &, EventSetup const &)
std::string process_name_
virtual void preallocate(PreallocationConfiguration const &)
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
bool wantsGlobalRuns() const
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_
bool wantsGlobalLuminosityBlocks() const
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 &)