CMS 3D CMS Logo

DDLElementaryMaterial.cc
Go to the documentation of this file.
7 
8 #include <map>
9 #include <utility>
10 
11 class DDCompactView;
12 
14 
18 
19  DDMaterial mat = DDMaterial(getDDName(nmspace),
20  ev.eval(nmspace, atts.find("atomicNumber")->second),
21  ev.eval(nmspace, atts.find("atomicWeight")->second),
22  ev.eval(nmspace, atts.find("density")->second));
23 
24  DDLMaterial::setReference(nmspace, cpv);
25  clear();
26 }
DDXMLElement::clear
virtual void clear(void)
clear this element's contents.
Definition: DDXMLElement.cc:40
DDLElementaryMaterial.h
ClhepEvaluator.h
DDLElementRegistry
The main class for processing parsed elements.
Definition: DDLElementRegistry.h:23
ClhepEvaluator
Definition: ClhepEvaluator.h:8
DDXMLElement::getAttributeSet
virtual const DDXMLAttribute & getAttributeSet(size_t aIndex=0) const
Get a "row" of attributes, i.e. one attribute set.
Definition: DDXMLElement.cc:54
DDLElementaryMaterial::DDLElementaryMaterial
DDLElementaryMaterial(DDLElementRegistry *myreg)
Definition: DDLElementaryMaterial.cc:13
DDLElementRegistry::evaluator
ClhepEvaluator & evaluator()
Definition: DDLElementRegistry.h:42
DDMaterial
DDMaterial is used to define and access material information.
Definition: DDMaterial.h:45
DDLElementaryMaterial::processElement
void processElement(const std::string &name, const std::string &nmspace, DDCompactView &cpv) override
Processing the element.
Definition: DDLElementaryMaterial.cc:15
DDCompactView
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:81
DDXMLAttribute
std::map< std::string, std::string > DDXMLAttribute
Definition: DDXMLElement.h:45
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DDMaterial.h
DDLMaterial::setReference
virtual void setReference(const std::string &nmspace, DDCompactView &cpv)
Definition: DDLMaterial.cc:13
DDLElementRegistry.h
DDLMaterial.h
DDXMLElement::getDDName
const virtual DDName getDDName(const std::string &defaultNS, const std::string &attname=std::string("name"), size_t aIndex=0)
Definition: DDXMLElement.cc:56
DDXMLElement.h
ev
bool ev
Definition: Hydjet2Hadronizer.cc:95
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
DDXMLElement::myRegistry_
DDLElementRegistry * myRegistry_
Definition: DDXMLElement.h:173
DDLMaterial
DDLMaterial processes Box elements.
Definition: DDLMaterial.h:29