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_;
131 void doStreamBeginLuminosityBlock(
StreamID id,
135 void doStreamEndLuminosityBlock(
StreamID id,
155 void setEventSelectionInfo(
std::map<
std::string, std::vector<std::pair<std::string, int> > >
const& outputModulePathPositions,
156 bool anyProductProduced);
161 return droppedBranchIDToKeptBranchID_;
193 std::vector<detail::TriggerResultsBasedEventSelector>
selectors_;
216 void doRespondToOpenInputFile(
FileBlock const&
fb);
217 void doRespondToCloseInputFile(
FileBlock const&
fb);
232 virtual void reallyCloseFile();
268 std::map<BranchID, BranchDescription const*>& trueBranchIDToKeptBranchDesc,
269 std::set<BranchID>& keptProductsInEvent);
272 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
virtual void doEndRun_(RunForOutput const &)
void doRegisterThinnedAssociations(ProductRegistry const &, ThinnedAssociationsHelper &)
virtual void doBeginRun_(RunForOutput const &)
std::array< bool, NumBranchTypes > const & hasNewlyDroppedBranch() const
int remainingEvents() const
ParameterSet selectEvents_
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_
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 *)