|
|
Go to the documentation of this file.
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) {
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()};
DDSolid solidB(void) const
MuonBaseNumber geoHistoryToBaseNumber(const DDGeoHistory &history) const
constexpr int layer() const
std::vector< double > getRotation(DDFilteredView &fv)
const DDLogicalPart & logicalPart() const
The logical-part of the current node in the filtered-view.
constexpr GEMDetId superChamberId() const
bool parent()
set the current node to the parent node ...
ROOT::Math::Rotation3D DDRotationMatrix
A DDRotationMatrix is currently implemented with a ROOT Rotation3D.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DD3Vector
A DD Translation is currently implemented with Root Vector3D.
void buildSuperChamber(DDFilteredView &fv, GEMDetId detId, RecoIdealGeometry &rgeo)
bool firstChild()
set the current node to the first child ...
int baseNumberToUnitNumber(const MuonBaseNumber &) override
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Compact representation of the geometrical detector hierarchy.
void build(const DDCompactView *cview, const MuonGeometryConstants &muonConstants, RecoIdealGeometry &rgeo)
bool nextSibling()
set the current node to the next sibling ...
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
const std::string & name() const
Returns the name.
const DDGeoHistory & geoHistory() const
The list of ancestors up to the root-node of the current node.
std::vector< const DDsvalues_type * > specifics() const
nStrips
1.2 is to make the matching window safely the two nearest strips 0.35 is the size of an ME0 chamber i...
void buildEtaPartition(DDFilteredView &fv, GEMDetId detId, RecoIdealGeometry &rgeo)
constexpr uint32_t rawId() const
get the raw id
void buildChamber(DDFilteredView &fv, GEMDetId detId, RecoIdealGeometry &rgeo)
const DDTranslation & translation() const
The absolute translation of the current node.
constexpr GEMDetId chamberId() const
std::vector< double > getTranslation(DDFilteredView &fv)
const std::vector< double > & parameters(void) const
Give the parameters of the solid.
const DDRotationMatrix & rotation() const
The absolute rotation of the current node.
void buildGeometry(DDFilteredView &fview, const MuonGeometryConstants &muonConstants, RecoIdealGeometry &rgeo)
DDSolid solidA(void) const
const std::vector< double > & doubles() const
a reference to the double-valued values stored in the given instance of DDValue
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.