1 #ifndef FWCore_Framework_WorkerManager_h
2 #define FWCore_Framework_WorkerManager_h
16 #include "boost/shared_ptr.hpp"
23 class ExceptionCollector;
27 class PreallocationConfiguration;
36 boost::shared_ptr<ActivityRegistry> actReg,
44 std::set<std::string>& unscheduledLabels,
45 std::vector<std::string>& shouldBeUsedLabels);
49 template <
typename T,
typename U>
53 typename T::Context
const* topContext,
55 bool cleaningUpAfterException =
false);
90 template <
typename T,
typename U>
95 typename T::Context
const* topContext,
97 bool cleaningUpAfterException) {
107 unscheduled_->runNow<
T,U>(ep, es,streamID, topContext, context);
void endStream(StreamID iID, StreamContext &streamContext)
void setOnDemandProducts(ProductRegistry &pregistry, std::set< std::string > const &unscheduledLabels) const
void processOneOccurrence(typename T::MyPrincipal &principal, EventSetup const &eventSetup, StreamID streamID, typename T::Context const *topContext, U const *context, bool cleaningUpAfterException=false)
void addToUnscheduledWorkers(ParameterSet &pset, ProductRegistry &preg, PreallocationConfiguration const *prealloc, boost::shared_ptr< ProcessConfiguration > processConfiguration, std::string label, bool useStopwatch, std::set< std::string > &unscheduledLabels, std::vector< std::string > &shouldBeUsedLabels)
void addContextAndPrintException(char const *context, cms::Exception &ex, bool disablePrint)
void beginJob(ProductRegistry const &iRegistry)
std::string const & category() const
exception_actions::ActionCodes find(const std::string &category) const
ExceptionToActionTable const * actionTable_
std::vector< Worker * > AllWorkers
Worker * getWorker(ParameterSet &pset, ProductRegistry &preg, PreallocationConfiguration const *prealloc, boost::shared_ptr< ProcessConfiguration const > processConfiguration, std::string const &label)
void stdToEDM(std::exception const &e)
std::list< std::string > const & context() const
void printCmsExceptionWarning(char const *behavior, cms::Exception const &e, edm::JobReport *jobRep=0, int rc=-1)
boost::shared_ptr< UnscheduledCallProducer > unscheduled_
void beginStream(StreamID iID, StreamContext &streamContext)
AllWorkers const & allWorkers() const
void charPtrToEDM(char const *c)
void stringToEDM(std::string &s)
WorkerManager(boost::shared_ptr< ActivityRegistry > actReg, ExceptionToActionTable const &actions)
WorkerRegistry workerReg_
The Registry of all workers that where requested Holds all instances of workers. In this implementati...
void addToAllWorkers(Worker *w, bool useStopwatch)
ExceptionToActionTable const & actionTable() const
void setupOnDemandSystem(EventPrincipal &principal, EventSetup const &es)