47 const std::vector<DetId>& detids(rig.
detIds());
53 while(idt < detids.size()) {
58 if (chamber) theGeometry->add(chamber);
62 chamber = buildChamber(chid, rig, idt);
67 sl = buildSuperLayer(chamber, slid, rig, idt);
73 DTLayer* lay = buildLayer(sl, lid, rig, idt);
74 theGeometry->add(lay);
76 cout <<
"What is this?" << endl;
80 if (chamber) theGeometry->add(chamber);
129 chamber->
add(slayer);
151 int firstWire =
static_cast<int>(*(shapeStartPtr + 4 ));
152 int WCounter =
static_cast<int>(*(shapeStartPtr + 5 ));
153 double sensibleLength =
convertMmToCm( *(shapeStartPtr + 6 ) );
158 DTLayer* layer =
new DTLayer(layId, surf, topology, layerType, sl);
168 const vector<double>::const_iterator rotStart,
174 *(rotStart+3), *(rotStart+4), *(rotStart+5),
175 *(rotStart+6), *(rotStart+7), *(rotStart+8) );
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