15 std::cout <<
"MuonDDDConstants;:MuonDDDConstants ( const DDCompactView& cpv ) constructor " << std::endl;
29 std::cout <<
"mySpecs.size() = " << mySpecs.size() << std::endl;
31 if ( mySpecs.size() < 25 ) {
32 edm::LogError(
"MuonDDDConstants") <<
" MuonDDDConstants: Missing SpecPars from DetectorDescription." << std::endl;
33 std::string msg =
"MuonDDDConstants does not have the appropriate number of SpecPars associated";
34 msg+=
" 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]) );
44 std::cout <<
"adding DDConstant of " << bit->second.name() <<
" = " <<
int(bit->second.doubles()[0]) << std::endl;
57 std::cout <<
"about to look for ... " << name << std::endl;
60 std::cout <<
"MuonDDDConstants::getValue HAS NO VALUES!" << std::endl;
61 throw cms::Exception(
"GeometryBuildFailure",
"MuonDDDConstants does not have requested value for " + name);
64 std::map<std::string, int>::const_iterator findIt =
namesAndValues_.find(name);
67 std::cout <<
"MuonDDDConstants::getValue was asked for " << name <<
" and had NO clue!" << std::endl;
68 throw cms::Exception(
"GeometryBuildFailure",
"MuonDDDConstants does not have requested value for " + name);
71 std::cout <<
"Value for " << name <<
" is " << findIt->second << std::endl;
73 return findIt->second;
type of data representation of DDCompactView
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 ...