#include <GlobalSchedule.h>
Classes | |
class | SendTerminationSignalIfException |
Public Types | |
typedef std::vector< Worker * > | AllWorkers |
typedef std::vector< std::string > | vstring |
typedef std::shared_ptr< Worker > | WorkerPtr |
typedef std::vector< Worker * > | Workers |
Public Member Functions | |
AllWorkers const & | allWorkers () const |
returns the collection of pointers to workers More... | |
void | beginJob (ProductRegistry const &) |
void | endJob (ExceptionCollector &collector) |
std::vector< ModuleDescription const * > | getAllModuleDescriptions () const |
void | getTriggerReport (TriggerReport &rep) const |
GlobalSchedule (std::shared_ptr< TriggerResultInserter > inserter, std::shared_ptr< ModuleRegistry > modReg, std::vector< std::string > const &modulesToUse, ParameterSet &proc_pset, ProductRegistry &pregistry, PreallocationConfiguration const &prealloc, ExceptionToActionTable const &actions, std::shared_ptr< ActivityRegistry > areg, std::shared_ptr< ProcessConfiguration > processConfiguration, ProcessContext const *processContext) | |
GlobalSchedule (GlobalSchedule const &)=delete | |
template<typename T > | |
void | processOneGlobal (typename T::MyPrincipal &principal, EventSetup const &eventSetup, bool cleaningUpAfterException=false) |
void | replaceModule (maker::ModuleHolder *iMod, std::string const &iLabel) |
clone the type of module with label iLabel but configure with iPSet. More... | |
bool | terminate () const |
Return whether each output module has reached its maximum count. More... | |
Private Member Functions | |
ExceptionToActionTable const & | actionTable () const |
returns the action table More... | |
void | addToAllWorkers (Worker *w) |
template<typename T > | |
void | runNow (typename T::MyPrincipal const &p, EventSetup const &es, GlobalContext const *context) |
Private Attributes | |
std::shared_ptr< ActivityRegistry > | actReg_ |
ProcessContext const * | processContext_ |
edm::propagate_const< WorkerPtr > | results_inserter_ |
WorkerManager | workerManager_ |
Definition at line 70 of file GlobalSchedule.h.
typedef std::vector<Worker*> edm::GlobalSchedule::AllWorkers |
Definition at line 73 of file GlobalSchedule.h.
typedef std::vector<std::string> edm::GlobalSchedule::vstring |
Definition at line 72 of file GlobalSchedule.h.
typedef std::shared_ptr<Worker> edm::GlobalSchedule::WorkerPtr |
Definition at line 74 of file GlobalSchedule.h.
typedef std::vector<Worker*> edm::GlobalSchedule::Workers |
Definition at line 75 of file GlobalSchedule.h.
edm::GlobalSchedule::GlobalSchedule | ( | std::shared_ptr< TriggerResultInserter > | inserter, |
std::shared_ptr< ModuleRegistry > | modReg, | ||
std::vector< std::string > const & | modulesToUse, | ||
ParameterSet & | proc_pset, | ||
ProductRegistry & | pregistry, | ||
PreallocationConfiguration const & | prealloc, | ||
ExceptionToActionTable const & | actions, | ||
std::shared_ptr< ActivityRegistry > | areg, | ||
std::shared_ptr< ProcessConfiguration > | processConfiguration, | ||
ProcessContext const * | processContext | ||
) |
Definition at line 19 of file GlobalSchedule.cc.
References edm::actions, actReg_, addToAllWorkers(), assert(), edm::errors::Configuration, Exception, edm::propagate_const< T >::get(), edm::ParameterSet::getPSetForUpdate(), edm::WorkerManager::getWorker(), results_inserter_, and workerManager_.
|
delete |
|
inlineprivate |
returns the action table
Definition at line 149 of file GlobalSchedule.h.
References edm::WorkerManager::actionTable(), and workerManager_.
|
private |
Definition at line 95 of file GlobalSchedule.cc.
References edm::WorkerManager::addToAllWorkers(), and workerManager_.
Referenced by GlobalSchedule().
|
inline |
returns the collection of pointers to workers
Definition at line 116 of file GlobalSchedule.h.
References edm::WorkerManager::allWorkers(), and workerManager_.
Referenced by getAllModuleDescriptions(), replaceModule(), and runNow().
void edm::GlobalSchedule::beginJob | ( | ProductRegistry const & | iRegistry | ) |
Definition at line 61 of file GlobalSchedule.cc.
References edm::WorkerManager::beginJob(), and workerManager_.
void edm::GlobalSchedule::endJob | ( | ExceptionCollector & | collector | ) |
Definition at line 57 of file GlobalSchedule.cc.
References edm::WorkerManager::endJob(), and workerManager_.
std::vector< ModuleDescription const * > edm::GlobalSchedule::getAllModuleDescriptions | ( | ) | const |
Return a vector allowing const access to all the ModuleDescriptions for this GlobalSchedule. *** N.B. *** Ownership of the ModuleDescriptions is not *** passed to the caller. Do not call delete on these *** pointers!
Definition at line 83 of file GlobalSchedule.cc.
References allWorkers(), AlCaHLTBitMon_ParallelJobs::p, query::result, and findQualityFiles::size.
void edm::GlobalSchedule::getTriggerReport | ( | TriggerReport & | rep | ) | const |
Return the trigger report information on paths, modules-in-path, modules-in-endpath, and modules.
void edm::GlobalSchedule::processOneGlobal | ( | typename T::MyPrincipal & | principal, |
EventSetup const & | eventSetup, | ||
bool | cleaningUpAfterException = false |
||
) |
Definition at line 166 of file GlobalSchedule.h.
References actReg_, edm::addContextAndPrintException(), cms::Exception::context(), edm::StreamID::invalidStreamID(), processContext_, edm::WorkerManager::processOneOccurrence(), workerManager_, and edm::convertException::wrap().
void edm::GlobalSchedule::replaceModule | ( | maker::ModuleHolder * | iMod, |
std::string const & | iLabel | ||
) |
clone the type of module with label iLabel but configure with iPSet.
Definition at line 65 of file GlobalSchedule.cc.
References allWorkers(), edm::Worker::beginJob(), newFWLiteAna::found, and edm::maker::ModuleHolder::replaceModuleFor().
|
private |
Definition at line 198 of file GlobalSchedule.h.
References cms::Exception::addContext(), allWorkers(), edm::InLumi, edm::InRun, edm::StreamID::invalidStreamID(), and AlCaHLTBitMon_ParallelJobs::p.
bool edm::GlobalSchedule::terminate | ( | ) | const |
Return whether each output module has reached its maximum count.
|
private |
Definition at line 156 of file GlobalSchedule.h.
Referenced by GlobalSchedule(), and processOneGlobal().
|
private |
Definition at line 160 of file GlobalSchedule.h.
Referenced by processOneGlobal().
|
private |
Definition at line 157 of file GlobalSchedule.h.
Referenced by GlobalSchedule().
|
private |
Definition at line 155 of file GlobalSchedule.h.
Referenced by actionTable(), addToAllWorkers(), allWorkers(), beginJob(), endJob(), GlobalSchedule(), and processOneGlobal().