19 #include "CLHEP/Units/GlobalSystemOfUnits.h" 44 LogDebug(
"GEMGeometryParsFromDD") <<
"Building the geometry service";
45 LogDebug(
"GEMGeometryParsFromDD") <<
"About to run through the GEM structure\n" 52 LogDebug(
"GEMGeometryParsFromDD") <<
"doSuperChamber = " << doSuper;
67 if (detIdCh.
layer() == 1) {
102 double dx1 = dpar[4];
103 double dx2 = dpar[8];
111 std::vector<double> pars{dx1, dx2,
dy, dz};
115 LogDebug(
"GEMGeometryParsFromDD") <<
"dimension dx1 " << dx1 <<
", dx2 " << dx2 <<
", dy " << dy <<
", dz " <<
dz;
127 double dx1 = dpar[4];
128 double dx2 = dpar[8];
134 std::vector<double> pars{dx1, dx2,
dy, dz};
138 LogDebug(
"GEMGeometryParsFromDD") <<
"dimension dx1 " << dx1 <<
", dx2 " << dx2 <<
", dy " << dy <<
", dz " <<
dz;
147 DDValue numbOfStrips(
"nStrips");
150 double nStrips = 0., nPads = 0.;
151 for (
auto const& is : specs) {
153 nStrips = numbOfStrips.
doubles()[0];
155 nPads = numbOfPads.
doubles()[0];
157 LogDebug(
"GEMGeometryParsFromDD") << ((nStrips == 0.) ? (
"No nStrips found!!")
158 : (
"Number of strips: " + std::to_string(nStrips)));
159 LogDebug(
"GEMGeometryParsFromDD") << ((nPads == 0.) ? (
"No nPads found!!")
160 : (
"Number of pads: " + std::to_string(nPads)));
167 double dx1 = dpar[4];
168 double dx2 = dpar[8];
170 std::vector<double> pars{dx1, dx2,
dy,
dz,
nStrips, nPads};
174 LogDebug(
"GEMGeometryParsFromDD") <<
"dimension dx1 " << dx1 <<
", dx2 " << dx2 <<
", dy " << dy <<
", dz " <<
dz;
180 return {tran.x(), tran.y(), tran.z()};
186 rota.GetComponents(x, y, z);
187 return {x.X(), x.Y(), x.Z(), y.X(), y.Y(), y.Z(), 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)
ROOT::Math::Rotation3D DDRotationMatrix
A DDRotationMatrix is currently implemented with a ROOT Rotation3D.
constexpr uint32_t rawId() const
get the raw id
const DDSolid & solid(void) const
Returns a reference object of the solid being the shape of this LogicalPart.
GEMDetId superChamberId() const
void buildEtaPartition(DDFilteredView &fv, GEMDetId detId, RecoIdealGeometry &rgeo)
Compact representation of the geometrical detector hierarchy.
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 *.
nStrips
1.2 is to make the matching window safely the two nearest strips 0.35 is the size of an ME0 chamber i...
DDSolid solidB(void) const
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
GEMDetId chamberId() const
std::vector< double > getRotation(DDFilteredView &fv)
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DD3Vector
A DD Translation is currently implemented with Root Vector3D.
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)
int baseNumberToUnitNumber(const MuonBaseNumber &) override
const std::string & name() const
Returns the name.