|
|
Go to the documentation of this file. 1 #ifndef FWCore_Framework_SubProcess_h
2 #define FWCore_Framework_SubProcess_h
31 class BranchDescription;
32 class BranchIDListHelper;
35 class HistoryAppender;
36 class LuminosityBlockPrincipal;
37 class LumiTransitionInfo;
38 class MergeableRunProductMetadata;
41 class ProcessBlockTransitionInfo;
42 class ProductRegistry;
43 class PreallocationConfiguration;
44 class RunTransitionInfo;
45 class ThinnedAssociationsHelper;
46 class SubProcessParentageHelper;
49 namespace eventsetup {
50 class EventSetupsController;
56 std::shared_ptr<ProductRegistry const> parentProductRegistry,
57 std::shared_ptr<BranchIDListHelper const> parentBranchIDListHelper,
78 std::map<BranchID, bool>& keepAssociation);
91 std::vector<std::shared_ptr<const EventSetupImpl>>
const*);
93 template <
typename Traits>
96 bool cleaningUpAfterException);
100 bool cleaningUpAfterException);
106 bool cleaningUpAfterException);
112 bool cleaningUpAfterException);
121 bool cleaningUpAfterException);
128 bool cleaningUpAfterException);
179 if (subProcess.shouldWeCloseOutput()) {
240 if (subProcess.terminate()) {
259 std::vector<std::shared_ptr<const EventSetupImpl>>
const*);
266 std::map<BranchID, BranchDescription const*>& trueBranchIDToKeptBranchDesc,
267 std::set<BranchID>& keptProductsInEvent);
287 std::shared_ptr<ProductRegistry const>
preg_;
void enableEndPaths(bool active)
void respondToOpenInputFile(FileBlock const &fb)
std::shared_ptr< ProcessConfiguration const > processConfiguration_
unsigned int historyRunOffset_
unsigned int historyLumiOffset_
ParameterSetID selector_config_id_
std::vector< ParameterSet > popSubProcessVParameterSet(ParameterSet ¶meterSet)
bool parentProducedProductIsKept(Principal const &parentPrincipal, Principal &principal) const
std::vector< ProcessHistoryRegistry > processHistoryRegistries_
void clearProcessBlockPrincipal(ProcessBlockType)
std::shared_ptr< BranchIDListHelper const > branchIDListHelper() const
SelectedProductsForBranchType const & keptProducts() const
PathsAndConsumesOfModules pathsAndConsumesOfModules_
void doStreamEndRunAsync(WaitingTaskHolder iHolder, unsigned int iID, RunTransitionInfo const &, bool cleaningUpAfterException)
void updateBranchIDListHelper(BranchIDLists const &)
edm::propagate_const< std::shared_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
std::vector< SubProcess > subProcesses_
void doEndStream(unsigned int)
edm::propagate_const< std::shared_ptr< SubProcessBlockHelper > > processBlockHelper_
void doBeginProcessBlockAsync(WaitingTaskHolder iHolder, ProcessBlockTransitionInfo const &iTransitionInfo, bool cleaningUpAfterException)
constexpr std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
void doEndProcessBlockAsync(WaitingTaskHolder iHolder, ProcessBlockTransitionInfo const &iTransitionInfo, bool cleaningUpAfterException)
int totalEventsFailed() const
void processAsync(WaitingTaskHolder iHolder, EventPrincipal const &e, std::vector< std::shared_ptr< const EventSetupImpl >> const *)
SubProcess & operator=(SubProcess const &)=delete
Func for_all(ForwardSequence &s, Func f)
wrapper for std::for_each
ParameterSet const & parameterSet(StableProvenance const &provenance, ProcessHistory const &history)
void openOutputFiles(FileBlock &fb)
std::map< BranchID::value_type, BranchID::value_type > const & droppedBranchIDToKeptBranchID()
void deleteRunFromCache(ProcessHistoryID const &parentPhID, int runNumber)
edm::propagate_const< std::unique_ptr< Schedule > > schedule_
std::vector< std::shared_ptr< LuminosityBlockPrincipal > > inUseLumiPrincipals_
void getTriggerReport(TriggerReport &rep) const
int totalEventsPassed() const
Return the number of events which have been passed by one or more trigger paths.
std::shared_ptr< ThinnedAssociationsHelper const > thinnedAssociationsHelper() const
void selectProducts(ProductRegistry const &preg, ThinnedAssociationsHelper const &parentThinnedAssociationsHelper, std::map< BranchID, bool > &keepAssociation)
void doEventAsync(WaitingTaskHolder iHolder, EventPrincipal const &principal, std::vector< std::shared_ptr< const EventSetupImpl >> const *)
ServiceToken serviceToken_
edm::propagate_const< std::shared_ptr< eventsetup::EventSetupProvider > > esp_
void doBeginLuminosityBlockAsync(WaitingTaskHolder iHolder, LumiTransitionInfo const &iTransitionInfo)
std::vector< BranchIDList > BranchIDLists
void propagateProducts(BranchType type, Principal const &parentPrincipal, Principal &principal) const
SelectedProductsForBranchType keptProducts_
std::vector< ModuleDescription const * > getAllModuleDescriptions() const
Return a vector allowing const access to all the ModuleDescriptions for this SubProcess.
void deleteLumiFromCache(LuminosityBlockPrincipal &)
ProductSelectorRules productSelectorRules_
edm::propagate_const< std::unique_ptr< ParameterSet > > processParameterSet_
std::unique_ptr< ExceptionToActionTable const > act_table_
void keepThisBranch(BranchDescription const &desc, std::map< BranchID, BranchDescription const * > &trueBranchIDToKeptBranchDesc, std::set< BranchID > &keptProductsInEvent)
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
void writeRunAsync(WaitingTaskHolder, ProcessHistoryID const &parentPhID, int runNumber, MergeableRunProductMetadata const *)
bool endPathsEnabled() const
Return true if end_paths are active, and false if they are inactive.
detail::TriggerResultsBasedEventSelector selectors_
void doStreamBeginLuminosityBlockAsync(WaitingTaskHolder iHolder, unsigned int iID, LumiTransitionInfo const &)
void respondToCloseInputFile(FileBlock const &fb)
std::shared_ptr< ActivityRegistry > actReg_
void writeProcessBlockAsync(edm::WaitingTaskHolder task, ProcessBlockType)
SubProcess(ParameterSet ¶meterSet, ParameterSet const &topLevelParameterSet, std::shared_ptr< ProductRegistry const > parentProductRegistry, std::shared_ptr< BranchIDListHelper const > parentBranchIDListHelper, ProcessBlockHelperBase const &parentProcessBlockHelper, ThinnedAssociationsHelper const &parentThinnedAssociationsHelper, SubProcessParentageHelper const &parentSubProcessParentageHelper, eventsetup::EventSetupsController &esController, ActivityRegistry &parentActReg, ServiceToken const &token, serviceregistry::ServiceLegacy iLegacy, PreallocationConfiguration const &preallocConfig, ProcessContext const *parentProcessContext)
ProductSelector productSelector_
void doStreamBeginRunAsync(WaitingTaskHolder iHolder, unsigned int iID, RunTransitionInfo const &)
std::array< SelectedProducts, NumBranchTypes > SelectedProductsForBranchType
std::map< ProcessHistoryID, ProcessHistoryID > parentToChildPhID_
void doBeginStream(unsigned int)
std::shared_ptr< ProductRegistry const > parentPreg_
void doEndRunAsync(WaitingTaskHolder iHolder, RunTransitionInfo const &iTransitionInfo, bool cleaningUpAfterException)
void doBeginRunAsync(WaitingTaskHolder iHolder, RunTransitionInfo const &iTransitionInfo)
void fixBranchIDListsForEDAliases(std::map< BranchID::value_type, BranchID::value_type > const &droppedBranchIDToKeptBranchID)
std::shared_ptr< BranchIDListHelper > & branchIDListHelper()
edm::propagate_const< std::shared_ptr< BranchIDListHelper > > branchIDListHelper_
bool shouldWeCloseOutput() const
std::vector< HistoryAppender > historyAppenders_
void writeLumiAsync(WaitingTaskHolder, LuminosityBlockPrincipal &)
ProcessContext processContext_
edm::propagate_const< std::shared_ptr< SubProcessParentageHelper > > subProcessParentageHelper_
std::vector< ModuleProcessName > keepOnlyConsumedUnscheduledModules(bool deleteModules)
void doStreamEndLuminosityBlockAsync(WaitingTaskHolder iHolder, unsigned int iID, LumiTransitionInfo const &, bool cleaningUpAfterException)
void clearCounters()
Clear all the counters in the trigger report.
std::shared_ptr< ThinnedAssociationsHelper > thinnedAssociationsHelper()
void doEndLuminosityBlockAsync(WaitingTaskHolder iHolder, LumiTransitionInfo const &iTransitionInfo, bool cleaningUpAfterException)
std::shared_ptr< ProductRegistry const > preg_
PrincipalCache principalCache_