#include <ServiceRegistry.h>
Definition at line 37 of file ServiceRegistry.h.
ServiceRegistry::~ServiceRegistry |
( |
| ) |
|
|
virtual |
ServiceRegistry::ServiceRegistry |
( |
| ) |
|
|
private |
template<typename T >
static ServiceToken edm::ServiceRegistry::createContaining |
( |
std::auto_ptr< T > |
iService | ) |
|
|
inlinestatic |
Definition at line 109 of file ServiceRegistry.h.
References HDQMDatabaseProducer::config, and wrapper.
112 std::vector<edm::ParameterSet>
config;
113 boost::shared_ptr<serviceregistry::ServicesManager> manager(
new serviceregistry::ServicesManager(iToken,
116 boost::shared_ptr<serviceregistry::ServiceWrapper<T> >
117 wrapper(
new serviceregistry::ServiceWrapper<T>(iService));
static HepMC::HEPEVT_Wrapper wrapper
create a service token that holds the service held by iWrapper
Definition at line 123 of file ServiceRegistry.h.
References HDQMDatabaseProducer::config.
124 std::vector<edm::ParameterSet>
config;
125 boost::shared_ptr<serviceregistry::ServicesManager> manager(
new serviceregistry::ServicesManager(config));
126 manager->put(iWrapper);
Definition at line 130 of file ServiceRegistry.h.
References HDQMDatabaseProducer::config.
133 std::vector<edm::ParameterSet>
config;
134 boost::shared_ptr<serviceregistry::ServicesManager> manager(
new serviceregistry::ServicesManager(iToken,
137 manager->put(iWrapper);
ServiceToken ServiceRegistry::createServicesFromConfig |
( |
std::string const & |
config | ) |
|
|
static |
Definition at line 97 of file ServiceRegistry.cc.
101 using namespace serviceregistry;
102 boost::shared_ptr<ServicesManager> returnValue(
new ServicesManager(iToken, iLegacy, iPS, associate));
template<typename T >
T& edm::ServiceRegistry::get |
( |
void |
| ) |
const |
|
inline |
Definition at line 63 of file ServiceRegistry.h.
References manager_, edm::errors::NotFound, and edm::Exception::throwThis().
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().
67 " no ServiceRegistry has been set for this thread");
boost::shared_ptr< serviceregistry::ServicesManager > manager_
static void throwThis(Code category, char const *message0="", char const *message1="", char const *message2="", char const *message3="", char const *message4="")
template<typename T >
bool edm::ServiceRegistry::isAvailable |
( |
| ) |
const |
|
inline |
Definition at line 73 of file ServiceRegistry.h.
References manager_, edm::errors::NotFound, and edm::Exception::throwThis().
77 " no ServiceRegistry has been set for this thread");
79 return manager_->
template isAvailable<T>();
boost::shared_ptr< serviceregistry::ServicesManager > manager_
static void throwThis(Code category, char const *message0="", char const *message1="", char const *message2="", char const *message3="", char const *message4="")
void ServiceRegistry::unsetContext |
( |
ServiceToken const & |
iOldToken | ) |
|
|
private |
friend class edm::FwkImpl |
|
friend |
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
|
friend |
CALO JETS
PF JETS
Definition at line 9 of file print_TrackerMap.cc.
22 std::cout <<
"ready to use file " << filename <<
" to create the map " << title <<
" and save it in " <<outfile << std::endl;
36 printTrackerMap(filename,title,outfile,size,logscale,withpixel,min,max);
39 else {
std::cout <<
"Wrong number of arguments: " <<
argc << std::endl;
return -1; }
EventID const & min(EventID const &lh, EventID const &rh)
void printTrackerMap(const std::string filename, const std::string title, const std::string outfile, const int size, const std::string logscale, std::string withpixel, const float min, const float max)
tuple size
Write out results.
EventID const & max(EventID const &lh, EventID const &rh)