21 #include "CLHEP/Units/GlobalSystemOfUnits.h"
46 std::string attribute =
"MuStructure";
47 std::string
value =
"MuonBarrelDT";
48 DDValue val(attribute, value, 0.0);
60 buildGeometry(fview, muonConstants, rig);
85 insertChamber(fv,type, muonConstants,rig);
92 insertSuperLayer(fv, type, muonConstants,rig);
99 insertLayer(fv, type, muonConstants, rig);
126 par.push_back(DTChamberTag);
128 par.insert(par.end(), size.begin(), size.end());
137 rig.
insert(rawid, posRot.first, posRot.second, par);
141 const std::string&
type,
153 par.push_back(DTSuperLayerTag);
155 par.insert(par.end(), size.begin(), size.end());
160 rig.
insert(slId, posRot.first, posRot.second, par);
164 const std::string&
type,
176 par.push_back(DTLayerTag);
178 par.insert(par.end(), size.begin(), size.end());
183 int firstWire=fv.
copyno();
191 par.push_back(firstWire);
192 par.push_back(WCounter);
193 par.push_back(sensSize[1]);
198 rig.
insert(layId, posRot.first, posRot.second, par);
208 while (A.shape() !=
ddbox) {
224 std::vector<double> gtran( 3 );
225 gtran[0] = (float) 1.0 * (trans.x() / cm);
226 gtran[1] = (float) 1.0 * (trans.y() / cm);
227 gtran[2] = (float) 1.0 * (trans.z() / cm);
237 rotation.GetComponents(x,y,z);
244 std::vector<double> grmat( 9 );
245 grmat[0] = (float) 1.0 * x.X();
246 grmat[1] = (float) 1.0 * x.Y();
247 grmat[2] = (float) 1.0 * x.Z();
249 grmat[3] = (float) 1.0 * y.X();
250 grmat[4] = (float) 1.0 * y.Y();
251 grmat[5] = (float) 1.0 * y.Z();
253 grmat[6] = (float) 1.0 * z.X();
254 grmat[7] = (float) 1.0 * z.Y();
255 grmat[8] = (float) 1.0 * z.Z();
265 return pair<std::vector<double>, std::vector<double> >(gtran, grmat);
const std::vector< double > & parameters(void) const
Give the parameters of the solid.
bool parent()
set the current node to the parent node ...
const DDLogicalPart & logicalPart() const
The logical-part of the current node in the filtered-view.
void addFilter(const DDFilter &, log_op op=AND)
bool nextSibling()
set the current node to the next sibling ...
std::string extractParameters(xoap::MessageReference, xdaq::Application *)
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)
void insertChamber(DDFilteredView &fv, const std::string &type, const MuonDDDConstants &muonConstants, RecoIdealGeometry &rig) const
create the chamber
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 *.
A DDSolid represents the shape of a part.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
int copyno() const
Copy number associated with the current node.
virtual ~DTGeometryParsFromDD()
Destructor.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DD3Vector
A DD Translation is currently implemented with Root Vector3D.
std::vector< double > extractParameters(DDFilteredView &fv) const
get parameter also for boolean solid.
void insertLayer(DDFilteredView &fv, const std::string &type, const MuonDDDConstants &muonConstants, RecoIdealGeometry &rig) const
create the layer
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
std::maps an index to a DDValue. The index corresponds to the index assigned to the name of the std::...
DDSolidShape shape(void) const
The type of the solid.
int getDetId(const MuonBaseNumber num) const
const std::vector< std::string > & strings() const
a reference to the std::string-valued values stored in the given instance of DDValue ...
DTGeometryParsFromDD()
Constructor.
DDSolid solidA(void) const
std::pair< std::vector< double >, std::vector< double > > PosRotPair
DDsvalues_type mergedSpecifics() const
void buildGeometry(DDFilteredView &fv, const MuonDDDConstants &muonConstants, RecoIdealGeometry &rig) const
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.
void insertSuperLayer(DDFilteredView &fv, const std::string &type, const MuonDDDConstants &muonConstants, RecoIdealGeometry &rig) const
create the SL
tuple size
Write out results.
void build(const DDCompactView *cview, const MuonDDDConstants &muonConstants, RecoIdealGeometry &rig)
PosRotPair plane(const DDFilteredView &fv) const
The DDGenericFilter is a runtime-parametrized Filter looking on DDSpecifcs.