1 #ifndef FWCore_Framework_Schedule_h
2 #define FWCore_Framework_Schedule_h
96 class TriggerNamesService;
98 namespace evetnsetup {
138 std::shared_ptr<ActivityRegistry>
areg,
140 bool hasSubprocesses,
145 unsigned int iStreamID,
149 template <
typename T>
151 typename T::TransitionInfoType& transitionInfo,
153 bool cleaningUpAfterException =
false);
155 template <
typename T>
157 unsigned int iStreamID,
158 typename T::TransitionInfoType& transitionInfo,
160 bool cleaningUpAfterException =
false);
210 void availablePaths(std::vector<std::string>& oLabelsToFill)
const;
215 void triggerPaths(std::vector<std::string>& oLabelsToFill)
const;
218 void endPaths(std::vector<std::string>& oLabelsToFill)
const;
226 std::vector<ModuleDescription const*>& descriptions,
227 unsigned int hint)
const;
232 std::vector<ModuleDescription const*>& descriptions,
233 unsigned int hint)
const;
236 std::vector<ModuleDescription const*>& allModuleDescriptions,
237 std::vector<std::pair<unsigned int, unsigned int>>& moduleIDToIndex,
239 modulesWhoseProductsAreConsumedBy,
240 std::vector<std::vector<ModuleProcessName>>& modulesInPreviousProcessesWhoseProductsAreConsumedBy,
316 template <
typename T>
318 unsigned int iStreamID,
319 typename T::TransitionInfoType& transitionInfo,
321 bool cleaningUpAfterException) {
324 std::move(iTaskHolder), transitionInfo,
token, cleaningUpAfterException);
327 template <
typename T>
329 typename T::TransitionInfoType& transitionInfo,
331 bool cleaningUpAfterException) {
332 globalSchedule_->processOneGlobalAsync<
T>(iTaskHolder, transitionInfo,
token, cleaningUpAfterException);
pathNames_ & tns()), endPathNames_(&tns.getEndPaths()), wantSummary_(tns.wantSummary()
std::vector< BranchIDList > BranchIDLists
AllWorkers const & allWorkers() const
returns the collection of pointers to workers
void availablePaths(std::vector< std::string > &oLabelsToFill) const
adds to oLabelsToFill the labels for all paths in the process
void writeProcessBlockAsync(WaitingTaskHolder iTask, ProcessBlockPrincipal const &, ProcessContext const *, ActivityRegistry *)
void respondToCloseInputFile(FileBlock const &fb)
std::shared_ptr< ModuleRegistry const > moduleRegistry() const
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)
std::vector< std::string > const * pathNames_
void convertCurrentProcessAlias(std::string const &processName)
Convert "@currentProcess" in InputTag process names to the actual current process name...
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
void endStream(unsigned int)
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
edm::propagate_const< std::unique_ptr< SystemTimeKeeper > > summaryTimeKeeper_
void processOneEventAsync(WaitingTaskHolder iTask, unsigned int iStreamID, EventTransitionInfo &, ServiceToken const &token)
int totalEventsFailed() const
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.
int totalEventsPassed() const
void triggerPaths(std::vector< std::string > &oLabelsToFill) const
void beginJob(ProductRegistry const &, eventsetup::ESRecordsToProxyIndices const &, ProcessBlockHelperBase const &)
std::vector< edm::propagate_const< std::shared_ptr< PathStatusInserter > > > pathStatusInserters_
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)
bool terminate() const
Return whether each output module has reached its maximum count.
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 *)
std::vector< Worker * > Workers
void getTriggerReport(TriggerReport &rep) const
PreallocationConfiguration preallocConfig_
std::vector< edm::propagate_const< std::shared_ptr< StreamSchedule > > > streamSchedules_
std::shared_ptr< TriggerResultInserter const > resultsInserter() const
std::vector< edm::propagate_const< std::shared_ptr< EndPathStatusInserter > > > endPathStatusInserters_
AllOutputModuleCommunicators all_output_communicators_
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 ...
std::vector< edm::propagate_const< std::shared_ptr< OutputModuleCommunicator > > > AllOutputModuleCommunicators
void beginStream(unsigned int)
tuple config
parse the configuration file
std::vector< std::string > const * endPathNames_
std::vector< ModuleDescription const * > getAllModuleDescriptions() const
std::shared_ptr< ModuleRegistry > & moduleRegistry()
void openOutputFiles(FileBlock &fb)
void writeLumiAsync(WaitingTaskHolder iTask, LuminosityBlockPrincipal const &lbp, ProcessContext const *, ActivityRegistry *)
void endJob(ExceptionCollector &collector)
void getTriggerTimingReport(TriggerTimingReport &rep) const
Schedule(ParameterSet &proc_pset, service::TriggerNamesService const &tns, ProductRegistry &pregistry, BranchIDListHelper &branchIDListHelper, ProcessBlockHelperBase &, 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)
bool shouldWeCloseOutput() const
bool changeModule(std::string const &iLabel, ParameterSet const &iPSet, const ProductRegistry &iRegistry, eventsetup::ESRecordsToProxyIndices const &)
void endPaths(std::vector< std::string > &oLabelsToFill) const
adds to oLabelsToFill the labels for all end paths in the process
void moduleDescriptionsInPath(std::string const &iPathLabel, std::vector< ModuleDescription const * > &descriptions, unsigned int hint) const