135 {
136
137 std::vector<Identifier> id_vec;
138 std::map<Identifier, int> id_map;
139 std::map<Identifier, int>::iterator map_it;
141
142 bool no_invalid = true;
143 bool no_alien = true;
144
145
146 switch(l_cnt) {
147 case 0:
148
150 {
152 ATH_MSG_INFO(
"*************************************************************" );
153 ATH_MSG_INFO(
"Investigate CalibHit IDs from LAr Inactive CalibHit Container" );
154 ATH_MSG_INFO(
"*************************************************************" );
155
158 }
159 else
160 {
161 return;
162 }
163 break;
164
165
166 case 1:
167
169 {
171 ATH_MSG_INFO(
"***********************************************************" );
172 ATH_MSG_INFO(
"Investigate CalibHit IDs from LAr Active CalibHit Container" );
173 ATH_MSG_INFO(
"***********************************************************" );
174
177
179 }
180 else
181 {
182 return;
183 }
184 break;
185
186
187 case 2:
188
190 {
192 ATH_MSG_INFO(
"**************************************************************" );
193 ATH_MSG_INFO(
"Investigate CalibHit IDs from Tile Inactive CalibHit container" );
194 ATH_MSG_INFO(
"**************************************************************" );
195
198 }
199 else
200 {
201 return;
202 }
203 break;
204
205
206 case 3:
207
209 {
211 ATH_MSG_INFO(
"************************************************************" );
212 ATH_MSG_INFO(
"Investigate CalibHit IDs from Tile Active CalibHit container" );
213 ATH_MSG_INFO(
"************************************************************" );
214
217
219 }
220 else
221 {
222 return;
223 }
224 break;
225
226
227 case 4:
228
230 {
232 ATH_MSG_INFO(
"*******************************************************" );
233 ATH_MSG_INFO(
"Investigate CalibHit IDs from LAr DM CalibHit Container" );
234 ATH_MSG_INFO(
"*******************************************************" );
235
238 }
239 else
240 {
241 return;
242 }
243 break;
244
245
246 case 5:
247
249 {
251 ATH_MSG_INFO(
"********************************************************" );
252 ATH_MSG_INFO(
"Investigate CalibHit IDs from Tile DM CalibHit Container" );
253 ATH_MSG_INFO(
"********************************************************" );
254
257 }
258 else
259 {
260 return;
261 }
262 break;
263
264 default:
265 return;
266 }
267
268
269
270
272
273 Identifier id=(*it)->cellID();
274
275
276
277 if(!id.is_valid()) {
278
281
282 no_invalid=false;
283 }
284
285
286
287
288 switch(l_cnt) {
289 case 0:
290 case 1:
294 no_alien=false;
295 }
296 break;
297
298 case 2:
299 case 3:
303 no_alien=false;
304 }
305 break;
306
307 case 4:
309
310
314 no_alien=false;
315 }
316 break;
317
318 case 5:
322 no_alien=false;
323 }
324 break;
325
326 }
327
328
329 bool no_rep = true;
330
331
332 for (
int iter=0; iter<static_cast<int>(id_vec.size());
iter++) {
333 if(id == id_vec[iter]) {
334
335 if(id_map.find(id)==id_map.end()) {
336 id_map.insert(std::make_pair(id,2));
337 }
338 else {
339 map_it=id_map.find(id);
340 (map_it->second)++ ;
341 }
342
343 no_rep = false;
344 break;
345 }
346 }
347
348 if(no_rep) {
349 id_vec.push_back(id);
350
351
352
355 }
356 else {
357
358
359
360
361 }
362
363 }
364
365
366
367
369
370
371
372 if(no_invalid) {
373
374 ATH_MSG_INFO(
"------------------------------------- " );
375 ATH_MSG_INFO(
"No invalid Identifiers has been found " );
376 ATH_MSG_INFO(
"------------------------------------- " );
377
378 }
379
380
381
382 if(no_alien) {
383
384 ATH_MSG_INFO(
"------------------------------------------------------" );
385 ATH_MSG_INFO(
"No container not-respective Identifiers has been found" );
386 ATH_MSG_INFO(
"------------------------------------------------------" );
387
388 }
389
390
391
392 if(!id_map.empty()) {
393
394 ATH_MSG_INFO(
"----------------------------------------------- " );
395 ATH_MSG_INFO(
"Found repeated Identifiers | how many times " );
396 ATH_MSG_INFO(
"----------------------------------------------- " );
397
398 for (const std::pair<const Identifier, int>& p : id_map) {
401 }
402
403 }
404 else {
405 ATH_MSG_INFO(
"----------------------------------------------- " );
406 ATH_MSG_INFO(
"No repeated CalibHit Identifiers has been found " );
407 ATH_MSG_INFO(
"----------------------------------------------- " );
408 }
409
410}
boost::transform_iterator< make_const, typename CONT::const_iterator > const_iterator