|
|
Go to the documentation of this file. 1 #ifndef FWCore_Framework_Schedule_h
2 #define FWCore_Framework_Schedule_h
95 class TriggerNamesService;
97 namespace evetnsetup {
136 std::shared_ptr<ActivityRegistry> areg,
137 std::shared_ptr<ProcessConfiguration> processConfiguration,
138 bool hasSubprocesses,
143 unsigned int iStreamID,
147 template <
typename T>
149 typename T::TransitionInfoType& transitionInfo,
151 bool cleaningUpAfterException =
false);
153 template <
typename T>
155 unsigned int iStreamID,
156 typename T::TransitionInfoType& transitionInfo,
158 bool cleaningUpAfterException =
false);
208 void availablePaths(std::vector<std::string>& oLabelsToFill)
const;
213 void triggerPaths(std::vector<std::string>& oLabelsToFill)
const;
216 void endPaths(std::vector<std::string>& oLabelsToFill)
const;
224 std::vector<ModuleDescription const*>& descriptions,
225 unsigned int hint)
const;
230 std::vector<ModuleDescription const*>& descriptions,
231 unsigned int hint)
const;
234 std::vector<ModuleDescription const*>& allModuleDescriptions,
235 std::vector<std::pair<unsigned int, unsigned int>>& moduleIDToIndex,
237 modulesWhoseProductsAreConsumedBy,
238 std::vector<std::vector<ModuleProcessName>>& modulesInPreviousProcessesWhoseProductsAreConsumedBy,
324 template <
typename T>
326 unsigned int iStreamID,
327 typename T::TransitionInfoType& transitionInfo,
329 bool cleaningUpAfterException) {
332 std::move(iTaskHolder), transitionInfo,
token, cleaningUpAfterException);
335 template <
typename T>
337 typename T::TransitionInfoType& transitionInfo,
339 bool cleaningUpAfterException) {
340 globalSchedule_->processOneGlobalAsync<
T>(iTaskHolder, transitionInfo,
token, cleaningUpAfterException);
void beginJob(ProductRegistry const &, eventsetup::ESRecordsToProxyIndices const &)
Schedule(ParameterSet &proc_pset, service::TriggerNamesService const &tns, ProductRegistry &pregistry, BranchIDListHelper &branchIDListHelper, ThinnedAssociationsHelper &thinnedAssociationsHelper, SubProcessParentageHelper const *subProcessParentageHelper, ExceptionToActionTable const &actions, std::shared_ptr< ActivityRegistry > areg, std::shared_ptr< ProcessConfiguration > processConfiguration, bool hasSubprocesses, PreallocationConfiguration const &config, ProcessContext const *processContext)
void processOneGlobalAsync(WaitingTaskHolder iTask, typename T::TransitionInfoType &transitionInfo, ServiceToken const &token, bool cleaningUpAfterException=false)
std::vector< std::string > vstring
std::shared_ptr< TriggerResultInserter > & resultsInserter()
void limitOutput(ParameterSet const &proc_pset, BranchIDLists const &branchIDLists, SubProcessParentageHelper const *subProcessParentageHelper)
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
std::vector< std::string > const * pathNames_
void endStream(unsigned int)
void writeRunAsync(WaitingTaskHolder iTask, RunPrincipal const &rp, ProcessContext const *, ActivityRegistry *, MergeableRunProductMetadata const *)
std::shared_ptr< ModuleRegistry const > moduleRegistry() const
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 clearCounters()
Clear all the counters in the trigger report.
void openOutputFiles(FileBlock &fb)
constexpr std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
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_
void processOneStreamAsync(WaitingTaskHolder iTask, unsigned int iStreamID, typename T::TransitionInfoType &transitionInfo, ServiceToken const &token, bool cleaningUpAfterException=false)
int totalEventsFailed() const
void convertCurrentProcessAlias(std::string const &processName)
Convert "@currentProcess" in InputTag process names to the actual current process name.
void availablePaths(std::vector< std::string > &oLabelsToFill) const
adds to oLabelsToFill the labels for all paths in the process
bool shouldWeCloseOutput() const
void endJob(ExceptionCollector &collector)
bool changeModule(std::string const &iLabel, ParameterSet const &iPSet, const ProductRegistry &iRegistry, eventsetup::ESRecordsToProxyIndices const &)
std::vector< edm::propagate_const< std::shared_ptr< OutputModuleCommunicator > > > AllOutputModuleCommunicators
void beginStream(unsigned int)
std::vector< BranchIDList > BranchIDLists
void getTriggerReport(TriggerReport &rep) const
std::vector< edm::propagate_const< std::shared_ptr< StreamSchedule > > > streamSchedules_
bool endPathsEnabled() const
bool terminate() const
Return whether each output module has reached its maximum count.
std::vector< edm::propagate_const< std::shared_ptr< PathStatusInserter > > > pathStatusInserters_
void writeProcessBlockAsync(WaitingTaskHolder iTask, ProcessBlockPrincipal const &, ProcessContext const *, ActivityRegistry *)
volatile bool endpathsAreActive_
void respondToCloseInputFile(FileBlock const &fb)
std::vector< Worker * > AllWorkers
AllOutputModuleCommunicators all_output_communicators_
void respondToOpenInputFile(FileBlock const &fb)
void endPaths(std::vector< std::string > &oLabelsToFill) const
adds to oLabelsToFill the labels for all end paths in the process
int totalEventsPassed() const
void enableEndPaths(bool active)
std::vector< std::string > const * endPathNames_
AllWorkers const & allWorkers() const
returns the collection of pointers to workers
void moduleDescriptionsInPath(std::string const &iPathLabel, std::vector< ModuleDescription const * > &descriptions, unsigned int hint) const
std::shared_ptr< TriggerResultInserter const > resultsInserter() const
edm::propagate_const< std::unique_ptr< SystemTimeKeeper > > summaryTimeKeeper_
void processOneEventAsync(WaitingTaskHolder iTask, unsigned int iStreamID, EventTransitionInfo &, ServiceToken const &token)
void writeLumiAsync(WaitingTaskHolder iTask, LuminosityBlockPrincipal const &lbp, ProcessContext const *, ActivityRegistry *)
edm::propagate_const< std::unique_ptr< GlobalSchedule > > globalSchedule_
roAction_t actions[nactions]
void deleteModule(std::string const &iLabel, ActivityRegistry *areg)
Deletes module with label iLabel.
edm::propagate_const< std::shared_ptr< ModuleRegistry > > moduleRegistry_
std::vector< ModuleDescription const * > getAllModuleDescriptions() const
void triggerPaths(std::vector< std::string > &oLabelsToFill) const
std::vector< Worker * > Workers
std::shared_ptr< ModuleRegistry > & moduleRegistry()
PreallocationConfiguration preallocConfig_
void getTriggerTimingReport(TriggerTimingReport &rep) const
edm::propagate_const< std::shared_ptr< TriggerResultInserter > > resultsInserter_