27 for (
auto const it : etllayers.first) {
28 etlLayers_fw.push_back(it);
29 allForward.push_back(it);
31 detLayersMap[makeDetLayerId(it)] = it;
34 for (
auto const it : etllayers.second) {
35 etlLayers_bk.push_back(it);
36 allBackward.push_back(it);
38 detLayersMap[makeDetLayerId(it)] = it;
43 for (
auto const it : dtlayers) {
44 btlLayers.push_back(it);
45 allBarrel.push_back(it);
47 detLayersMap[makeDetLayerId(it)] = it;
54 return ETLDetId(
id.mtdSide(), 0, 0, 0);
57 return BTLDetId(
id.mtdSide(), 0, 0, 0, 0);
84 idout =
ETLDetId(etlId.mtdSide(), 0, 0, 0);
87 idout =
BTLDetId(btlId.mtdSide(), 0, 0, 0, 0);
91 std::map<DetId, const DetLayer*>::const_iterator layer = detLayersMap.find(idout);
92 if (layer == detLayersMap.end())
128 etlLayers_all.reserve(etlLayers_bk.size() + etlLayers_fw.size());
129 std::copy(etlLayers_bk.begin(), etlLayers_bk.end(), back_inserter(etlLayers_all));
130 std::reverse(etlLayers_all.begin(), etlLayers_all.end());
131 std::copy(etlLayers_fw.begin(), etlLayers_fw.end(), back_inserter(etlLayers_all));
134 allEndcap.reserve(allBackward.size() + allForward.size());
135 std::copy(allBackward.begin(), allBackward.end(), back_inserter(allEndcap));
137 std::copy(allForward.begin(), allForward.end(), back_inserter(allEndcap));
140 allDetLayers.reserve(allBackward.size() + allBarrel.size() + allForward.size());
141 std::copy(allBackward.begin(), allBackward.end(), back_inserter(allDetLayers));
143 std::copy(allBarrel.begin(), allBarrel.end(), back_inserter(allDetLayers));
144 std::copy(allForward.begin(), allForward.end(), back_inserter(allDetLayers));
148 for (
auto l : allDetLayers)
149 (*const_cast<DetLayer*>(
l)).setSeqNum(sq++);