23 #include "CLHEP/Units/GlobalSystemOfUnits.h"
44 const std::vector<DetId>& detids(rig.
detIds());
50 while(idt < detids.size()) {
55 if (chamber) theGeometry->add(chamber);
59 chamber = buildChamber(chid, rig, idt);
64 sl = buildSuperLayer(chamber, slid, rig, idt);
70 DTLayer* lay = buildLayer(sl, lid, rig, idt);
71 theGeometry->add(lay);
73 cout <<
"What is this?" << endl;
77 if (chamber) theGeometry->add(chamber);
87 float length = (*(rig.
shapeStart(idt) + 2))/cm;
88 float thickness = (*(rig.
shapeStart(idt) + 3))/cm;
110 float length = (*(rig.
shapeStart(idt) + 2))/cm;
111 float thickness = (*(rig.
shapeStart(idt) + 3))/cm;
120 chamber->
add(slayer);
134 float length = (*(rig.
shapeStart(idt) + 2))/cm;
135 float thickness = (*(rig.
shapeStart(idt) + 3))/cm;
141 int firstWire=int(*(rig.
shapeStart(idt) + 4 ));
142 int WCounter=int(*(rig.
shapeStart(idt) + 5 ));
143 double sensibleLenght=(*(rig.
shapeStart(idt) + 6 ))/cm;
148 DTLayer* layer =
new DTLayer(layId, surf, topology, layerType, sl);
158 const vector<double>::const_iterator rotStart,
164 *(rotStart+3), *(rotStart+4), *(rotStart+5),
165 *(rotStart+6), *(rotStart+7), *(rotStart+8) );
CaloTopology const * topology(0)
std::vector< double >::const_iterator rotStart(size_t ind) const
void add(DTLayer *l)
Add layer to the SL which owns it.
void build(boost::shared_ptr< DTGeometry > theGeometry, const RecoIdealGeometry &rig)
std::vector< double >::const_iterator tranStart(size_t ind) const
DTChamber * buildChamber(const DetId &id, const RecoIdealGeometry &rig, size_t idt) const
const std::vector< DetId > & detIds() const
DTLayer * buildLayer(DTSuperLayer *sl, const DetId &id, const RecoIdealGeometry &rig, size_t idt) const
virtual ~DTGeometryBuilderFromCondDB()
std::vector< double >::const_iterator shapeStart(size_t ind) const
DTGeometryBuilderFromCondDB()
void add(DTSuperLayer *sl)
Add SL to the chamber which takes ownership.
DTSuperLayer * buildSuperLayer(DTChamber *chamber, const DetId &id, const RecoIdealGeometry &rig, size_t idt) const
RCPPlane plane(const std::vector< double >::const_iterator tranStart, const std::vector< double >::const_iterator rotStart, Bounds *bounds) const