23 #include "CLHEP/Units/GlobalSystemOfUnits.h"
27 #include <boost/lexical_cast.hpp>
39 DDValue val(attribute, value, 0.0);
57 LogDebug(
"ME0GeometryBuilderFromDDD") <<
"Building the geometry service";
60 LogDebug(
"ME0GeometryBuilderFromDDD") <<
"About to run through the ME0 structure\n"
61 <<
" First logical part "
67 LogDebug(
"ME0GeometryBuilderFromDDD") <<
"doSubDets = " << doSubDets;
69 LogDebug(
"ME0GeometryBuilderFromDDD") <<
"start the loop";
74 LogDebug(
"ME0GeometryBuilderFromDDD") <<
"Getting the Muon base Number";
77 LogDebug(
"ME0GeometryBuilderFromDDD") <<
"Start the ME0 Numbering Schema";
81 LogDebug(
"ME0GeometryBuilderFromDDD") <<
"ME0 eta partition rawId: " << rollDetId.rawId() <<
", detId: " << rollDetId;
95 rota.GetComponents(x,y,z);
98 float(y.X()),
float(y.Y()),
float(y.Z()),
99 float(z.X()),
float(z.Y()),
float(z.Z()));
101 float be = dpar[4]/cm;
102 float te = dpar[8]/cm;
103 float ap = dpar[0]/cm;
109 std::vector<float> pars;
116 LogDebug(
"ME0GeometryBuilderFromDDD")
117 <<
"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)
void addFilter(const DDFilter &, log_op op=AND)
ME0GeometryBuilderFromDDD()
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)
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 ...
void setCriteria(const DDValue &nameVal, comp_op, log_op l=AND, bool asString=true, bool merged=true)
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.
virtual int baseNumberToUnitNumber(const MuonBaseNumber)
The DDGenericFilter is a runtime-parametrized Filter looking on DDSpecifcs.