13 edm::LogVerbatim(
"Geometry") <<
"MuonDDDConstants;:MuonDDDConstants ( const DDCompactView& cpv ) constructor ";
27 edm::LogVerbatim(
"Geometry") <<
"MuonDDDConstants::mySpecs.size() = " << mySpecs.size();
29 if (mySpecs.size() < 25) {
30 edm::LogError(
"MuonDDDConstants") <<
" MuonDDDConstants: Missing SpecPars from DetectorDescription.";
32 "MuonDDDConstants does not have the appropriate number of SpecPars associated with the part //MUON.";
36 DDsvalues_type::const_iterator bit = mySpecs.begin();
37 DDsvalues_type::const_iterator eit = mySpecs.end();
38 for (; bit != eit; ++bit) {
39 if (bit->second.isEvaluated()) {
40 this->
addValue(bit->second.name(),
int(bit->second.doubles()[0]));
42 edm::LogVerbatim(
"Geometry") <<
"MuonDDDConstants::adding DDConstant of " << bit->second.name() <<
" = " 43 <<
int(bit->second.doubles()[0]);
51 edm::LogVerbatim(
"Geometry") <<
"about to look for ... " << name << std::endl;
54 edm::LogWarning(
"Geometry") <<
"MuonDDDConstants::getValue HAS NO VALUES!";
55 throw cms::Exception(
"GeometryBuildFailure",
"MuonDDDConstants does not have requested value for " + name);
58 std::map<std::string, int>::const_iterator findIt =
namesAndValues_.find(name);
61 edm::LogWarning(
"Geometry") <<
"MuonDDDConstants::getValue was asked for " << name <<
" and had NO clue!";
62 throw cms::Exception(
"GeometryBuildFailure",
"MuonDDDConstants does not have requested value for " + name);
65 edm::LogVerbatim(
"Geometry") <<
"MuonDDDConstants::Value for " << name <<
" is " << findIt->second;
67 return findIt->second;
MuonDDDConstants()=delete
Compact representation of the geometrical detector hierarchy.
int getValue(const std::string &name) const
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
std::map< std::string, int > namesAndValues_
void addValue(const std::string &name, const int &value)
DDsvalues_type mergedSpecifics() const
bool firstChild()
set the current node to the first child ...