26 pair<vector<DetLayer*>, vector<DetLayer*> >
29 vector<DetLayer*>
result[2];
30 const std::string metname =
"Muon|RecoMuon|RecoMuonDetLayers|MuonME0DetLayerGeometryBuilder";
31 LogTrace(metname) <<
"Starting endcaplayers ";
33 int iendcap = (
endcap==1) ? 0 : 1;
41 <<
"Chambers = " << chambers.size()
42 <<
"Rolls = " << rolls.size();
45 if (ringLayer) result[iendcap].push_back(ringLayer);
47 pair<vector<DetLayer*>, vector<DetLayer*> > res_pair(result[0], result[1]);
60 const std::string metname =
"Muon|RecoMuon|RecoMuonDetLayers|MuonME0DetLayerGeometryBuilder";
62 vector<const ForwardDetRing*> frontRings, backRings;
64 LogTrace(metname) <<
"Starting to Build Layer ";
66 for (vector<int>::iterator roll = rolls.begin(); roll!=rolls.end(); roll++) {
69 vector<const GeomDet*> frontDets, backDets;
75 if (geomDet !=
nullptr) {
76 bool isInFront = isFront(me0Id);
79 frontDets.push_back(geomDet);
83 backDets.push_back(geomDet);
88 if (!frontDets.empty()) {
90 frontRings.push_back(
new MuDetRing(frontDets));
91 LogTrace(metname) <<
"New front ring with " << frontDets.size()
92 <<
" chambers at z="<< frontRings.back()->position().z();
94 if (!backDets.empty()) {
96 backRings.push_back(
new MuDetRing(backDets));
97 LogTrace(metname) <<
"New back ring with " << backDets.size()
98 <<
" chambers at z="<< backRings.back()->position().z();
103 LogTrace(metname) <<
"About to make a MuRingForwardLayer";
105 else result =
nullptr;
106 if(result !=
nullptr){
107 LogTrace(metname) <<
"New MuRingForwardLayer with " << frontRings.size()
108 <<
" and " << backRings.size()
109 <<
" rings, at Z " << result->position().z()
110 <<
" R1: " << result->specificSurface().innerRadius()
111 <<
" R2: " << result->specificSurface().outerRadius();
129 const std::string metname =
"Muon|RecoMuon|RecoMuonDetLayers|MuonME0DetLayerGeometryBuilder";
134 LogTrace(metname) <<
"New MuDetRing with " << geomDets.size()
135 <<
" chambers at z="<< result->position().z()
136 <<
" R1: " << result->specificSurface().innerRadius()
137 <<
" R2: " << result->specificSurface().outerRadius();
static const int minChamberId
static const int maxChamberId
ExtractPhi< GeomDet, float > DetPhi
const std::string metname
static MuDetRing * makeDetRing(std::vector< const GeomDet * > &geomDets)
static std::pair< std::vector< DetLayer * >, std::vector< DetLayer * > > buildEndcapLayers(const ME0Geometry &geo)
const GeomDet * idToDet(DetId) const override
void precomputed_value_sort(RandomAccessIterator begin, RandomAccessIterator end, const Extractor &extr)
static bool isFront(const ME0DetId &me0Id)
static MuRingForwardLayer * buildLayer(int endcap, int layer, std::vector< int > &chambers, std::vector< int > &rolls, const ME0Geometry &geo)
static char chambers[264][20]
virtual ~MuonME0DetLayerGeometryBuilder()
Destructor.