1 #ifndef FWCore_Framework_one_OutputModuleBase_h 2 #define FWCore_Framework_one_OutputModuleBase_h 48 class ModuleCallingContext;
49 class PreallocationConfiguration;
51 class ProductRegistry;
52 class ThinnedAssociationsHelper;
53 class SubProcessParentageHelper;
56 template <
typename T>
class OutputModuleCommunicatorT;
59 template<
typename T>
class ModuleHolderT;
67 template <
typename T>
friend class ::edm::WorkerT;
68 template <
typename T>
friend class ::edm::OutputModuleCommunicatorT;
104 return subProcessParentageHelper_;
108 return moduleDescription_;
132 void setEventSelectionInfo(
std::map<
std::string, std::vector<std::pair<std::string, int> > >
const& outputModulePathPositions,
133 bool anyProductProduced);
138 return droppedBranchIDToKeptBranchID_;
170 std::vector<detail::TriggerResultsBasedEventSelector>
selectors_;
198 void doRespondToOpenInputFile(
FileBlock const&
fb);
199 void doRespondToCloseInputFile(
FileBlock const&
fb);
200 void doPreForkReleaseResources();
201 void doPostForkReacquireResources(
unsigned int iChildIndex,
unsigned int iNumberOfChildren);
208 return resourcesAcquirer_;
216 void maybeOpenFile();
224 virtual void reallyCloseFile();
241 virtual void preForkReleaseResources();
242 virtual void postForkReacquireResources(
unsigned int ,
unsigned int );
252 std::map<BranchID, BranchDescription const*>& trueBranchIDToKeptBranchDesc,
253 std::set<BranchID>& keptProductsInEvent);
256 moduleDescription_ = md;
SubProcessParentageHelper const * subProcessParentageHelper() const
SharedResourcesAcquirer & sharedResourcesAcquirer()
bool wantAllEvents() const
std::vector< BranchIDList > BranchIDLists
SelectedProductsForBranchType keptProducts_
ModuleDescription moduleDescription_
ParameterSet selectEvents_
std::array< SelectedProducts, NumBranchTypes > SelectedProductsForBranchType
SubProcessParentageHelper const * subProcessParentageHelper_
virtual void preActionBeforeRunEventAsync(WaitingTask *iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) const
void registerProductsAndCallbacks(OutputModuleBase const *, ProductRegistry const *)
ParameterSetID selectorConfig() const
virtual void doBeginLuminosityBlock_(LuminosityBlockForOutput const &)
ProductSelectorRules productSelectorRules_
virtual void doRespondToCloseInputFile_(FileBlock const &)
virtual void doRespondToOpenInputFile_(FileBlock const &)
virtual void openFile(FileBlock const &)
int remainingEvents() const
virtual void doEndRun_(RunForOutput const &)
std::atomic< int > remainingEvents_
std::map< BranchID::value_type, BranchID::value_type > const & droppedBranchIDToKeptBranchID()
virtual void reallyOpenFile()
SelectedProductsForBranchType const & keptProducts() const
std::string workerType() const
OutputModuleBase ModuleType
edm::propagate_const< std::unique_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
std::array< bool, NumBranchTypes > const & hasNewlyDroppedBranch() const
SharedResourcesAcquirer resourcesAcquirer_
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
std::vector< detail::TriggerResultsBasedEventSelector > selectors_
void setModuleDescription(ModuleDescription const &md)
const ModuleDescription & moduleDescription() const
virtual void doEndLuminosityBlock_(LuminosityBlockForOutput const &)
void doRegisterThinnedAssociations(ProductRegistry const &, ThinnedAssociationsHelper &)
std::string const & processName() const
virtual void doBeginRun_(RunForOutput const &)
std::string process_name_
BranchIDLists const * origBranchIDLists_
virtual bool shouldWeCloseFile() const
Ask the OutputModule if we should end the current file.
virtual bool isFileOpen() const
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
ProductSelector productSelector_
ParameterSetID selector_config_id_
edm::propagate_const< std::unique_ptr< BranchIDLists > > branchIDLists_
bool limitReached() const
std::map< BranchID, bool > keepAssociation_