CMS 3D CMS Logo

DDLPseudoTrap.cc
Go to the documentation of this file.
7 
8 #include <map>
9 #include <utility>
10 
11 class DDCompactView;
12 
14 
15 // Upon encountering an end of the tag, call DDCore's Trap.
19 
21  ev.eval(nmspace, atts.find("dx1")->second),
22  ev.eval(nmspace, atts.find("dx2")->second),
23  ev.eval(nmspace, atts.find("dy1")->second),
24  ev.eval(nmspace, atts.find("dy2")->second),
25  ev.eval(nmspace, atts.find("dz")->second),
26  ev.eval(nmspace, atts.find("radius")->second),
27  (atts.find("atMinusZ")->second == "true") ? true : false);
28 
29  DDLSolid::setReference(nmspace, cpv);
30 }
DDLSolid::setReference
void setReference(const std::string &nmspace, DDCompactView &cpv)
Definition: DDLSolid.cc:13
DDLSolid
DDLSolid processes Box elements.
Definition: DDLSolid.h:30
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
DDLElementRegistry::evaluator
ClhepEvaluator & evaluator()
Definition: DDLElementRegistry.h:42
DDLPseudoTrap::DDLPseudoTrap
DDLPseudoTrap(DDLElementRegistry *myreg)
Definition: DDLPseudoTrap.cc:13
DDCompactView
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:81
DDSolid.h
DDXMLAttribute
std::map< std::string, std::string > DDXMLAttribute
Definition: DDXMLElement.h:45
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DDLPseudoTrap::processElement
void processElement(const std::string &name, const std::string &nmspace, DDCompactView &cpv) override
Processing the element.
Definition: DDLPseudoTrap.cc:16
DDLElementRegistry.h
DDLSolid.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
DDSolidFactory::pseudoTrap
static DDSolid pseudoTrap(const DDName &name, double pDx1, double pDx2, double pDy1, double pDy2, double pDz, double radius, bool atMinusZ)
Definition: DDSolid.cc:611
DDLPseudoTrap.h
ev
bool ev
Definition: Hydjet2Hadronizer.cc:95
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
DDSolid
A DDSolid represents the shape of a part.
Definition: DDSolid.h:39
DDXMLElement::myRegistry_
DDLElementRegistry * myRegistry_
Definition: DDXMLElement.h:173