1 #ifndef FWCore_Framework_Schedule_h 2 #define FWCore_Framework_Schedule_h 97 class TriggerNamesService;
99 namespace evetnsetup {
135 std::shared_ptr<ActivityRegistry> areg,
136 std::shared_ptr<ProcessConfiguration const> processConfiguration,
146 std::shared_ptr<ActivityRegistry> areg,
147 std::shared_ptr<ProcessConfiguration> processConfiguration,
148 bool hasSubprocesses,
153 unsigned int iStreamID,
157 template <
typename T>
159 typename T::TransitionInfoType& transitionInfo,
161 bool cleaningUpAfterException =
false);
163 template <
typename T>
165 unsigned int iStreamID,
166 typename T::TransitionInfoType& transitionInfo,
168 bool cleaningUpAfterException =
false);
218 void availablePaths(std::vector<std::string>& oLabelsToFill)
const;
223 void triggerPaths(std::vector<std::string>& oLabelsToFill)
const;
226 void endPaths(std::vector<std::string>& oLabelsToFill)
const;
234 std::vector<ModuleDescription const*>& descriptions,
235 unsigned int hint)
const;
240 std::vector<ModuleDescription const*>& descriptions,
241 unsigned int hint)
const;
244 std::vector<ModuleDescription const*>& allModuleDescriptions,
245 std::vector<std::pair<unsigned int, unsigned int>>& moduleIDToIndex,
247 modulesWhoseProductsAreConsumedBy,
248 std::vector<std::vector<ModuleProcessName>>& modulesInPreviousProcessesWhoseProductsAreConsumedBy,
289 std::multimap<std::string, std::string>
const& referencesToBranches,
290 std::vector<std::string>
const& modulesToSkip,
329 template <
typename T>
331 unsigned int iStreamID,
332 typename T::TransitionInfoType& transitionInfo,
334 bool cleaningUpAfterException) {
337 std::move(iTaskHolder), transitionInfo,
token, cleaningUpAfterException);
340 template <
typename T>
342 typename T::TransitionInfoType& transitionInfo,
344 bool cleaningUpAfterException) {
345 globalSchedule_->processOneGlobalAsync<
T>(iTaskHolder, transitionInfo,
token, cleaningUpAfterException);
void endPaths(std::vector< std::string > &oLabelsToFill) const
adds to oLabelsToFill the labels for all end paths in the process
bool terminate() const
Return whether each output module has reached its maximum count.
std::vector< BranchIDList > BranchIDLists
void getTriggerTimingReport(TriggerTimingReport &rep) const
roAction_t actions[nactions]
void writeProcessBlockAsync(WaitingTaskHolder iTask, ProcessBlockPrincipal const &, ProcessContext const *, ActivityRegistry *)
void respondToCloseInputFile(FileBlock const &fb)
void processOneStreamAsync(WaitingTaskHolder iTask, unsigned int iStreamID, typename T::TransitionInfoType &transitionInfo, ServiceToken const &token, bool cleaningUpAfterException=false)
std::vector< Worker * > AllWorkers
void processOneGlobalAsync(WaitingTaskHolder iTask, typename T::TransitionInfoType &transitionInfo, ServiceToken const &token, bool cleaningUpAfterException=false)
void moduleDescriptionsInPath(std::string const &iPathLabel, std::vector< ModuleDescription const *> &descriptions, unsigned int hint) const
std::vector< std::string > const * pathNames_
void getTriggerReport(TriggerReport &rep) const
void convertCurrentProcessAlias(std::string const &processName)
Convert "@currentProcess" in InputTag process names to the actual current process name...
void endStream(unsigned int)
Schedule(ParameterSet &proc_pset, service::TriggerNamesService const &tns, ProductRegistry &pregistry, ExceptionToActionTable const &actions, std::shared_ptr< ActivityRegistry > areg, std::shared_ptr< ProcessConfiguration const > processConfiguration, PreallocationConfiguration const &config, ProcessContext const *processContext)
constexpr std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
edm::propagate_const< std::unique_ptr< SystemTimeKeeper > > summaryTimeKeeper_
void processOneEventAsync(WaitingTaskHolder iTask, unsigned int iStreamID, EventTransitionInfo &, ServiceToken const &token)
edm::propagate_const< std::unique_ptr< GlobalSchedule > > globalSchedule_
std::shared_ptr< TriggerResultInserter > & resultsInserter()
void deleteModule(std::string const &iLabel, ActivityRegistry *areg)
Deletes module with label iLabel.
std::vector< ModuleDescription const * > getAllModuleDescriptions() const
void beginJob(ProductRegistry const &, eventsetup::ESRecordsToProxyIndices const &, ProcessBlockHelperBase const &)
std::vector< edm::propagate_const< std::shared_ptr< PathStatusInserter > > > pathStatusInserters_
void fillModuleAndConsumesInfo(std::vector< ModuleDescription const *> &allModuleDescriptions, std::vector< std::pair< unsigned int, unsigned int >> &moduleIDToIndex, std::array< std::vector< std::vector< ModuleDescription const *>>, NumBranchTypes > &modulesWhoseProductsAreConsumedBy, std::vector< std::vector< ModuleProcessName >> &modulesInPreviousProcessesWhoseProductsAreConsumedBy, ProductRegistry const &preg) const
edm::propagate_const< std::shared_ptr< TriggerResultInserter > > resultsInserter_
void clearCounters()
Clear all the counters in the trigger report.
std::vector< std::string > vstring
void limitOutput(ParameterSet const &proc_pset, BranchIDLists const &branchIDLists, SubProcessParentageHelper const *subProcessParentageHelper)
void respondToOpenInputFile(FileBlock const &fb)
edm::propagate_const< std::shared_ptr< ModuleRegistry > > moduleRegistry_
void writeRunAsync(WaitingTaskHolder iTask, RunPrincipal const &rp, ProcessContext const *, ActivityRegistry *, MergeableRunProductMetadata const *)
int totalEventsPassed() const
std::shared_ptr< ModuleRegistry const > moduleRegistry() const
std::vector< Worker * > Workers
void availablePaths(std::vector< std::string > &oLabelsToFill) const
adds to oLabelsToFill the labels for all paths in the process
PreallocationConfiguration preallocConfig_
std::vector< edm::propagate_const< std::shared_ptr< StreamSchedule > > > streamSchedules_
AllWorkers const & allWorkers() const
returns the collection of pointers to workers
bool shouldWeCloseOutput() const
void moduleDescriptionsInEndPath(std::string const &iEndPathLabel, std::vector< ModuleDescription const *> &descriptions, unsigned int hint) const
std::vector< edm::propagate_const< std::shared_ptr< EndPathStatusInserter > > > endPathStatusInserters_
AllOutputModuleCommunicators all_output_communicators_
std::vector< edm::propagate_const< std::shared_ptr< OutputModuleCommunicator > > > AllOutputModuleCommunicators
void beginStream(unsigned int)
std::vector< std::string > const * endPathNames_
void modulesInPath(std::string const &iPathLabel, std::vector< std::string > &oLabelsToFill) const
adds to oLabelsToFill in execution order the labels of all modules in path iPathLabel ...
void finishSetup(ParameterSet &proc_pset, service::TriggerNamesService const &tns, ProductRegistry &preg, BranchIDListHelper &branchIDListHelper, ProcessBlockHelperBase &processBlockHelper, ThinnedAssociationsHelper &thinnedAssociationsHelper, SubProcessParentageHelper const *subProcessParentageHelper, std::shared_ptr< ActivityRegistry > areg, std::shared_ptr< ProcessConfiguration > processConfiguration, bool hasSubprocesses, PreallocationConfiguration const &prealloc, ProcessContext const *processContext)
std::shared_ptr< ModuleRegistry > & moduleRegistry()
std::shared_ptr< TriggerResultInserter const > resultsInserter() const
void openOutputFiles(FileBlock &fb)
void writeLumiAsync(WaitingTaskHolder iTask, LuminosityBlockPrincipal const &lbp, ProcessContext const *, ActivityRegistry *)
void initializeEarlyDelete(std::vector< std::string > const &branchesToDeleteEarly, std::multimap< std::string, std::string > const &referencesToBranches, std::vector< std::string > const &modulesToSkip, edm::ProductRegistry const &preg)
void endJob(ExceptionCollector &collector)
bool changeModule(std::string const &iLabel, ParameterSet const &iPSet, const ProductRegistry &iRegistry, eventsetup::ESRecordsToProxyIndices const &)
int totalEventsFailed() const
void triggerPaths(std::vector< std::string > &oLabelsToFill) const