1 #ifndef FWCore_Framework_limited_OutputModuleBase_h 2 #define FWCore_Framework_limited_OutputModuleBase_h 47 class ModuleCallingContext;
48 class PreallocationConfiguration;
50 class ProductRegistry;
51 class ThinnedAssociationsHelper;
54 template <
typename T>
class OutputModuleCommunicatorT;
57 template<
typename T>
class ModuleHolderT;
65 template <
typename T>
friend class ::edm::WorkerT;
66 template <
typename T>
friend class ::edm::OutputModuleCommunicatorT;
102 return moduleDescription_;
108 virtual bool wantsStreamRuns()
const =0;
109 virtual bool wantsStreamLuminosityBlocks()
const =0;
137 void doStreamBeginLuminosityBlock(
StreamID id,
141 void doStreamEndLuminosityBlock(
StreamID id,
161 void setEventSelectionInfo(
std::map<
std::string, std::vector<std::pair<std::string, int> > >
const& outputModulePathPositions,
162 bool anyProductProduced);
167 return droppedBranchIDToKeptBranchID_;
199 std::vector<detail::TriggerResultsBasedEventSelector>
selectors_;
219 void updateBranchIDListsWithKeptAliases();
224 void doRespondToOpenInputFile(
FileBlock const&
fb);
225 void doRespondToCloseInputFile(
FileBlock const&
fb);
236 bool needToRunSelection()
const;
237 std::vector<ProductResolverIndexAndSkipBit> productsUsedBySelection()
const;
242 virtual void reallyCloseFile();
283 std::map<BranchID, BranchDescription const*>& trueBranchIDToKeptBranchDesc,
284 std::set<BranchID>& keptProductsInEvent);
287 moduleDescription_ = md;
virtual void doStreamBeginRun_(StreamID, RunForOutput const &, EventSetup const &)
virtual void doBeginRunSummary_(RunForOutput const &, EventSetup const &)
virtual void doEndRunSummary_(RunForOutput const &, EventSetup const &)
std::atomic< int > remainingEvents_
edm::propagate_const< std::unique_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
std::map< BranchID, bool > keepAssociation_
virtual bool isFileOpen() const
std::vector< BranchIDList > BranchIDLists
std::string workerType() const
virtual bool shouldWeCloseFile() const
Ask the OutputModule if we should end the current file.
virtual void doRespondToOpenInputFile_(FileBlock const &)
std::array< SelectedProducts, NumBranchTypes > SelectedProductsForBranchType
BranchIDLists const * origBranchIDLists_
virtual void doEndStream_(StreamID)
virtual void doBeginLuminosityBlock_(LuminosityBlockForOutput const &)
ParameterSetID selector_config_id_
ParameterSetID selectorConfig() const
void setModuleDescription(ModuleDescription const &md)
edm::propagate_const< std::unique_ptr< BranchIDLists > > branchIDLists_
SelectedProductsForBranchType const & keptProducts() const
bool limitReached() const
virtual void doBeginStream_(StreamID)
const ModuleDescription & moduleDescription() const
virtual void openFile(FileBlock const &) const
bool hasAccumulator() const
virtual void doEndRun_(RunForOutput const &)
bool wantsGlobalRuns() const
void doRegisterThinnedAssociations(ProductRegistry const &, ThinnedAssociationsHelper &)
virtual void doBeginRun_(RunForOutput const &)
std::array< bool, NumBranchTypes > const & hasNewlyDroppedBranch() const
virtual void preallocate(PreallocationConfiguration const &)
int remainingEvents() const
ParameterSet selectEvents_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
bool wantsGlobalLuminosityBlocks() const
virtual void doBeginLuminosityBlockSummary_(LuminosityBlockForOutput const &, EventSetup const &)
void preActionBeforeRunEventAsync(WaitingTask *iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) const
virtual void doStreamEndRunSummary_(StreamID, RunForOutput const &, EventSetup const &)
virtual void doStreamEndLuminosityBlock_(StreamID, LuminosityBlockForOutput const &, EventSetup const &)
std::string const & processName() const
ProductSelectorRules productSelectorRules_
virtual void preallocStreams(unsigned int)
virtual void doStreamEndLuminosityBlockSummary_(StreamID, LuminosityBlockForOutput const &, EventSetup const &)
LimitedTaskQueue & queue()
unsigned int concurrencyLimit() const
virtual void doEndLuminosityBlock_(LuminosityBlockForOutput const &)
std::vector< detail::TriggerResultsBasedEventSelector > selectors_
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
virtual void doStreamEndRun_(StreamID, RunForOutput const &, EventSetup const &)
virtual void doStreamBeginLuminosityBlock_(StreamID, LuminosityBlockForOutput const &, EventSetup const &)
ModuleDescription moduleDescription_
virtual void doRespondToCloseInputFile_(FileBlock const &)
virtual void doEndLuminosityBlockSummary_(LuminosityBlockForOutput const &, EventSetup const &)
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
virtual void preallocLumis(unsigned int)
std::map< BranchID::value_type, BranchID::value_type > const & droppedBranchIDToKeptBranchID()
ProductSelector productSelector_
SelectedProductsForBranchType keptProducts_
bool wantAllEvents() const
std::string process_name_
OutputModuleBase ModuleType
void registerProductsAndCallbacks(OutputModuleBase const *, ProductRegistry const *)