20 #include "CLHEP/Units/GlobalSystemOfUnits.h" 58 DDValue numbOfStrips(
"nStrips");
62 for (
auto & spec :
specs){
63 if (
DDfetch( spec, numbOfStrips)){
67 if (nStrips == 0 )
std::cout <<
"No strip found!!"<<std::endl;
72 const std::vector<std::string> strpars = {name};
77 rota.GetComponents(x,y,z);
78 std::vector<double> pars;
80 const double width = dpar[0];
81 const double length = dpar[1];
82 const double thickness = dpar[2];
83 pars = {
width, length, thickness, numbOfStrips.
doubles()[0]};
87 dpar[4] , dpar[8] , dpar[0] ,
93 const std::vector<double> vtra = {tran.x(), tran.y(), tran.z()};
94 const std::vector<double> vrot = {x.X(), x.Y(), x.Z(),
const std::vector< double > & parameters(void) const
Give the parameters of the solid.
void build(const DDCompactView *cview, const MuonDDDConstants &muonConstants, RecoIdealGeometry &rgeo)
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
int baseNumberToUnitNumber(const MuonBaseNumber &) override
void buildGeometry(DDFilteredView &fview, const MuonDDDConstants &muonConstants, RecoIdealGeometry &rgeo)
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)
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.
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
uint32_t rawId() const
get the raw id
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DD3Vector
A DD Translation is currently implemented with Root Vector3D.
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
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.