20 #include "CLHEP/Units/GlobalSystemOfUnits.h"
45 std::string attribute =
"MuStructure";
46 std::string
value =
"MuonBarrelDT";
47 DDValue val(attribute, value, 0.0);
59 buildGeometry(theGeometry, fview, muonConstants);
85 DTChamber* chamber = buildChamber(fv,type, muonConstants);
92 DTSuperLayer* sl = buildSuperLayer(fv, chamber, type, muonConstants);
100 DTLayer* layer = buildLayer(fv, sl, type, muonConstants);
101 theGeometry->add(layer);
110 theGeometry->add(chamber);
128 float width = par[0]/cm;
129 float length = par[1]/cm;
130 float thickness = par[2]/cm;
147 const std::string&
type,
158 float width = par[0]/cm;
159 float length = par[1]/cm;
160 float thickness = par[2]/cm;
173 chamber->
add(slayer);
180 const std::string&
type,
190 float width = par[0]/cm;
191 float length = par[1]/cm;
192 float thickness = par[2]/cm;
202 int firstWire=fv.
copyno();
204 float wireLength = par[1]/cm;
210 DTTopology topology(firstWire, WCounter, wireLength);
214 DTLayer* layer =
new DTLayer(layId, surf, topology, layerType, sl);
226 while (A.shape() !=
ddbox) {
239 const Bounds& bounds)
const {
245 float(trans.z()/cm));
254 rotation.GetComponents(x,y,z);
262 float(y.X()),
float(y.Y()),
float(y.Z()),
263 float(z.X()),
float(z.Y()),
float(z.Z()));
const std::vector< double > & parameters() const
Don't use (only meant to be used by DDbox(), DDtub(), ...)
virtual ~DTGeometryBuilderFromDDD()
Destructor.
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 buildGeometry(boost::shared_ptr< DTGeometry > theGeometry, DDFilteredView &fv, const MuonDDDConstants &muonConstants) const
void addFilter(const DDFilter &, log_op op=AND)
DDSolidShape shape() const
The type of the solid.
bool nextSibling()
set the current node to the next sibling ...
const DDRotationMatrix & rotation() const
The absolute rotation of the current node.
void add(DTLayer *l)
Add layer to the SL which owns it.
DTLayer * buildLayer(DDFilteredView &fv, DTSuperLayer *sl, const std::string &type, const MuonDDDConstants &muonConstants) const
create the layer
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.
RCPPlane plane(const DDFilteredView &fv, const Bounds &bounds) const
DTChamber * buildChamber(DDFilteredView &fv, const std::string &type, const MuonDDDConstants &muonConstants) const
create the chamber
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DD3Vector
A DD Translation is currently implemented with Root Vector3D.
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::...
DTSuperLayer * buildSuperLayer(DDFilteredView &fv, DTChamber *chamber, const std::string &type, const MuonDDDConstants &muonConstants) const
create the SL
int getDetId(const MuonBaseNumber num) const
std::vector< double > extractParameters(DDFilteredView &fv) const
get parameter also for boolean solid.
const std::vector< std::string > & strings() const
a reference to the std::string-valued values stored in the given instance of DDValue ...
tuple filter
USE THIS FOR SKIMMED TRACKS process.p = cms.Path(process.hltLevel1GTSeed*process.skimming*process.offlineBeamSpot*process.TrackRefitter2) OTHERWISE USE THIS.
void build(boost::shared_ptr< DTGeometry > theGeometry, const DDCompactView *cview, const MuonDDDConstants &muonConstants)
DDsvalues_type mergedSpecifics() const
DTGeometryBuilderFromDDD()
Constructor.
const DDSolid & solid() const
Returns a reference object of the solid being the shape of this LogicalPart.
void add(DTSuperLayer *sl)
Add SL to the chamber which takes ownership.
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)
std::string extractParameters(xoap::MessageReference, xdaq::Application *)
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 double par[8 *NPar][4]
The DDGenericFilter is a runtime-parametrized Filter looking on DDSpecifcs.