14 std::cout <<
"MuonDDDConstants;:MuonDDDConstants ( const DDCompactView& cpv ) constructor " << std::endl;
28 std::cout <<
"mySpecs.size() = " << mySpecs.size() << std::endl;
30 if ( mySpecs.size() < 25 ) {
31 edm::LogError(
"MuonDDDConstants") <<
" MuonDDDConstants: Missing SpecPars from DetectorDescription." << std::endl;
32 std::string msg =
"MuonDDDConstants does not have the appropriate number of SpecPars associated";
33 msg+=
" with the part //MUON.";
37 DDsvalues_type::const_iterator bit = mySpecs.begin();
38 DDsvalues_type::const_iterator eit = mySpecs.end();
39 for ( ; bit != eit; ++bit ) {
40 if ( bit->second.isEvaluated() ) {
41 this->
addValue( bit->second.name(),
int(bit->second.doubles()[0]) );
43 std::cout <<
"adding DDConstant of " << bit->second.name() <<
" = " <<
int(bit->second.doubles()[0]) << std::endl;
51 std::cout <<
"about to look for ... " << name << std::endl;
54 std::cout <<
"MuonDDDConstants::getValue HAS NO VALUES!" << std::endl;
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 std::cout <<
"MuonDDDConstants::getValue was asked for " << name <<
" and had NO clue!" << std::endl;
62 throw cms::Exception(
"GeometryBuildFailure",
"MuonDDDConstants does not have requested value for " + name);
65 std::cout <<
"Value for " << name <<
" is " << findIt->second << std::endl;
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::maps an index to a DDValue. The index corresponds to the index assigned to the name of the std::...
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 ...