CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MuonGeometryConstants.cc
Go to the documentation of this file.
2 
5 
6 //#define EDM_ML_DEBUG
7 
9 #ifdef EDM_ML_DEBUG
10  edm::LogVerbatim("MuonGeom") << "about to look for ... " << name << std::endl;
11 #endif
12  if (namesAndValues_.empty())
13  throw cms::Exception("GeometryBuildFailure", "MuonGeometryConstants does not have requested value for " + name);
14 
15  std::map<std::string, int>::const_iterator findIt = namesAndValues_.find(name);
16  if (findIt == namesAndValues_.end())
17  throw cms::Exception("GeometryBuildFailure", "MuonGeometryConstants does not have requested value for " + name);
18 
19 #ifdef EDM_ML_DEBUG
20  edm::LogVerbatim("MuonGeom") << "MuonGeometryConstants::Value for " << name << " is " << findIt->second;
21 #endif
22  return findIt->second;
23 }
24 
26 
28 
Log< level::Info, true > LogVerbatim
int getValue(const std::string &name) const
void addValue(const std::string &name, const int &value)
#define TYPELOOKUP_DATA_REG(_dataclass_)
Definition: typelookup.h:102
std::map< std::string, int > namesAndValues_