24 using namespace geant_units;
25 using namespace geant_units::operators;
50 buildGeometry(theGeometry, fview, muonConstants);
74 DTChamber* chamber = buildChamber(fv, type, muonConstants);
81 DTSuperLayer* sl = buildSuperLayer(fv, chamber, type, muonConstants);
89 DTLayer*
layer = buildLayer(fv, sl, type, muonConstants);
90 theGeometry.
add(layer);
99 theGeometry.
add(chamber);
116 vector<double> par = extractParameters(fv);
123 edm::LogVerbatim(
"DTGeometryBuilder") <<
"(1) detId: " << rawid <<
" par[0]: " << par[0] <<
" par[1]: " << par[1]
124 <<
" par[2]: " << par[2];
143 vector<double> par = extractParameters(fv);
145 edm::LogVerbatim(
"DTGeometryBuilder") <<
"(2) detId: " << rawid <<
" par[0]: " << par[0] <<
" par[1]: " << par[1]
146 <<
" par[2]: " << par[2];
161 chamber->
add(slayer);
175 vector<double> par = extractParameters(fv);
182 edm::LogVerbatim(
"DTGeometryBuilder") <<
"(3) detId: " << rawid <<
" par[0]: " << par[0] <<
" par[1]: " << par[1]
183 <<
" par[2]: " << par[2];
188 int firstWire = fv.
copyno();
189 par = extractParameters(fv);
193 <<
" wireLenght in ddd, wpar[1] in dd4hep: " << wireLength
194 <<
" firstWire: " << firstWire;
201 DTTopology topology(firstWire, WCounter, wireLength);
233 LogTrace(
"DTGeometryBuilderFromDDD") <<
"DTGeometryBuilderFromDDD::plane "
234 <<
" posResult: " << posResult << std::endl;
239 rotation.GetComponents(x, y, z);
Log< level::Info, true > LogVerbatim
virtual ~DTGeometryBuilderFromDDD()
Destructor.
const std::vector< double > & parameters(void) const
Give the parameters of the solid.
bool parent()
set the current node to the parent node ...
MuonBaseNumber geoHistoryToBaseNumber(const DDGeoHistory &history) const
const DDLogicalPart & logicalPart() const
The logical-part of the current node in the filtered-view.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double >> DD3Vector
RectangularPlaneBounds * getRecPlaneBounds(const std::vector< double >::const_iterator &shapeStart)
DTSuperLayer * buildSuperLayer(DDFilteredView &fv, DTChamber *chamber, const std::string &type, const MuonGeometryConstants &muonConstants) const
create the SL
bool nextSibling()
set the current node to the next sibling ...
const DDRotationMatrix & rotation() const
The absolute rotation of the current node.
void build(DTGeometry &theGeometry, const DDCompactView *cview, const MuonGeometryConstants &muonConstants)
void add(DTLayer *l)
Add layer to the SL which owns it.
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.
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
A DDSolid represents the shape of a part.
constexpr std::array< uint8_t, layerIndexSize > layer
int copyno() const
Copy number associated with the current node.
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
ROOT::Math::Rotation3D DDRotationMatrix
A DDRotationMatrix is currently implemented with a ROOT Rotation3D.
DDSolidShape shape(void) const
The type of the solid.
std::vector< double > extractParameters(DDFilteredView &fv) const
get parameter also for boolean solid.
const std::vector< std::string > & strings() const
a reference to the std::string-valued values stored in the given instance of DDValue ...
DDSolid solidA(void) const
void buildGeometry(DTGeometry &theGeometry, DDFilteredView &fv, const MuonGeometryConstants &muonConstants) const
RCPPlane plane(const DDFilteredView &fv, Bounds *bounds) const
DDsvalues_type mergedSpecifics() const
DTChamber * buildChamber(DDFilteredView &fv, const std::string &type, const MuonGeometryConstants &muonConstants) const
create the chamber
DTGeometryBuilderFromDDD()
Constructor.
DTLayer * buildLayer(DDFilteredView &fv, DTSuperLayer *sl, const std::string &type, const MuonGeometryConstants &muonConstants) const
create the layer
void add(DTSuperLayer *sl)
Add SL to the chamber which takes ownership.
int getDetId(const MuonBaseNumber &num) const
bool firstChild()
set the current node to the first child ...
constexpr NumType convertMmToCm(NumType millimeters)
const DDTranslation & translation() const
The absolute translation of the current node.
void add(DTChamber *ch)
Add a DTChamber to Geometry.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation