23 #include "CLHEP/Units/GlobalSystemOfUnits.h"
38 DDValue val(attribute, value, 0.0);
56 LogDebug(
"GEMGeometryBuilderFromDDD") <<
"Building the geometry service";
59 LogDebug(
"GEMGeometryBuilderFromDDD") <<
"About to run through the GEM structure\n"
60 <<
" First logical part "
64 LogDebug(
"GEMGeometryBuilderFromDDD") <<
"doSubDets = " << doSubDets;
67 LogDebug(
"GEMGeometryBuilderFromDDD") <<
"start the loop";
71 LogDebug(
"GEMGeometryBuilderFromDDD") <<
"Getting the Muon base Number";
73 LogDebug(
"GEMGeometryBuilderFromDDD") <<
"Start the GEM Numbering Schema";
78 LogDebug(
"GEMGeometryBuilderFromDDD") <<
"Getting the Unit Number";
80 LogDebug(
"GEMGeometryBuilderFromDDD") <<
"Getting the GEM det Id "<<
detid;
85 LogDebug(
"GEMGeometryBuilderFromDDD") <<
"The GEMDetid is "<<gemmid;
87 DDValue numbOfStrips(
"nStrips");
90 std::vector<const DDsvalues_type* > specs(fview.
specifics());
91 std::vector<const DDsvalues_type* >::iterator is = specs.begin();
92 double nStrips = 0., nPads = 0.;
93 for (;is != specs.end(); is++)
95 if (
DDfetch( *is, numbOfStrips)) nStrips = numbOfStrips.
doubles()[0];
98 LogDebug(
"GEMGeometryBuilderFromDDD") << ((nStrips == 0. ) ? (
"No nStrips found!!") : (
""));
99 LogDebug(
"GEMGeometryBuilderFromDDD") << ((nPads == 0. ) ? (
"No nPads found!!") : (
""));
116 rota.GetComponents(x,y,z);
119 float(y.X()),
float(y.Y()),
float(y.Z()),
120 float(z.X()),
float(z.Y()),
float(z.Z()));
123 float be = dpar[4]/cm;
124 float te = dpar[8]/cm;
125 float ap = dpar[0]/cm;
130 std::vector<float> pars;
131 pars.push_back(dpar[4]/cm);
132 pars.push_back(dpar[8]/cm);
133 pars.push_back(dpar[0]/cm);
134 pars.push_back(nStrips);
135 pars.push_back(nPads);
137 LogDebug(
"GEMGeometryBuilderFromDDD") <<
"GEM "<<name
138 <<
" par "<<dpar[4]/cm
139 <<
" "<<dpar[8]/cm<<
" "<<dpar[3]/cm<<
" "
152 LogDebug(
"GEMGeometryBuilderFromDDD") <<
" Number of strips "<<nStrips<<
" Number of pads "<<nPads;
158 std::list<GEMEtaPartition *> gepls;
164 gepls.push_back(gep);
const std::vector< double > & parameters(void) const
Give the parameters of the solid.
const DDLogicalPart & logicalPart() const
The logical-part of the current node in the filtered-view.
const std::vector< double > & doubles() const
a reference to the double-valued values stored in the given instance of DDValue
void addFilter(const DDFilter &, log_op op=AND)
GEMGeometry * buildGeometry(DDFilteredView &fview, const MuonDDDConstants &muonConstants)
bool nextSibling()
set the current node to the next sibling ...
const DDRotationMatrix & rotation() const
The absolute rotation of the current node.
GEMGeometryBuilderFromDDD(bool comp11)
const DDSolid & solid(void) const
Returns a reference object of the solid being the shape of this LogicalPart.
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 *.
TkRotation & rotateAxes(const Basic3DVector< T > &newX, const Basic3DVector< T > &newY, const Basic3DVector< T > &newZ)
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
GEMGeometry * build(const DDCompactView *cview, const MuonDDDConstants &muonConstants)
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DD3Vector
A DD Translation is currently implemented with Root Vector3D.
virtual int baseNumberToUnitNumber(const MuonBaseNumber &)
void add(GEMEtaPartition *etaPartition)
Add a GEM etaPartition to the Geometry.
~GEMGeometryBuilderFromDDD()
ESHandle< TrackerGeometry > geometry
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)
const DDTranslation & translation() const
The absolute translation of the current node.
std::vector< const DDsvalues_type * > specifics() const
MuonBaseNumber geoHistoryToBaseNumber(const DDGeoHistory &history)
ROOT::Math::Rotation3D DDRotationMatrix
A DDRotationMatrix is currently implemented with a ROOT Rotation3D.
const std::string & name() const
Returns the name.
The DDGenericFilter is a runtime-parametrized Filter looking on DDSpecifcs.