|
|
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<std::pair<unsigned int, unsigned int>>& moduleIDToIndex,
235 std::vector<std::vector<ModuleDescription const*>>& modulesWhoseProductsAreConsumedBy,
318 template <
typename T>
320 unsigned int iStreamID,
321 typename T::TransitionInfoType& transitionInfo,
323 bool cleaningUpAfterException) {
326 std::move(iTaskHolder), transitionInfo,
token, cleaningUpAfterException);
329 template <
typename T>
331 typename T::TransitionInfoType& transitionInfo,
333 bool cleaningUpAfterException) {
334 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)
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 fillModuleAndConsumesInfo(std::vector< ModuleDescription const * > &allModuleDescriptions, std::vector< std::pair< unsigned int, unsigned int >> &moduleIDToIndex, std::vector< std::vector< ModuleDescription const * >> &modulesWhoseProductsAreConsumedBy, ProductRegistry const &preg) const
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]
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_