15 std::string attribute =
"OnlyForMuonNumbering";
16 std::string
value =
"any";
17 DDValue val(attribute, value, 0.0);
36 if ( mySpecs.size() < 25 ) {
37 edm::LogError(
"MuonDDDConstants") <<
" MuonDDDConstants: Missing SpecPars from DetectorDescription." << std::endl;
38 std::string
msg =
"MuonDDDConstants does not have the appropriate number of SpecPars associated";
39 msg+=
" with the part //MUON.";
43 DDsvalues_type::const_iterator bit = mySpecs.begin();
44 DDsvalues_type::const_iterator eit = mySpecs.end();
45 for ( ; bit != eit; ++bit ) {
46 if ( bit->second.isEvaluated() ) {
47 this->
addValue( bit->second.name(), int(bit->second.doubles()[0]) );
63 std::cout <<
"MuonDDDConstants::getValue HAS NO VALUES!" << std::endl;
64 throw cms::Exception(
"GeometryBuildFailure",
"MuonDDDConstants does not have requested value for " + name);
67 std::map<std::string, int>::const_iterator findIt =
namesAndValues_.find(name);
70 std::cout <<
"MuonDDDConstants::getValue was asked for " << name <<
" and had NO clue!" << std::endl;
71 throw cms::Exception(
"GeometryBuildFailure",
"MuonDDDConstants does not have requested value for " + name);
74 return findIt->second;
void addFilter(const DDFilter &, log_op op=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, comp_op, log_op l=AND, bool asString=true, bool merged=true)
The DDGenericFilter is a runtime-parametrized Filter looking on DDSpecifcs.