19 #include "CLHEP/Units/GlobalSystemOfUnits.h" 71 DDValue numbOfStrips(
"nStrips");
74 std::vector<const DDsvalues_type* > specs(fview.
specifics());
75 std::vector<const DDsvalues_type* >::iterator is = specs.begin();
76 double nStrips = 0., nPads = 0.;
77 for (;is!=specs.end(); is++)
79 if (
DDfetch( *is, numbOfStrips)) nStrips = numbOfStrips.
doubles()[0];
82 LogDebug(
"GEMGeometryBuilderFromDDD") << ((nStrips == 0. ) ? (
"No nStrips found!!") : (
""));
83 LogDebug(
"GEMGeometryBuilderFromDDD") << ((nPads == 0. ) ? (
"No nPads found!!") : (
""));
88 std::vector<std::string> strpars;
90 strpars.push_back(name);
95 rota.GetComponents(x,y,z);
96 std::vector<double> pars;
97 pars.push_back(dpar[4]);
98 pars.push_back(dpar[8]);
99 pars.push_back(dpar[0]);
101 pars.push_back(nStrips);
102 pars.push_back(nPads);
104 std::vector<double> vtra(3);
105 std::vector<double> vrot(9);
106 vtra[0]=(
float) 1.0 * (tran.x());
107 vtra[1]=(
float) 1.0 * (tran.y());
108 vtra[2]=(
float) 1.0 * (tran.z());
109 vrot[0]=(
float) 1.0 * x.X();
110 vrot[1]=(
float) 1.0 * x.Y();
111 vrot[2]=(
float) 1.0 * x.Z();
112 vrot[3]=(
float) 1.0 * y.X();
113 vrot[4]=(
float) 1.0 * y.Y();
114 vrot[5]=(
float) 1.0 * y.Z();
115 vrot[6]=(
float) 1.0 * z.X();
116 vrot[7]=(
float) 1.0 * z.Y();
117 vrot[8]=(
float) 1.0 * z.Z();
118 rgeo.
insert(gemid.
rawId(), vtra, vrot, pars, strpars);
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 build(const DDCompactView *cview, const MuonDDDConstants &muonConstants, RecoIdealGeometry &rgeo)
void addFilter(const DDFilter &, DDLogOp op=DDLogOp::AND)
void buildGeometry(DDFilteredView &fview, const MuonDDDConstants &muonConstants, RecoIdealGeometry &rgeo)
bool nextSibling()
set the current node to the next sibling ...
const DDRotationMatrix & rotation() const
The absolute rotation of the current node.
bool insert(DetId id, const std::vector< double > &trans, const std::vector< double > &rot, const std::vector< double > &pars)
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 *.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
uint32_t rawId() const
get the raw id
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DD3Vector
A DD Translation is currently implemented with Root Vector3D.
virtual int baseNumberToUnitNumber(const MuonBaseNumber &)
bool firstChild()
set the current node to the first child ...
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.
void setCriteria(const DDValue &nameVal, DDCompOp, DDLogOp l=DDLogOp::AND, bool asString=true, bool merged=true)
The DDGenericFilter is a runtime-parametrized Filter looking on DDSpecifcs.