24 vector<DetLayer*> detlayers;
25 vector<MTDTrayBarrelLayer*>
result;
27 vector<const DetRod*> btlDetTrays;
30 vector<const GeomDet*> geomDets;
32 for (
unsigned side = 0; side <= 1; ++side) {
34 if (geomDet !=
nullptr) {
35 geomDets.push_back(geomDet);
36 LogTrace(
"MTDDetLayers") <<
"get BTL module " << std::hex <<
BTLDetId(side, tray, module, 0, 1).
rawId()
43 if (!geomDets.empty()) {
45 btlDetTrays.push_back(
new MTDDetTray(geomDets));
46 LogTrace(
"MTDDetLayers") <<
" New BTLDetTray with " << geomDets.size()
47 <<
" modules at R=" << btlDetTrays.back()->position().perp()
48 <<
", phi=" << btlDetTrays.back()->position().phi();
54 LogTrace(
"MTDDetLayers") <<
"BTLDetLayerGeometryBuilder: new MTDTrayBarrelLayer with " << btlDetTrays.size()
55 <<
" rods, at R " <<
result.back()->specificSurface().radius();
57 for (vector<MTDTrayBarrelLayer*>::const_iterator it =
result.begin(); it !=
result.end(); it++)
58 detlayers.push_back((
DetLayer*)(*it));