18 vector<DetLayer*>
result[2];
22 for (
unsigned layer = 0; layer <= 0; ++layer) {
23 vector<unsigned> rings;
25 rings.push_back(
ring);
32 pair<vector<DetLayer*>, vector<DetLayer*> > res_pair(
result[0],
result[1]);
38 vector<unsigned>& rings,
40 const std::string metname =
"Muon|RecoMuon|RecoMuonDetLayers|ETLDetLayerGeometryBuilder";
43 vector<const ForwardDetRing*> frontRings, backRings;
45 for (
unsigned ring : rings) {
46 vector<const GeomDet*> frontGeomDets, backGeomDets;
52 if (geomDet !=
nullptr) {
54 frontGeomDets.push_back(geomDet);
56 backGeomDets.push_back(geomDet);
60 <<
", z= " << geomDet->
position().
z() <<
" isFront? " << isInFront << std::endl;
64 if (!backGeomDets.empty()) {
65 backRings.push_back(makeDetRing(backGeomDets));
68 if (!frontGeomDets.empty()) {
69 frontRings.push_back(makeDetRing(frontGeomDets));
70 assert(!backGeomDets.empty());
71 float frontz = frontRings[0]->position().z();
72 float backz = backRings[0]->position().z();
73 assert(fabs(frontz) < fabs(backz));
80 LogTrace(
metname) <<
"New MTDRingForwardLayer with " << frontRings.size() <<
" and " << backRings.size()
81 <<
" rings, at Z " <<
result->position().z() <<
" R1: " <<
result->specificSurface().innerRadius()
82 <<
" R2: " <<
result->specificSurface().outerRadius() << std::endl;
93 LogTrace(
metname) <<
"New MTDDetRing with " << geomDets.size() <<
" chambers at z=" <<
result->position().z()
94 <<
" R1: " <<
result->specificSurface().innerRadius()
95 <<
" R2: " <<
result->specificSurface().outerRadius() << std::endl;