1 #ifndef SimG4Core_ComponentFactoryByName_H 2 #define SimG4Core_ComponentFactoryByName_H 16 throw cms::Exception(
"SimG4CoreNotification",
" ComponentFactoryByName::getBuilder: No Builder registered to the Factory.");
19 throw cms::Exception(
"SimG4CoreNotification",
" ComponentFactoryByName::getBuilder: The Component "+name+
" is not registered to the Factory.");
21 return (
myMap()[name]);
26 throw cms::Exception(
"SimG4CoreNotification",
" ComponentFactoryByName::setBuilder: The registration of Components without name is not allowed.");
34 static BuilderMapType me_;
static B * getBuilder(const std::string &name)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
static BuilderMapType & myMap()
static const std::string B
std::map< std::string, B * > BuilderMapType
static void setBuilder(B *in, const std::string &name)