15 std::cout <<
"MuonDDDConstants;:MuonDDDConstants ( const DDCompactView& cpv ) constructor " << std::endl;
38 std::cout <<
"mySpecs.size() = " << mySpecs.size() << std::endl;
40 if ( mySpecs.size() < 25 ) {
41 edm::LogError(
"MuonDDDConstants") <<
" MuonDDDConstants: Missing SpecPars from DetectorDescription." << std::endl;
42 std::string msg =
"MuonDDDConstants does not have the appropriate number of SpecPars associated";
43 msg+=
" with the part //MUON.";
47 DDsvalues_type::const_iterator bit = mySpecs.begin();
48 DDsvalues_type::const_iterator eit = mySpecs.end();
49 for ( ; bit != eit; ++bit ) {
50 if ( bit->second.isEvaluated() ) {
51 this->
addValue( bit->second.name(), int(bit->second.doubles()[0]) );
53 std::cout <<
"adding DDConstant of " << bit->second.name() <<
" = " << int(bit->second.doubles()[0]) << std::endl;
66 std::cout <<
"about to look for ... " << name << std::endl;
69 std::cout <<
"MuonDDDConstants::getValue HAS NO VALUES!" << std::endl;
70 throw cms::Exception(
"GeometryBuildFailure",
"MuonDDDConstants does not have requested value for " + name);
73 std::map<std::string, int>::const_iterator findIt =
namesAndValues_.find(name);
76 std::cout <<
"MuonDDDConstants::getValue was asked for " << name <<
" and had NO clue!" << std::endl;
77 throw cms::Exception(
"GeometryBuildFailure",
"MuonDDDConstants does not have requested value for " + name);
80 std::cout <<
"Value for " << name <<
" is " << findIt->second << std::endl;
82 return findIt->second;
void addFilter(const DDFilter &, DDLogOp op=DDLogOp::AND)
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 ...
void setCriteria(const DDValue &nameVal, DDCompOp, DDLogOp l=DDLogOp::AND, bool asString=true, bool merged=true)
The DDGenericFilter is a runtime-parametrized Filter looking on DDSpecifcs.