46 const std::vector<DetId>& detids(rig.
detIds());
54 while (idt < detids.size()) {
66 chamber = buildChamber(chid, rig, idt);
72 sl = buildSuperLayer(
chamber, slid, rig, idt);
79 DTLayer* lay = buildLayer(sl, lid, rig, idt);
80 theGeometry->add(lay);
155 int firstWire =
static_cast<int>(*(shapeStartPtr + 4));
156 int WCounter =
static_cast<int>(*(shapeStartPtr + 5));
164 edm::LogVerbatim(
"DTGeometry") <<
"adding layer " << layer->id() <<
" to sl " << sl->
id();
172 const vector<double>::const_iterator rotStart,
Log< level::Info, true > LogVerbatim
DTLayer * buildLayer(DTSuperLayer *sl, 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
RectangularPlaneBounds * getRecPlaneBounds(const std::vector< double >::const_iterator &shapeStart)
std::vector< double >::const_iterator rotStart(size_t ind) const
void add(DTLayer *l)
Add layer to the SL which owns it.
const std::vector< DetId > & detIds() const
DTSuperLayer * buildSuperLayer(DTChamber *chamber, const DetId &id, const RecoIdealGeometry &rig, size_t idt) const
std::vector< double >::const_iterator shapeStart(size_t ind) const
constexpr NumType convertMmToCm(NumType millimeters)
virtual ~DTGeometryBuilderFromCondDB()
DTGeometryBuilderFromCondDB()
void build(const std::shared_ptr< DTGeometry > &theGeometry, const RecoIdealGeometry &rig)
std::vector< double >::const_iterator tranStart(size_t ind) const
DTSuperLayerId id() const
Return the DetId of this SL.
DTChamber * buildChamber(const DetId &id, const RecoIdealGeometry &rig, size_t idt) const