1 #ifndef FWCore_Framework_OutputModule_h 2 #define FWCore_Framework_OutputModule_h 38 class ModuleCallingContext;
39 class PreallocationConfiguration;
41 class ProductRegistry;
42 class ThinnedAssociationsHelper;
46 template<
typename T>
class ModuleHolderT;
54 template <
typename T>
friend class WorkerT;
123 void setEventSelectionInfo(
std::map<
std::string, std::vector<std::pair<std::string, int> > >
const& outputModulePathPositions,
124 bool anyProductProduced);
129 return droppedBranchIDToKeptBranchID_;
161 std::vector<detail::TriggerResultsBasedEventSelector>
selectors_;
184 void doRespondToOpenInputFile(
FileBlock const&
fb);
185 void doRespondToCloseInputFile(
FileBlock const&
fb);
192 return resourceAcquirer_;
200 virtual void reallyCloseFile();
225 std::map<BranchID, BranchDescription const*>& trueBranchIDToKeptBranchDesc,
226 std::set<BranchID>& keptProductsInEvent);
229 moduleDescription_ = md;
void setModuleDescription(ModuleDescription const &md)
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
virtual void endRun(RunForOutput const &)
std::vector< BranchIDList > BranchIDLists
ParameterSet selectEvents_
static const std::vector< std::string > & defaultSelectionStrings()
ModuleDescription moduleDescription_
std::map< BranchID, bool > keepAssociation_
std::array< SelectedProducts, NumBranchTypes > SelectedProductsForBranchType
SharedResourcesAcquirer & sharedResourcesAcquirer()
int remainingEvents() const
SharedResourcesAcquirer resourceAcquirer_
virtual void beginRun(RunForOutput const &)
edm::propagate_const< std::unique_ptr< BranchIDLists > > branchIDLists_
std::string const & processName() const
edm::propagate_const< std::unique_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
BranchIDLists const * origBranchIDLists_
detail::TriggerResultsBasedEventSelector::handle_t Trig
SelectedProductsForBranchType const & keptProducts() const
bool wantAllEvents() const
std::string process_name_
void preActionBeforeRunEventAsync(WaitingTask *iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) const
std::map< BranchID::value_type, BranchID::value_type > const & droppedBranchIDToKeptBranchID()
virtual bool isFileOpen() const
virtual bool shouldWeCloseFile() const
Ask the OutputModule if we should end the current file.
virtual void endLuminosityBlock(LuminosityBlockForOutput const &)
virtual void beginLuminosityBlock(LuminosityBlockForOutput const &)
std::array< bool, NumBranchTypes > const & hasNewlyDroppedBranch() const
virtual void respondToOpenInputFile(FileBlock const &)
bool limitReached() const
std::vector< detail::TriggerResultsBasedEventSelector > selectors_
SelectedProductsForBranchType keptProducts_
ProductSelector productSelector_
ProductSelectorRules productSelectorRules_
std::string workerType() const
virtual void respondToCloseInputFile(FileBlock const &)
virtual void openFile(FileBlock const &)
void doRegisterThinnedAssociations(ProductRegistry const &, ThinnedAssociationsHelper &)
ModuleDescription const & moduleDescription() const
std::atomic< int > remainingEvents_
ParameterSetID selectorConfig() const
void registerProductsAndCallbacks(OutputModule const *, ProductRegistry const *)
ParameterSetID selector_config_id_