19 #include "CLHEP/Units/GlobalSystemOfUnits.h" 49 LogDebug(
"GEMGeometryParsFromDD") <<
"Building the geometry service";
50 LogDebug(
"GEMGeometryParsFromDD") <<
"About to run through the GEM structure\n" 51 <<
" First logical part " 58 LogDebug(
"GEMGeometryParsFromDD") <<
"doSuperChamber = " << doSuper;
71 if (detIdCh.
layer() == 1){
102 <<
" "<< detId <<std::endl;
118 std::vector<double> pars{dx1, dx2,
dy, dz};
122 LogDebug(
"GEMGeometryParsFromDD") <<
"dimension dx1 "<< dx1 <<
", dx2 "<< dx2 <<
", dy "<< dy <<
", dz "<<
dz;
130 <<
" "<< detId <<std::endl;
144 std::vector<double> pars{dx1, dx2,
dy, dz};
148 LogDebug(
"GEMGeometryParsFromDD") <<
"dimension dx1 "<< dx1 <<
", dx2 "<< dx2 <<
", dy "<< dy <<
", dz "<<
dz;
156 <<
" "<< detId <<std::endl;
159 DDValue numbOfStrips(
"nStrips");
161 const std::vector<const DDsvalues_type*> &
specs = fv.
specifics();
162 double nStrips = 0., nPads = 0.;
163 for (
auto const & is: specs){
164 if (
DDfetch( is, numbOfStrips)) nStrips = numbOfStrips.
doubles()[0];
168 << ((nStrips == 0. ) ? (
"No nStrips found!!") : (
"Number of strips: " + std::to_string(nStrips)));
170 << ((nPads == 0. ) ? (
"No nPads found!!") : (
"Number of pads: " + std::to_string(nPads)));
180 std::vector<double> pars{dx1, dx2,
dy,
dz, nStrips, nPads};
184 LogDebug(
"GEMGeometryParsFromDD") <<
"dimension dx1 "<< dx1 <<
", dx2 "<< dx2 <<
", dy "<< dy <<
", dz "<<
dz;
191 return {tran.x(), tran.y(), tran.z()};
198 rota.GetComponents(x,y,z);
199 return { x.X(), x.Y(), x.Z(),
201 z.X(), z.Y(), z.Z() };
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.
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 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.
GEMDetId superChamberId() const
Return the corresponding superChamberId.
void buildEtaPartition(DDFilteredView &fv, GEMDetId detId, RecoIdealGeometry &rgeo)
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 *.
DDSolid solidB(void) const
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
GEMDetId chamberId() const
Return the corresponding ChamberId.
uint32_t rawId() const
get the raw id
std::vector< double > getRotation(DDFilteredView &fv)
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DD3Vector
A DD Translation is currently implemented with Root Vector3D.
int layer() const
Layer id: each station have two layers of chambers: layer 1 is the inner chamber and layer 2 is the o...
void buildChamber(DDFilteredView &fv, GEMDetId detId, RecoIdealGeometry &rgeo)
DDSolid solidA(void) const
std::vector< double > getTranslation(DDFilteredView &fv)
void buildSuperChamber(DDFilteredView &fv, GEMDetId detId, RecoIdealGeometry &rgeo)
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.
int baseNumberToUnitNumber(const MuonBaseNumber &) override
const std::string & name() const
Returns the name.