11 #include "CLHEP/Units/GlobalSystemOfUnits.h" 33 LogDebug(
"ME0GeometryParsFromDD") <<
"Building the geometry service";
34 LogDebug(
"ME0GeometryParsFromDD") <<
"About to run through the ME0 structure\n" 35 <<
" First logical part " 42 LogDebug(
"ME0GeometryParsFromDD") <<
"doChamber = " << doChambers;
87 <<
" "<< detId <<std::endl;
100 <<
" "<< detId <<std::endl;
113 <<
" "<< detId <<std::endl;
116 DDValue numbOfStrips(
"nStrips");
118 const std::vector<const DDsvalues_type*> &
specs = fv.
specifics();
119 double nStrips = 0., nPads = 0.;
120 for (
auto const & is: specs){
121 if (
DDfetch( is, numbOfStrips)) nStrips = numbOfStrips.
doubles()[0];
125 << ((nStrips == 0. ) ? (
"No nStrips found!!") : (
"Number of strips: " + std::to_string(nStrips)));
127 << ((nPads == 0. ) ? (
"No nPads found!!") : (
"Number of pads: " + std::to_string(nPads)));
130 pars.emplace_back(nStrips);
131 pars.emplace_back(nPads);
145 LogDebug(
"ME0GeometryParsFromDD") <<
"dimension dx1 "<< dpar[4] <<
", dx2 "<< dpar[8] <<
", dy "<< dpar[0] <<
", dz "<< dpar[3];
146 return {dpar[4], dpar[8], dpar[0], dpar[3]};
152 return {tran.x(), tran.y(), tran.z()};
159 rota.GetComponents(x,y,z);
160 return { x.X(), x.Y(), x.Z(),
162 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 ...
ME0DetId layerId() const
Return the corresponding LayerId (mask eta partition)
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 buildEtaPartition(DDFilteredView &fv, ME0DetId detId, RecoIdealGeometry &rgeo)
std::vector< double > getDimension(DDFilteredView &fv)
ME0DetId chamberId() const
Return the corresponding ChamberId (mask layers)
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
void build(const DDCompactView *, const MuonDDDConstants &, RecoIdealGeometry &)
const DDSolid & solid(void) const
Returns a reference object of the solid being the shape of this LogicalPart.
Compact representation of the geometrical detector hierarchy.
const DDGeoHistory & geoHistory() const
The list of ancestors up to the root-node of the current node.
void buildChamber(DDFilteredView &fv, ME0DetId detId, RecoIdealGeometry &rgeo)
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
int baseNumberToUnitNumber(const MuonBaseNumber &) override
std::vector< double > getRotation(DDFilteredView &fv)
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DD3Vector
A DD Translation is currently implemented with Root Vector3D.
void buildGeometry(DDFilteredView &, const MuonDDDConstants &, RecoIdealGeometry &)
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
void buildLayer(DDFilteredView &fv, ME0DetId detId, RecoIdealGeometry &rgeo)
std::vector< double > getTranslation(DDFilteredView &fv)
MuonBaseNumber geoHistoryToBaseNumber(const DDGeoHistory &history)
const std::string & name() const
Returns the name.