#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 108 of file ServiceRegistry.h.
References HDQMDatabaseProducer::config, and wrapper.
111 std::vector<edm::ParameterSet>
config;
112 auto manager = std::make_shared<serviceregistry::ServicesManager>(iToken, iLegacy,
config);
113 auto wrapper = std::make_shared<serviceregistry::ServiceWrapper<T> >(iService);
114 manager->put(wrapper);
static HepMC::HEPEVT_Wrapper wrapper
create a service token that holds the service held by iWrapper
Definition at line 119 of file ServiceRegistry.h.
References HDQMDatabaseProducer::config.
120 std::vector<edm::ParameterSet>
config;
121 auto manager = std::make_shared<serviceregistry::ServicesManager>(
config);
122 manager->put(iWrapper);
ServiceToken ServiceRegistry::createServicesFromConfig |
( |
std::string const & |
config | ) |
|
|
static |
Definition at line 97 of file ServiceRegistry.cc.
101 using namespace serviceregistry;
102 auto returnValue = std::make_shared<ServicesManager>(iToken, iLegacy, iPS, associate);
template<typename T >
T& edm::ServiceRegistry::get |
( |
| ) |
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(), rrapi.RRApi::columns(), rrapi.RRApi::count(), rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), rrapi.RRApi::report(), rrapi.RRApi::reports(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), rrapi.RRApi::templates(), and rrapi.RRApi::workspaces().
67 " no ServiceRegistry has been set for this thread");
static void throwThis(Code category, char const *message0="", char const *message1="", char const *message2="", char const *message3="", char const *message4="")
std::shared_ptr< serviceregistry::ServicesManager > manager_
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>();
static void throwThis(Code category, char const *message0="", char const *message1="", char const *message2="", char const *message3="", char const *message4="")
std::shared_ptr< serviceregistry::ServicesManager > manager_
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)