18 #include "CLHEP/Units/GlobalSystemOfUnits.h" 50 buildGeometry(theGeometry, fview, muonConstants);
83 DTSuperLayer* sl = buildSuperLayer(fv, chamber, type, muonConstants);
91 DTLayer* layer = buildLayer(fv, sl, type, muonConstants);
92 theGeometry->add(layer);
101 theGeometry->add(chamber);
117 vector<double> par = extractParameters(fv);
119 float width = par[0]/cm;
120 float length = par[1]/cm;
121 float thickness = par[2]/cm;
146 vector<double> par = extractParameters(fv);
148 float width = par[0]/cm;
149 float length = par[1]/cm;
150 float thickness = par[2]/cm;
161 chamber->
add(slayer);
177 vector<double> par = extractParameters(fv);
178 float width = par[0]/cm;
179 float length = par[1]/cm;
180 float thickness = par[2]/cm;
187 int firstWire=fv.
copyno();
188 par = extractParameters(fv);
189 float wireLength = par[1]/cm;
199 DTLayer* layer =
new DTLayer(layId, surf, topology, layerType, sl);
211 while (A.shape() !=
ddbox) {
230 float(trans.z()/cm));
239 rotation.GetComponents(x,y,z);
247 float(y.X()),
float(y.Y()),
float(y.Z()),
248 float(z.X()),
float(z.Y()),
float(z.Z()));
virtual ~DTGeometryBuilderFromDDD()
Destructor.
const std::vector< double > & parameters(void) const
Give the parameters of the solid.
bool parent()
set the current node to the parent node ...
const DDLogicalPart & logicalPart() const
The logical-part of the current node in the filtered-view.
CaloTopology const * topology(0)
bool nextSibling()
set the current node to the next sibling ...
const DDRotationMatrix & rotation() const
The absolute rotation of the current node.
void add(DTLayer *l)
Add layer to the SL which owns it.
const DDSolid & solid(void) const
Returns a reference object of the solid being the shape of this LogicalPart.
DTLayer * buildLayer(DDFilteredView &fv, DTSuperLayer *sl, const std::string &type, const MuonDDDConstants &muonConstants) const
create the layer
type of data representation of DDCompactView
const DDGeoHistory & geoHistory() const
The list of ancestors up to the root-node of the current node.
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
A DDSolid represents the shape of a part.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
int copyno() const
Copy number associated with the current node.
T x() const
Cartesian x coordinate.
DTChamber * buildChamber(DDFilteredView &fv, const std::string &type, const MuonDDDConstants &muonConstants) const
create the chamber
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DD3Vector
A DD Translation is currently implemented with Root Vector3D.
void buildGeometry(std::shared_ptr< DTGeometry > theGeometry, DDFilteredView &fv, const MuonDDDConstants &muonConstants) 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::...
DTSuperLayer * buildSuperLayer(DDFilteredView &fv, DTChamber *chamber, const std::string &type, const MuonDDDConstants &muonConstants) const
create the SL
DDSolidShape shape(void) const
The type of the solid.
std::vector< double > extractParameters(DDFilteredView &fv) const
get parameter also for boolean solid.
const std::vector< std::string > & strings() const
a reference to the std::string-valued values stored in the given instance of DDValue ...
DDSolid solidA(void) const
RCPPlane plane(const DDFilteredView &fv, Bounds *bounds) const
DDsvalues_type mergedSpecifics() const
DTGeometryBuilderFromDDD()
Constructor.
void add(DTSuperLayer *sl)
Add SL to the chamber which takes ownership.
void build(std::shared_ptr< DTGeometry > theGeometry, const DDCompactView *cview, const MuonDDDConstants &muonConstants)
int getDetId(const MuonBaseNumber &num) const
bool firstChild()
set the current node to the first child ...
const DDTranslation & translation() const
The absolute translation of the current node.
MuonBaseNumber geoHistoryToBaseNumber(const DDGeoHistory &history)
ROOT::Math::Rotation3D DDRotationMatrix
A DDRotationMatrix is currently implemented with a ROOT Rotation3D.