1 #ifndef FWCore_Framework_global_OutputModuleBase_h 2 #define FWCore_Framework_global_OutputModuleBase_h 47 class MergeableRunProductMetadata;
48 class ModuleCallingContext;
49 class PreallocationConfiguration;
51 class ProductRegistry;
52 class ThinnedAssociationsHelper;
58 template<
typename T>
class ModuleHolderT;
66 template <
typename T>
friend class ::edm::WorkerT;
67 template <
typename T>
friend class ::edm::OutputModuleCommunicatorT;
103 return moduleDescription_;
110 virtual bool wantsStreamRuns()
const =0;
111 virtual bool wantsStreamLuminosityBlocks()
const =0;
134 void doStreamBeginLuminosityBlock(
StreamID id,
138 void doStreamEndLuminosityBlock(
StreamID id,
158 void setEventSelectionInfo(
std::map<
std::string, std::vector<std::pair<std::string, int> > >
const& outputModulePathPositions,
159 bool anyProductProduced);
164 return droppedBranchIDToKeptBranchID_;
196 std::vector<detail::TriggerResultsBasedEventSelector>
selectors_;
215 void updateBranchIDListsWithKeptAliases();
220 void doRespondToOpenInputFile(
FileBlock const&
fb);
221 void doRespondToCloseInputFile(
FileBlock const&
fb);
232 bool needToRunSelection()
const;
233 std::vector<ProductResolverIndexAndSkipBit> productsUsedBySelection()
const;
238 virtual void reallyCloseFile();
281 std::map<BranchID, BranchDescription const*>& trueBranchIDToKeptBranchDesc,
282 std::set<BranchID>& keptProductsInEvent);
285 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 setProcessesWithSelectedMergeableRunProducts(std::set< std::string > 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 &)
virtual void preallocLumis(unsigned int)
ParameterSetID selectorConfig() const
ProductSelectorRules productSelectorRules_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
bool wantAllEvents() const
std::atomic< int > remainingEvents_
virtual void doEndLuminosityBlock_(LuminosityBlockForOutput const &)
bool hasAccumulator() 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 &)