74 for(
int hash = 0; hash<static_cast<int>(
m_pixelId->wafer_hash_max()); hash++) {
78 if(offlineId==0)
continue;
80 short barrel_ec =
m_pixelId->barrel_ec(offlineId);
81 if(std::abs(barrel_ec)>2)
continue;
83 short phi_index =
m_pixelId->phi_module(offlineId);
84 short eta_index =
m_pixelId->eta_module(offlineId);
85 int lay_id =
m_pixelId->layer_disk(offlineId);
86 int eta_mod =
m_pixelId->eta_module(offlineId);
89 if(barrel_ec== 0) vol_id = 8;
90 if(barrel_ec==-2) vol_id = 7;
91 if(barrel_ec== 2) vol_id = 9;
93 int new_vol=0, new_lay=0;
95 if(vol_id == 7 || vol_id == 9) {
96 new_vol = 10*vol_id + lay_id;
99 else if(vol_id == 8) {
101 new_vol = 10*vol_id + lay_id;
104 auto t = std::make_tuple(barrel_ec==0 ? -100 : barrel_ec, subdetid, new_vol, new_lay);
106 std::map<std::tuple<int, int, short, short>,std::vector<PhiEtaHashITk> >
::iterator it = hashMap.find(t);
107 if(it==hashMap.end())
108 hashMap.insert(std::pair<std::tuple<int, int, short, short>,std::vector<PhiEtaHashITk> >(t,std::vector<PhiEtaHashITk>(1,
PhiEtaHashITk(phi_index, eta_index, hash) )));
109 else (*it).second.push_back(
PhiEtaHashITk(phi_index, eta_index, hash));
114 for(
int hash = 0; hash<static_cast<int>(
m_sctId->wafer_hash_max()); hash++) {
118 if(offlineId==0)
continue;
120 short barrel_ec =
m_sctId->barrel_ec(offlineId);
121 short phi_index =
m_sctId->phi_module(offlineId);
122 short eta_index =
m_sctId->eta_module(offlineId);
126 if(barrel_ec) vol_id = 12;
127 if(barrel_ec>0) vol_id = 14;
129 int lay_id =
m_sctId->layer_disk(offlineId);
131 auto t = std::make_tuple(barrel_ec==0 ? -100 : barrel_ec, subdetid, vol_id, lay_id);
133 std::map<std::tuple<int, int, short, short>,std::vector<PhiEtaHashITk> >
::iterator it = hashMap.find(t);
134 if(it==hashMap.end())
135 hashMap.insert(std::pair<std::tuple<int, int, short, short>,std::vector<PhiEtaHashITk> >(t,std::vector<PhiEtaHashITk>(1,
PhiEtaHashITk(phi_index, eta_index, hash))));
136 else (*it).second.push_back(
PhiEtaHashITk(phi_index, eta_index, hash));
150 for(std::map<std::tuple<int, int, short, short>,std::vector<PhiEtaHashITk> >
::iterator it = hashMap.begin();it!=hashMap.end();++it, layerId++) {
152 short vol_id = std::get<2>((*it).first);
153 short lay_id = std::get<3>((*it).first);
154 int combinedId =
static_cast<int>(vol_id)*1000 + lay_id;
156 short subdetId = std::get<1>((*it).first);
157 short barrel_ec = std::get<0>((*it).first);
159 if(barrel_ec == -100) barrel_ec = 0;
170 float minBound = 100000.0;
171 float maxBound =-100000.0;
174 for(std::vector<PhiEtaHashITk>::iterator hIt = (*it).second.begin();hIt != (*it).second.end();++hIt) {
189 rc += sqrt(
C(0)*
C(0)+
C(1)*
C(1));
190 if(p->zMin() < minBound) minBound = p->zMin();
191 if(p->zMax() > maxBound) maxBound = p->zMax();
195 if(p->rMin() < minBound) minBound = p->rMin();
196 if(p->rMax() > maxBound) maxBound = p->rMax();
205 ATH_MSG_INFO(
"List of unique layers in Pixel and SCT :");
206 for(
int l=0;l<layerId;l++) {