23 #include "CLHEP/Units/GlobalSystemOfUnits.h"
28 #include <boost/lexical_cast.hpp>
32 LogDebug(
"ME0GeometryBuilderfromDDD") <<
"[ME0GeometryBuilderFromDDD::constructor]";
42 DDValue val(attribute, value, 0.0);
60 LogDebug(
"ME0GeometryBuilderFromDDD") <<
"Building the geometry service";
63 LogDebug(
"ME0GeometryBuilderFromDDD") <<
"About to run through the ME0 structure\n"
64 <<
" First logical part "
70 LogDebug(
"ME0GeometryBuilderFromDDD") <<
"doSubDets = " << doSubDets;
72 LogDebug(
"ME0GeometryBuilderFromDDD") <<
"start the loop";
77 LogDebug(
"ME0GeometryBuilderFromDDD") <<
"Getting the Muon base Number";
80 LogDebug(
"ME0GeometryBuilderFromDDD") <<
"Start the ME0 Numbering Schema";
84 LogDebug(
"ME0GeometryBuilderFromDDD") <<
"ME0 eta partition rawId: " << rollDetId.rawId() <<
", detId: " << rollDetId;
98 rota.GetComponents(x,y,z);
101 float(y.X()),
float(y.Y()),
float(y.Z()),
102 float(z.X()),
float(z.Y()),
float(z.Z()));
104 float be = dpar[4]/cm;
105 float te = dpar[8]/cm;
106 float ap = dpar[0]/cm;
112 std::vector<float> pars;
119 LogDebug(
"ME0GeometryBuilderFromDDD")
120 <<
"ME0 " << name <<
" par " << be <<
" " << te <<
" " << ap <<
" " << dpar[0];
const std::vector< double > & parameters(void) const
Give the parameters of the solid.
const DDLogicalPart & logicalPart() const
The logical-part of the current node in the filtered-view.
ME0Geometry * build(const DDCompactView *cview, const MuonDDDConstants &muonConstants)
ME0GeometryBuilderFromDDD()
void addFilter(const DDFilter &, DDLogOp op=DDLogOp::AND)
bool nextSibling()
set the current node to the next sibling ...
const DDRotationMatrix & rotation() const
The absolute rotation of the current node.
const DDSolid & solid(void) const
Returns a reference object of the solid being the shape of this LogicalPart.
type of data representation of DDCompactView
const DDGeoHistory & geoHistory() const
The list of ancestors up to the root-node of the current node.
TkRotation & rotateAxes(const Basic3DVector< T > &newX, const Basic3DVector< T > &newY, const Basic3DVector< T > &newZ)
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DD3Vector
A DD Translation is currently implemented with Root Vector3D.
ME0Geometry * buildGeometry(DDFilteredView &fview, const MuonDDDConstants &muonConstants)
virtual int baseNumberToUnitNumber(const MuonBaseNumber &)
void add(ME0EtaPartition *etaPartition)
Add a ME0 etaPartition to the Geometry.
ESHandle< TrackerGeometry > geometry
~ME0GeometryBuilderFromDDD()
bool firstChild()
set the current node to the first child ...
const DDTranslation & translation() const
The absolute translation of the current node.
MuonBaseNumber geoHistoryToBaseNumber(const DDGeoHistory &history)
ROOT::Math::Rotation3D DDRotationMatrix
A DDRotationMatrix is currently implemented with a ROOT Rotation3D.
const std::string & name() const
Returns the name.
void setCriteria(const DDValue &nameVal, DDCompOp, DDLogOp l=DDLogOp::AND, bool asString=true, bool merged=true)
The DDGenericFilter is a runtime-parametrized Filter looking on DDSpecifcs.