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;
128 void setEventSelectionInfo(
std::map<
std::string, std::vector<std::pair<std::string, int> > >
const& outputModulePathPositions,
129 bool anyProductProduced);
134 return droppedBranchIDToKeptBranchID_;
166 std::vector<detail::TriggerResultsBasedEventSelector>
selectors_;
189 void doRespondToOpenInputFile(
FileBlock const&
fb);
190 void doRespondToCloseInputFile(
FileBlock const&
fb);
197 return resourceAcquirer_;
205 virtual void reallyCloseFile();
209 bool needToRunSelection()
const;
210 std::vector<ProductResolverIndexAndSkipBit> productsUsedBySelection()
const;
234 std::map<BranchID, BranchDescription const*>& trueBranchIDToKeptBranchDesc,
235 std::set<BranchID>& keptProductsInEvent);
238 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
static bool wantsStreamLuminosityBlocks()
std::map< BranchID::value_type, BranchID::value_type > const & droppedBranchIDToKeptBranchID()
static bool wantsGlobalRuns()
virtual bool isFileOpen() const
virtual bool shouldWeCloseFile() const
Ask the OutputModule if we should end the current file.
static bool wantsStreamRuns()
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
static bool wantsGlobalLuminosityBlocks()
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_