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