#include <ScheduleItems.h>
Public Member Functions | |
ServiceToken | addCPRandTNS (ParameterSet const ¶meterSet, ServiceToken const &token) |
void | clear () |
boost::shared_ptr< CommonParams > | initMisc (ParameterSet ¶meterSet) |
std::auto_ptr< Schedule > | initSchedule (ParameterSet ¶meterSet, ParameterSet const *subProcessPSet) |
ServiceToken | initServices (std::vector< ParameterSet > &servicePSets, ParameterSet &processPSet, ServiceToken const &iToken, serviceregistry::ServiceLegacy iLegacy, bool associate) |
ScheduleItems () | |
ScheduleItems (ProductRegistry const &preg) | |
Public Attributes | |
boost::shared_ptr< ActionTable const > | act_table_ |
boost::shared_ptr < ActivityRegistry > | actReg_ |
boost::shared_ptr < SignallingProductRegistry > | preg_ |
boost::shared_ptr < ProcessConfiguration > | processConfiguration_ |
Definition at line 23 of file ScheduleItems.h.
edm::ScheduleItems::ScheduleItems | ( | ) |
Definition at line 16 of file ScheduleItems.cc.
: actReg_(new ActivityRegistry), preg_(new SignallingProductRegistry), act_table_(), processConfiguration_() { }
edm::ScheduleItems::ScheduleItems | ( | ProductRegistry const & | preg | ) |
Definition at line 23 of file ScheduleItems.cc.
References preg_.
: actReg_(new ActivityRegistry), preg_(new SignallingProductRegistry(preg)), act_table_(), processConfiguration_() { for(ProductRegistry::ProductList::iterator it = preg_->productListUpdator().begin(), itEnd = preg_->productListUpdator().end(); it != itEnd; ++it) { it->second.onDemand() = false; it->second.produced() = false; } }
ServiceToken edm::ScheduleItems::addCPRandTNS | ( | ParameterSet const & | parameterSet, |
ServiceToken const & | token | ||
) |
Definition at line 59 of file ScheduleItems.cc.
References edm::ServiceRegistry::createContaining(), edm::serviceregistry::kOverlapIsError, and preg_.
Referenced by edm::EventProcessor::init().
{ //add the ProductRegistry as a service ONLY for the construction phase typedef serviceregistry::ServiceWrapper<ConstProductRegistry> w_CPR; boost::shared_ptr<w_CPR> reg(new w_CPR(std::auto_ptr<ConstProductRegistry>(new ConstProductRegistry(*preg_)))); ServiceToken tempToken(ServiceRegistry::createContaining(reg, token, serviceregistry::kOverlapIsError)); // the next thing is ugly: pull out the trigger path pset and // create a service and extra token for it typedef service::TriggerNamesService TNS; typedef serviceregistry::ServiceWrapper<TNS> w_TNS; boost::shared_ptr<w_TNS> tnsptr (new w_TNS(std::auto_ptr<TNS>(new TNS(parameterSet)))); return ServiceRegistry::createContaining(tnsptr, tempToken, serviceregistry::kOverlapIsError); }
void edm::ScheduleItems::clear | ( | void | ) |
Definition at line 111 of file ScheduleItems.cc.
References actReg_, preg_, and processConfiguration_.
{ actReg_.reset(); preg_.reset(); processConfiguration_.reset(); }
boost::shared_ptr< CommonParams > edm::ScheduleItems::initMisc | ( | ParameterSet & | parameterSet | ) |
Definition at line 84 of file ScheduleItems.cc.
References act_table_, edm::ParameterSet::getParameter(), edm::getPassID(), edm::getReleaseVersion(), edm::ParameterSet::getUntrackedParameter(), edm::ParameterSet::getUntrackedParameterSet(), and processConfiguration_.
Referenced by edm::EventProcessor::init().
{ act_table_.reset(new ActionTable(parameterSet)); std::string processName = parameterSet.getParameter<std::string>("@process_name"); processConfiguration_.reset(new ProcessConfiguration(processName, getReleaseVersion(), getPassID())); boost::shared_ptr<CommonParams> common(new CommonParams(parameterSet.getUntrackedParameterSet( "maxEvents", ParameterSet()).getUntrackedParameter<int>("input", -1), parameterSet.getUntrackedParameterSet( "maxLuminosityBlocks", ParameterSet()).getUntrackedParameter<int>("input", -1))); return common; }
std::auto_ptr< Schedule > edm::ScheduleItems::initSchedule | ( | ParameterSet & | parameterSet, |
ParameterSet const * | subProcessPSet | ||
) |
Definition at line 97 of file ScheduleItems.cc.
References act_table_, actReg_, edm::ServiceRegistry::instance(), preg_, processConfiguration_, and Tree_ALCARECO_cff::schedule.
Referenced by edm::EventProcessor::init().
{ std::auto_ptr<Schedule> schedule( new Schedule(parameterSet, ServiceRegistry::instance().get<service::TriggerNamesService>(), *preg_, *act_table_, actReg_, processConfiguration_, subProcessPSet)); return schedule; }
ServiceToken edm::ScheduleItems::initServices | ( | std::vector< ParameterSet > & | servicePSets, |
ParameterSet & | processPSet, | ||
ServiceToken const & | iToken, | ||
serviceregistry::ServiceLegacy | iLegacy, | ||
bool | associate | ||
) |
Definition at line 35 of file ScheduleItems.cc.
References actReg_, edm::ParameterSet::addParameter(), edm::ServiceToken::copySlotsTo(), and edm::ServiceRegistry::createSet().
Referenced by edm::EventProcessor::init().
{ //create the services ServiceToken token(ServiceRegistry::createSet(pServiceSets, iToken, iLegacy, associate)); //see if any of the Services have to have their PSets stored for(std::vector<ParameterSet>::const_iterator it = pServiceSets.begin(), itEnd = pServiceSets.end(); it != itEnd; ++it) { if(it->exists("@save_config")) { parameterSet.addParameter(it->getParameter<std::string>("@service_type"), *it); } } // Copy slots that hold all the registered callback functions like // PostBeginJob into an ActivityRegistry token.copySlotsTo(*actReg_); return token; }
boost::shared_ptr<ActionTable const> edm::ScheduleItems::act_table_ |
Definition at line 50 of file ScheduleItems.h.
Referenced by edm::EventProcessor::init(), initMisc(), and initSchedule().
boost::shared_ptr<ActivityRegistry> edm::ScheduleItems::actReg_ |
Definition at line 48 of file ScheduleItems.h.
Referenced by clear(), edm::EventProcessor::init(), initSchedule(), and initServices().
boost::shared_ptr<SignallingProductRegistry> edm::ScheduleItems::preg_ |
Definition at line 49 of file ScheduleItems.h.
Referenced by addCPRandTNS(), clear(), edm::EventProcessor::init(), initSchedule(), and ScheduleItems().
boost::shared_ptr<ProcessConfiguration> edm::ScheduleItems::processConfiguration_ |
Definition at line 51 of file ScheduleItems.h.
Referenced by clear(), edm::EventProcessor::init(), initMisc(), and initSchedule().