Go to the documentation of this file.
20 #include "CLHEP/Units/GlobalSystemOfUnits.h"
55 DDValue numbOfStrips(
"nStrips");
59 for (
auto& spec :
specs) {
60 if (
DDfetch(spec, numbOfStrips)) {
65 std::cout <<
"No strip found!!" << std::endl;
70 const std::vector<std::string> strpars = {
name};
75 rota.GetComponents(
x,
y,
z);
76 std::vector<double> pars;
77 if (dpar.size() == 3) {
78 const double width = dpar[0];
79 const double length = dpar[1];
84 dpar[4] , dpar[8] , dpar[0] , 0.4, numbOfStrips.
doubles()[0]
88 const std::vector<double> vtra = {tran.x(), tran.y(), tran.z()};
89 const std::vector<double> vrot = {
x.X(),
x.Y(),
x.Z(),
y.X(),
y.Y(),
y.Z(),
z.X(),
z.Y(),
z.Z()};
90 rgeo.
insert(rpcid.
rawId(), vtra, vrot, pars, strpars);
void build(const DDCompactView *cview, const MuonGeometryConstants &muonConstants, RecoIdealGeometry &rgeo)
MuonBaseNumber geoHistoryToBaseNumber(const DDGeoHistory &history) const
const DDLogicalPart & logicalPart() const
The logical-part of the current node in the filtered-view.
int baseNumberToUnitNumber(const MuonBaseNumber &) const override
void buildGeometry(DDFilteredView &fview, const MuonGeometryConstants &muonConstants, RecoIdealGeometry &rgeo)
bool firstChild()
set the current node to the first child ...
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Compact representation of the geometrical detector hierarchy.
bool nextSibling()
set the current node to the next sibling ...
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DD3Vector
const std::string & name() const
Returns the name.
const DDGeoHistory & geoHistory() const
The list of ancestors up to the root-node of the current node.
std::vector< const DDsvalues_type * > specifics() const
nStrips
1.2 is to make the matching window safely the two nearest strips 0.35 is the size of an ME0 chamber i...
constexpr uint32_t rawId() const
get the raw id
ROOT::Math::Rotation3D DDRotationMatrix
A DDRotationMatrix is currently implemented with a ROOT Rotation3D.
const DDTranslation & translation() const
The absolute translation of the current node.
const std::vector< double > & parameters(void) const
Give the parameters of the solid.
const DDRotationMatrix & rotation() const
The absolute rotation of the current node.
const std::vector< double > & doubles() const
a reference to the double-valued values stored in the given instance of DDValue
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.