43 const std::vector<DetId>& detids(rig.
detIds());
49 while (idt < detids.size()) {
55 theGeometry->add(chamber);
59 chamber = buildChamber(chid, rig, idt);
63 sl = buildSuperLayer(chamber, slid, rig, idt);
68 DTLayer* lay = buildLayer(sl, lid, rig, idt);
69 theGeometry->add(lay);
71 cout <<
"What is this?" << endl;
76 theGeometry->add(chamber);
122 chamber->
add(slayer);
142 int firstWire =
static_cast<int>(*(shapeStartPtr + 4));
143 int WCounter =
static_cast<int>(*(shapeStartPtr + 5));
149 DTLayer* layer =
new DTLayer(layId, surf, topology, layerType, sl);
158 const vector<double>::const_iterator rotStart,
RectangularPlaneBounds * getRecPlaneBounds(const std::vector< double >::const_iterator &shapeStart)
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.
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.
constexpr NumType convertMmToCm(NumType millimeters)
DTSuperLayer * buildSuperLayer(DTChamber *chamber, const DetId &id, const RecoIdealGeometry &rig, size_t idt) const
void build(const std::shared_ptr< DTGeometry > &theGeometry, const RecoIdealGeometry &rig)
RCPPlane plane(const std::vector< double >::const_iterator tranStart, const std::vector< double >::const_iterator rotStart, Bounds *bounds) const