ATLAS Offline Software
TRT_FillCablingData_DC2.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //
6 // Implementation file for TRT_FillCablingData_DC2 class
7 //
8 
10 #include "InDetIdentifier/TRT_ID.h"
11 #include <iostream>
13 
14 static const InterfaceID IID_ITRT_FillCablingData_DC2
15  ("TRT_FillCablingData_DC2", 1, 0);
16 
17 
18  // Constructor
20  (const std::string& type, const std::string& name, const IInterface* parent):
22 {
23  declareInterface<TRT_FillCablingData_DC2>(this);
24 }
25 
26 
27  // Destructor
29 {}
30 
31 
33 {
34  return IID_ITRT_FillCablingData_DC2;
35 }
36 
37 
38  // Initialize
40 {
41  ATH_MSG_INFO( "TRT_FillCablingData_DC2::initialize()" );
42 
43 
44  // Get the TRT Helper
45  if (detStore()->retrieve(m_id_trt, "TRT_ID").isFailure())
46  {
47  ATH_MSG_FATAL( "Could not get TRT ID helper" );
48  return StatusCode::FAILURE;
49  }
51 
53 
55  defineTables();
56  defineCollID();
57 
58  ATH_MSG_INFO( "TRT_FillCablingData_DC2::initializiation finished" );
59 
60  return StatusCode::SUCCESS;
61 }
62 
63 
65 {
67  ATH_MSG_INFO( "finalize()" );
68 
69  delete [] m_layerID;
70  delete [] m_strawIDInLayer;
72  delete m_cabling;
73  return sc;
74 }
75 
76 
78 {
79  return m_cabling;
80 }
81 
82 
84 {
86  int numberOfWheelsB = 8;
87 // int numberOfWheelsC = 4;
88 
89  m_numberOfWheelsAB = m_numberOfWheelsA + numberOfWheelsB;
91 
94 
96  numberOfWheelsB * m_numberOfStrawPlanesB;
97 
99 
102 
105 
106  int numberOfStrawsInPlaneAB = 768;
107 
108  m_numberOfStrawsInPhiSectorAB = numberOfStrawsInPlaneAB /
111 
114 
115  m_numberOfStrawsAInRod = numberOfStrawsInPlaneAB / m_numberOfEndCapPhiSectors *
117  m_numberOfStrawsABInRod = m_numberOfStrawsAInRod + numberOfStrawsInPlaneAB /
119 
120  m_numberOfStrawsInWheelAForRod = numberOfStrawsInPlaneAB /
122  m_numberOfStrawsInWheelBForRod = numberOfStrawsInPlaneAB /
125 
126  m_numberOfRings = 3;
127 
128  m_numberOfLayersA = 19;
129  m_numberOfLayersB = 24;
130  m_numberOfLayersC = 30;
131 
133 
135 
136  m_numberOfStrawsA = 329;
137  int numberOfStrawsB = 520;
138  int numberOfStrawsC = 793;
139 
140  m_numberOfStrawsAB = m_numberOfStrawsA + numberOfStrawsB;
141 
143 
144  m_numberOfStrawsInROD = 1920;
146 
153 
160 
161 
162  int numberOfStrawsInLayersA[] = {15, 16, 16, 16, 16, 17, 17, 17, 17, 17, 18,
163  18, 18, 18, 18, 19, 19, 19, 18};
164 
165  int numberOfStrawsInLayersB[] = {19, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21,
166  22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 24, 24, 23};
167 
168  int numberOfStrawsInLayersC[] = {23, 24, 24, 24, 24, 25, 25, 25, 25, 25, 26,
169  26, 26, 26, 26, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 29, 29, 29, 29, 28};
170 
173 
174  int currentLayerID = 0;
175  int firstStrawInLayer = 0;
176  int firstStrawInNextLayer = numberOfStrawsInLayersA[currentLayerID];
177 
178  int i;
179  for (i = 0; i < m_numberOfStrawsInPhiSector; ++i)
180  {
181  if (i < m_numberOfStrawsA)
182  {
183  if (i == firstStrawInNextLayer)
184  {
185  ++currentLayerID;
186  firstStrawInLayer = firstStrawInNextLayer;
187  firstStrawInNextLayer += numberOfStrawsInLayersA[currentLayerID];
188  }
189  m_layerID[i] = currentLayerID;
190  m_strawIDInLayer[i] = i - firstStrawInLayer;
191  }
192  else if (i < m_numberOfStrawsAB)
193  {
194  if (i == m_numberOfStrawsA || i == firstStrawInNextLayer)
195  {
196  ++currentLayerID;
197  firstStrawInLayer = firstStrawInNextLayer;
198  firstStrawInNextLayer += numberOfStrawsInLayersB[currentLayerID -
200  }
201  m_layerID[i] = currentLayerID;
202  m_strawIDInLayer[i] = i - firstStrawInLayer;
203  }
204  else
205  {
206  if (i == m_numberOfStrawsAB || i == firstStrawInNextLayer)
207  {
208  ++currentLayerID;
209  firstStrawInLayer = firstStrawInNextLayer;
210  firstStrawInNextLayer += numberOfStrawsInLayersC[currentLayerID -
212  }
213  m_layerID[i] = currentLayerID;
214  m_strawIDInLayer[i] = i - firstStrawInLayer;
215  }
216  }
217 
219 
220  int numberOfStrawsInPreviousLayer;
222  for (i = 1; i < m_numberOfLayersInPhiSector; ++i)
223  {
224  if (i <= m_numberOfLayersA)
225  numberOfStrawsInPreviousLayer = numberOfStrawsInLayersA[i - 1];
226  else if (i <= m_numberOfLayersAB)
227  numberOfStrawsInPreviousLayer =
228  numberOfStrawsInLayersB[i - m_numberOfLayersA - 1];
229  else
230  numberOfStrawsInPreviousLayer =
231  numberOfStrawsInLayersC[i - m_numberOfLayersAB - 1];
233  m_numberOfStrawsInPreviousLayers[i - 1] + numberOfStrawsInPreviousLayer;
234  }
235 
236 }
237 
239 {
240  // Get message service
241  MsgStream log(msgSvc(), name());
242 
243  log << MSG::DEBUG << endmsg;
244  log << MSG::DEBUG << "***** TRT_IdentifierConversion::printParameters *****"
245  << endmsg;
246 
247  log << MSG::DEBUG << "End-cap parameters:" << endmsg;
248  log << MSG::DEBUG << " numberOfWheelsA=" << m_numberOfWheelsA << endmsg;
249  log << MSG::DEBUG << " numberOfWheelsAB=" << m_numberOfWheelsAB << endmsg;
250  log << MSG::DEBUG << " numberOfWheelsABC=" << m_numberOfWheelsABC << endmsg;
251  log << MSG::DEBUG << " numberOfPlanesAB=" << m_numberOfPlanesAB << endmsg;
252  log << MSG::DEBUG << " totalNumberOfPlanes=" << m_totalNumberOfPlanes
253  << endmsg;
254  log << MSG::DEBUG << " numberOfPhiSectorsInIDSector="
256  log << MSG::DEBUG << " numberOfStrawsInPhiSectorAB="
258  log << MSG::DEBUG << " numberOfStrawsInPhiSectorC="
260  log << MSG::DEBUG << " totalNumberOfStrawsInPhiSectorsAB="
262  log << MSG::DEBUG << " numberOfStrawsAInRod=" << m_numberOfStrawsAInRod
263  << endmsg;
264  log << MSG::DEBUG << " numberOfStrawsABInRod=" << m_numberOfStrawsABInRod
265  << endmsg;
266  log << MSG::DEBUG << " numberOfStrawsInWheelAForRod="
268  log << MSG::DEBUG << " numberOfStrawsInWheelBForRod="
270  log << MSG::DEBUG << " numberOfStrawsInWheelCForRod="
272 
273  log << MSG::DEBUG << "Barrel parameters:" << endmsg;
274  log << MSG::DEBUG << " numberOfRings=" << m_numberOfRings << endmsg;
275  log << MSG::DEBUG << " numberOfStrawsA=" << m_numberOfStrawsA << endmsg;
276  log << MSG::DEBUG << " numberOfStrawsAB=" << m_numberOfStrawsAB << endmsg;
277  log << MSG::DEBUG << " numberOfLayersA=" << m_numberOfLayersA << endmsg;
278  log << MSG::DEBUG << " numberOfLayersB=" << m_numberOfLayersB << endmsg;
279  log << MSG::DEBUG << " numberOfLayersC=" << m_numberOfLayersC << endmsg;
280  log << MSG::DEBUG << " numberOfLayersAB=" << m_numberOfLayersAB << endmsg;
281  log << MSG::DEBUG << " numberOfLayersInPhiSector="
283  log << MSG::DEBUG << " numberOfStrawsInPhiSector="
285 
286  log << MSG::DEBUG << " numberOfStrawsInROD=" << m_numberOfStrawsInROD
287  << endmsg;
288  log << MSG::DEBUG << " numberOfStrawsInBarrelROD="
290  log << MSG::DEBUG << " numberOfIdentifierSector="
292  log << MSG::DEBUG << " numberOfEndCapPhiSectors="
294 
295  int i;
296  for (i = 0; i < m_numberOfStrawsInPhiSector; i++)
297  log << MSG::DEBUG << " layerID[" << i << "]=" << m_layerID[i] << endmsg;
298  log << MSG::DEBUG << endmsg;
299 
300  for (i = 0; i < m_numberOfStrawsInPhiSector; i++)
301  log << MSG::DEBUG << " strawIDInLayer[" << i << "]=" << m_strawIDInLayer[i]
302  << endmsg;
303  log << MSG::DEBUG << endmsg;
304 
305  for (i = 0; i < m_numberOfLayersInPhiSector; i++)
306  log << MSG::DEBUG << " numberOfStrawsInPreviousLayers[" << i << "]="
308  log << MSG::DEBUG << endmsg;
309 
310  log << MSG::DEBUG << "Shifts for subdetectors:" << endmsg;
311  log << MSG::DEBUG << " shiftForLeftEndCap=" << m_shiftForLeftEndCap << endmsg;
312  log << MSG::DEBUG << " shiftForLeftBarrel=" << m_shiftForLeftBarrel << endmsg;
313  log << MSG::DEBUG << " shiftForRightBarrel=" << m_shiftForRightBarrel << endmsg;
314  log << MSG::DEBUG << " shiftForRightEndCap=" << m_shiftForRightEndCap << endmsg;
315  log << MSG::DEBUG << " shiftForLeftEndCapStraws="
317  log << MSG::DEBUG << " shiftForLeftBarrelStraws="
319  log << MSG::DEBUG << " shiftForRightBarrelStraws="
321  log << MSG::DEBUG << " shiftForRightEndCapStraws="
323 
324 }
325 
326 
328 {
329  int straw;
330  Identifier Id;
331  Identifier IdLayer;
332  IdentifierHash hashId;
333 
334  // Loop over All RODs and All Straws in them
335  eformat::SubDetector det_id = eformat::TRT_ENDCAP_A_SIDE;
336 
337  for (int phi = 0; phi < 32; ++phi)
338  {
339  for (int i = 0; i < 2; ++i)
340  {
341  for (straw = 0; straw < m_numberOfStrawsInROD; ++straw)
342  {
343  Id = defineIdentifier(det_id, phi * 2 + i, straw);
345  IdLayer = m_id_trt->layer_id(Id);
346  if ( !m_id_trt->get_hash(IdLayer, hashId, &m_cntx) )
348  else
349  ATH_MSG_DEBUG( "defineTables: unable to get hash for IdLayer " << m_id_trt->show_to_string(IdLayer) );
350 
351  }
352  }
353  }
354 
355  det_id = eformat::TRT_BARREL_A_SIDE;
356  for (int phi = 0; phi < 32; ++phi)
357  {
359  {
360  Id = defineIdentifier(det_id, phi, straw);
362  IdLayer = m_id_trt->layer_id(Id);
363  if ( !m_id_trt->get_hash(IdLayer, hashId, &m_cntx) )
365  else
366  ATH_MSG_DEBUG( "defineTables: unable to get hash for IdLayer " << m_id_trt->show_to_string(IdLayer) );
367  }
368  }
369 
370  det_id = eformat::TRT_BARREL_C_SIDE;
371  for (int phi = 0; phi < 32; ++phi)
372  {
374  {
375  Id = defineIdentifier(det_id, phi, straw);
377  IdLayer = m_id_trt->layer_id(Id);
378  if ( !m_id_trt->get_hash(IdLayer, hashId, &m_cntx) )
380  else
381  ATH_MSG_DEBUG( "defineTables: unable to get hash for IdLayer " << m_id_trt->show_to_string(IdLayer) );
382  }
383  }
384 
385  det_id = eformat::TRT_ENDCAP_C_SIDE;
386  for (int phi = 0; phi < 32; ++phi)
387  {
388  for (int i = 0; i < 2; ++i)
389  {
390  for (straw = 0; straw < m_numberOfStrawsInROD; ++straw)
391  {
392  Id = defineIdentifier(det_id, phi * 2 + i, straw);
394  IdLayer = m_id_trt->layer_id(Id);
395  if ( !m_id_trt->get_hash(IdLayer, hashId, &m_cntx) )
397  else
398  ATH_MSG_DEBUG( "defineTables: unable to get hash for IdLayer " << m_id_trt->show_to_string(IdLayer) );
399  }
400  }
401  }
402 
403 
404 
405  // Initialize m_allRobs
406  det_id = eformat::TRT_ENDCAP_A_SIDE;
407 
408  for (int phi = 0; phi < 32; ++phi)
409  {
410  for (int i = 0; i < 2; ++i)
411  {
412  eformat::helper::SourceIdentifier sid(det_id,
413  (uint8_t) (phi * 2 + i));
414  m_cabling->add_allRobs(sid.code());
415  }
416  }
417 
418  det_id = eformat::TRT_ENDCAP_C_SIDE;
419  for (int phi = 0; phi < 32; ++phi)
420  {
421  for (int i = 0; i < 2; ++i)
422  {
423  eformat::helper::SourceIdentifier sid(det_id,
424  (uint8_t) (phi * 2 + i));
425  m_cabling->add_allRobs(sid.code());
426  }
427  }
428 
429  det_id = eformat::TRT_BARREL_A_SIDE;
430  for (int phi = 0; phi < 32; ++phi)
431  {
432 // eformat::helper::SourceIdentifier sid(det_id, type,
433  eformat::helper::SourceIdentifier sid(det_id,
434  (uint8_t) ( phi ));
435  m_cabling->add_allRobs(sid.code());
436  }
437 
438  det_id = eformat::TRT_BARREL_C_SIDE;
439  for (int phi = 0; phi < 32;++phi)
440  {
441 // eformat::helper::SourceIdentifier sid(det_id, type,
442  eformat::helper::SourceIdentifier sid(det_id,
443  (uint8_t) ( phi ));
444  m_cabling->add_allRobs(sid.code());
445  }
446 }
447 
449 {
450  ATH_MSG_DEBUG( " TRT_IdentifierConversionTool::defineCollID " );
451 
452  // initialize allRobs
453  //eformat::ModuleType type = eformat::ROD_TYPE;
454  eformat::SubDetector det_id = eformat::TRT_ENDCAP_A_SIDE;
455 
456  for (int phi = 0; phi < 32; ++phi)
457  {
458 // for (int i = 0; i < 3; ++i)
459  for (int i = 0; i < 2; ++i)
460  {
461 // eformat::helper::SourceIdentifier sid(det_id, type,
462  eformat::helper::SourceIdentifier sid(det_id,
463 // (uint8_t) (phi * 3 + i));
464  (uint8_t) (phi * 2 + i));
465  std::vector<IdentifierHash> * vect = new std::vector<IdentifierHash>();
466  fillCollID(sid.code(), *vect);
467  m_cabling->add_collID(sid.code(), vect);
468  }
469  }
470 
471  det_id = eformat::TRT_BARREL_A_SIDE;
472  for (int phi =0; phi < 32; ++phi)
473  {
474 // eformat::helper::SourceIdentifier sid(det_id, type,
475  eformat::helper::SourceIdentifier sid(det_id,
476  (uint8_t) ( phi ));
477  std::vector<IdentifierHash> * vect = new std::vector<IdentifierHash>();
478  fillCollID(sid.code(), *vect);
479  m_cabling->add_collID(sid.code(), vect);
480  }
481 
482  det_id = eformat::TRT_BARREL_C_SIDE;
483  for (int phi = 0; phi < 32; ++phi)
484  {
485 // eformat::helper::SourceIdentifier sid(det_id, type,
486  eformat::helper::SourceIdentifier sid(det_id,
487  (uint8_t) ( phi ));
488  std::vector<IdentifierHash> * vect = new std::vector<IdentifierHash>();
489  fillCollID(sid.code(), *vect);
490  m_cabling->add_collID(sid.code(), vect);
491  }
492 
493  det_id = eformat::TRT_ENDCAP_C_SIDE;
494  for (int phi = 0; phi < 32; ++phi)
495  {
496 // for (int i = 0; i < 3; ++i)
497  for (int i = 0; i < 2; ++i)
498  {
499 // eformat::helper::SourceIdentifier sid(det_id, type,
500  eformat::helper::SourceIdentifier sid(det_id,
501 // (uint8_t) (phi * 3 + i));
502  (uint8_t) (phi * 2 + i));
503  std::vector<IdentifierHash> * vect = new std::vector<IdentifierHash>();
504  fillCollID(sid.code(), *vect);
505  m_cabling->add_collID(sid.code(), vect);
506  }
507  }
508 
509  ATH_MSG_DEBUG( " TRT_FillCablingData_DC1::defineCollID finished " );
510 }
511 
512 
514  std::vector<IdentifierHash> & ids)
515 {
516  int id_barrel_ec, id_phi_module;
517  IdContext slContext = m_id_trt->straw_layer_context();
518  IdentifierHash idHash;
519 
520  eformat::SubDetector det_id;
521  uint8_t module;
522 
523  eformat::helper::SourceIdentifier id (rob_id);
524  det_id = id.subdetector_id();
525  module = id.module_id();
526 
527  if (det_id == eformat::TRT_ENDCAP_A_SIDE)
528  {
529  id_barrel_ec = -2;
530 // id_phi_module = ((int) module) / 3;
531  id_phi_module = ((int) module) / 2;
532 // for (int wheel = 0; wheel < m_numberOfWheelsABC; ++wheel)
533  for (int wheel = 0; wheel < m_numberOfWheelsAB; ++wheel)
534  {
535  if (wheel < m_numberOfWheelsA)
536  {
537  for (int layer = 0; layer < m_numberOfStrawPlanesAC; ++layer)
538  {
539  Identifier id = m_id_trt->layer_id(id_barrel_ec, id_phi_module, wheel,
540  layer);
541 // std::cout << " fillCollID: Identifier id " << (std::string)id << std::endl;
542 // std::cout << " fillCollID: IdentifierHash " << m_id_trt->get_hash(id, idHash, &slContext) << std::endl;
543  if (!m_id_trt->get_hash(id, idHash, &slContext))
544  {
545  ids.push_back(idHash);
546  }
547  else
548  ATH_MSG_DEBUG( "fillCollID(): unable to get hash for id " << m_id_trt->show_to_string(id) );
549  }
550  }
551 // else if (wheel < m_numberOfWheelsAB)
552  else
553  {
554  for (int layer = 0; layer < m_numberOfStrawPlanesB; ++layer)
555  {
556  Identifier id = m_id_trt->layer_id(id_barrel_ec, id_phi_module, wheel, layer);
557  if (!m_id_trt->get_hash(id, idHash, &slContext))
558  ids.push_back(idHash);
559  else
560  ATH_MSG_DEBUG( "fillCollID(): unable to get hash for id " << m_id_trt->show_to_string(id) );
561  }
562  }
563 // else
564 // {
565 // for (int layer = 0; layer < m_numberOfStrawPlanesAC; ++layer)
566 // {
567 // Identifier id = m_id_trt->layer_id(id_barrel_ec, id_phi_module, wheel, layer);
568 // if (!m_id_trt->get_hash(id, idHash, &slContext))
569 // ids.push_back(idHash);
570 // else
571 // ATH_MSG_DEBUG( "fillCollID(): unable to get hash for id " << m_id_trt->show_to_string(id) );
572 // }
573 // }
574  }
575  }
576  else if (det_id == eformat::TRT_BARREL_A_SIDE)
577  {
578  id_barrel_ec = -1;
579  id_phi_module = (int) module;
580  for (int ring = 0; ring < m_numberOfRings; ++ring)
581  {
582  if (ring == 0)
583  {
584  for (int layer = 0; layer < m_numberOfLayersA; ++layer)
585  {
586  Identifier id = m_id_trt->layer_id(id_barrel_ec, id_phi_module, ring, layer);
587  if (!m_id_trt->get_hash(id, idHash, &slContext))
588  ids.push_back(idHash);
589  else
590  ATH_MSG_DEBUG( "fillCollID(): unable to get hash for id " << m_id_trt->show_to_string(id) );
591  }
592  }
593  else if (ring == 1)
594  {
595  for (int layer = 0; layer < m_numberOfLayersB; ++layer)
596  {
597  Identifier id = m_id_trt->layer_id(id_barrel_ec, id_phi_module, ring, layer);
598  if (!m_id_trt->get_hash(id, idHash, &slContext))
599  ids.push_back(idHash);
600  else
601  ATH_MSG_DEBUG( "fillCollID(): unable to get hash for id " << m_id_trt->show_to_string(id) );
602  }
603  }
604  else
605  {
606  for (int layer = 0; layer < m_numberOfLayersC; ++layer)
607  {
608  Identifier id = m_id_trt->layer_id(id_barrel_ec, id_phi_module, ring, layer);
609  if (!m_id_trt->get_hash(id, idHash, &slContext))
610  ids.push_back(idHash);
611  else
612  ATH_MSG_DEBUG( "fillCollID(): unable to get hash for id " << m_id_trt->show_to_string(id) );
613  }
614  }
615  }
616  }
617  else if (det_id == eformat::TRT_BARREL_C_SIDE)
618  {
619  id_barrel_ec = 1;
620  id_phi_module = (int) module;
621  for (int ring = 0; ring < m_numberOfRings; ++ring)
622  {
623  if (ring == 0)
624  {
625  for (int layer = 0; layer < m_numberOfLayersA; ++layer)
626  {
627  Identifier id = m_id_trt->layer_id(id_barrel_ec, id_phi_module, ring, layer);
628  if (!m_id_trt->get_hash(id, idHash, &slContext))
629  ids.push_back(idHash);
630  else
631  ATH_MSG_DEBUG( "fillCollID(): unable to get hash for id " << m_id_trt->show_to_string(id) );
632  }
633  }
634  else if (ring == 1)
635  {
636  for (int layer = 0; layer < m_numberOfLayersB; ++layer)
637  {
638  Identifier id = m_id_trt->layer_id(id_barrel_ec, id_phi_module, ring, layer);
639  if (!m_id_trt->get_hash(id, idHash, &slContext))
640  ids.push_back(idHash);
641  else
642  ATH_MSG_DEBUG( "fillCollID(): unable to get hash for id " << m_id_trt->show_to_string(id) );
643  }
644  }
645  else
646  {
647  for (int layer = 0; layer < m_numberOfLayersC; ++layer)
648  {
649  Identifier id = m_id_trt->layer_id(id_barrel_ec, id_phi_module, ring, layer);
650  if (!m_id_trt->get_hash(id, idHash, &slContext))
651  ids.push_back(idHash);
652  else
653  ATH_MSG_DEBUG( "fillCollID: unable to get hash for id " << m_id_trt->show_to_string(id) );
654  }
655  }
656  }
657  }
658  else if (det_id == eformat::TRT_ENDCAP_C_SIDE)
659  {
660  id_barrel_ec = 2;
661 // id_phi_module = ((int) module) / 3;
662  id_phi_module = ((int) module) / 2;
663 // for (int wheel = 0; wheel < m_numberOfWheelsABC; ++wheel)
664  for (int wheel = 0; wheel < m_numberOfWheelsAB; ++wheel)
665  {
666  if (wheel < m_numberOfWheelsA)
667  {
668  for (int layer = 0; layer < m_numberOfStrawPlanesAC; ++layer)
669  {
670  Identifier id = m_id_trt->layer_id(id_barrel_ec, id_phi_module, wheel, layer);
671  if (!m_id_trt->get_hash(id, idHash, &slContext))
672  ids.push_back(idHash);
673  else
674  ATH_MSG_DEBUG( "fillCollID(): unable to get hash for id " << m_id_trt->show_to_string(id) );
675  }
676  }
677 // else if (wheel < m_numberOfWheelsAB)
678  else
679  {
680  for (int layer = 0; layer < m_numberOfStrawPlanesB; ++layer)
681  {
682  Identifier id = m_id_trt->layer_id(id_barrel_ec, id_phi_module, wheel, layer);
683  if (!m_id_trt->get_hash(id, idHash, &slContext))
684  ids.push_back(idHash);
685  else
686  ATH_MSG_DEBUG( "fillCollID(): unable to get hash for id " << m_id_trt->show_to_string(id) );
687  }
688  }
689 // else
690 // {
691 // for (int layer = 0; layer < m_numberOfStrawPlanesAC; ++layer)
692 // {
693 // Identifier id = m_id_trt->layer_id(id_barrel_ec, id_phi_module, wheel, layer);
694 // if (!m_id_trt->get_hash(id, idHash, &slContext))
695 // ids.push_back(idHash);
696 // else
697 // ATH_MSG_DEBUG( "fillCollID(): unable to get hash for id " << m_id_trt->show_to_string(id) );
698 // }
699 // }
700  }
701  }
702 }
703 
704 
705  // Define Identifier for each straw from BS
707  (const eformat::SubDetector& subdetector, const int& intRod,
708  const int& straw) const
709 {
710  int id_barrel_ec, id_layer_or_wheel, id_phi_module, id_straw_layer, id_straw;
711 
712  if ((subdetector == eformat::TRT_BARREL_A_SIDE) ||
713  (subdetector == eformat::TRT_BARREL_C_SIDE)) // Barrel
714  {
715  if (subdetector == eformat::TRT_BARREL_A_SIDE)
716  id_barrel_ec = -1;
717  else
718  id_barrel_ec = 1;
719 
720  id_phi_module = intRod;
721 
722  if (straw < m_numberOfStrawsA) // Module A
723  {
724  id_layer_or_wheel = 0;
725  id_straw_layer = m_layerID[straw];
726  id_straw = m_strawIDInLayer[straw];
727  }
728  else if (straw < m_numberOfStrawsAB) // Module B
729  {
730  id_layer_or_wheel = 1;
731  id_straw_layer = m_layerID[straw] - m_numberOfLayersA;
732  id_straw = m_strawIDInLayer[straw];
733  }
734  else // Module C
735  {
736  id_layer_or_wheel = 2;
737  id_straw_layer = m_layerID[straw] - m_numberOfLayersAB;
738  id_straw = m_strawIDInLayer[straw];
739  }
740  }
741  else // Endcaps
742  {
743  if (subdetector == eformat::TRT_ENDCAP_A_SIDE)
744  id_barrel_ec = -2;
745  else
746  id_barrel_ec = 2;
747 
748  id_phi_module = intRod / m_numberOfPhiSectorsInIDSector;
749  int rodInIDSector = intRod % m_numberOfPhiSectorsInIDSector;
750 
751  if (straw < m_numberOfStrawsAInRod) // Wheels A
752  {
753  id_layer_or_wheel = straw / m_numberOfStrawsInWheelAForRod;
754  int strawInWheelA = straw % m_numberOfStrawsInWheelAForRod;
755  id_straw_layer = strawInWheelA / m_numberOfStrawsInPhiSectorAB;
756  id_straw = strawInWheelA % m_numberOfStrawsInPhiSectorAB +
757  m_numberOfStrawsInPhiSectorAB * rodInIDSector;
758  }
759 // else if (straw < m_numberOfStrawsABInRod) // Wheels B
760  else
761  {
762  int strawInWheelsB = straw - m_numberOfStrawsAInRod;
763  id_layer_or_wheel = strawInWheelsB / m_numberOfStrawsInWheelBForRod +
765  int strawInWheelB = strawInWheelsB % m_numberOfStrawsInWheelBForRod;
766  id_straw_layer = strawInWheelB / m_numberOfStrawsInPhiSectorAB;
767  id_straw = strawInWheelB % m_numberOfStrawsInPhiSectorAB +
768  m_numberOfStrawsInPhiSectorAB * rodInIDSector;
769  }
770 // else // Wheels C
771 // {
772 // int strawInWheelsC = straw - m_numberOfStrawsABInRod;
773 // id_layer_or_wheel = strawInWheelsC / m_numberOfStrawsInWheelCForRod +
774 // m_numberOfWheelsAB;
775 // int strawInWheelC = strawInWheelsC % m_numberOfStrawsInWheelCForRod;
776 // id_straw_layer = strawInWheelC / m_numberOfStrawsInPhiSectorC;
777 // id_straw = strawInWheelC % m_numberOfStrawsInPhiSectorC +
778 // m_numberOfStrawsInPhiSectorC * rodInIDSector;
779 // }
780  }
781 
782  return m_id_trt->straw_id(id_barrel_ec, id_phi_module, id_layer_or_wheel,
783  id_straw_layer, id_straw);
784 }
785 
786 
787  // Get ROBIDs for each Detector Element (Straw Layer)
789  const
790 {
791  std::vector<uint32_t> v;
792 
793  //eformat::ModuleType type = eformat::ROB_TYPE;
794  eformat::SubDetector det_id;
795 
796  int id_barrel_ec = m_id_trt->barrel_ec(id);
797  int id_phi_module = m_id_trt->phi_module(id);
798 
799  if (id_barrel_ec == -2)
800  {
801  det_id = eformat::TRT_ENDCAP_A_SIDE;
802 // for (int i = 0; i < 3; ++i)
803  for (int i = 0; i < 2; ++i)
804  {
805 // eformat::helper::SourceIdentifier sid(det_id, type,
806  eformat::helper::SourceIdentifier sid(det_id,
807 // (uint8_t) (id_phi_module * 3 + i));
808  (uint8_t) (id_phi_module * 2 + i));
809  v.push_back(sid.code());
810  }
811  }
812  else if (id_barrel_ec == -1)
813  {
814  det_id = eformat::TRT_BARREL_A_SIDE;
815  //eformat::helper::SourceIdentifier sid(det_id, type, (uint8_t) id_phi_module);
816  eformat::helper::SourceIdentifier sid(det_id, (uint8_t) id_phi_module);
817  v.push_back(sid.code());
818  }
819  else if (id_barrel_ec == 1)
820  {
821  det_id = eformat::TRT_BARREL_C_SIDE;
822  //eformat::helper::SourceIdentifier sid(det_id, type, (uint8_t) id_phi_module);
823  eformat::helper::SourceIdentifier sid(det_id, (uint8_t) id_phi_module);
824  v.push_back(sid.code());
825  }
826  else if (id_barrel_ec == 2)
827  {
828  det_id = eformat::TRT_ENDCAP_C_SIDE;
829 // for (int i = 0; i < 3; ++i)
830  for (int i = 0; i < 2; ++i)
831  {
832 // eformat::helper::SourceIdentifier sid(det_id, type,
833  eformat::helper::SourceIdentifier sid(det_id,
834 // (uint8_t) (id_phi_module * 3 + i));
835  (uint8_t) (id_phi_module * 2 + i));
836  v.push_back(sid.code());
837  }
838  }
839 
840  return v;
841 }
842 
843  // Get ROD for each Straw
845 {
846 
847  uint32_t rod_id=0;
848  int rod_num;
849 
850  //eformat::ModuleType type = eformat::ROD_TYPE;
851  eformat::SubDetector det_id;
852 
853  int id_barrel_ec = m_id_trt->barrel_ec(id);
854  int id_phi_module = m_id_trt->phi_module(id);
855  //int id_layer_or_wheel = m_id_trt->layer_or_wheel(id);
856  int id_straw = m_id_trt->straw(id);
857 
858  if (id_barrel_ec == -2)
859  {
860  det_id = eformat::TRT_ENDCAP_A_SIDE;
861 // if (id_layer_or_wheel < m_numberOfWheelsAB)
862  rod_num = id_straw / m_numberOfStrawsInPhiSectorAB;
863 // else
864 // rod_num = id_straw / m_numberOfStrawsInPhiSectorC;
865 // eformat::helper::SourceIdentifier sid(det_id, type,
866  eformat::helper::SourceIdentifier sid(det_id,
867 // (uint8_t) (id_phi_module * 3 + rod_num));
868  (uint8_t) (id_phi_module * 2 + rod_num));
869  rod_id = sid.code();
870  }
871  else if (id_barrel_ec == -1)
872  {
873  det_id = eformat::TRT_BARREL_A_SIDE;
874  //eformat::helper::SourceIdentifier sid(det_id, type, (uint8_t) (id_phi_module));
875  eformat::helper::SourceIdentifier sid(det_id, (uint8_t) (id_phi_module));
876  rod_id = sid.code();
877  }
878  else if (id_barrel_ec == 1)
879  {
880  det_id = eformat::TRT_BARREL_C_SIDE;
881  //eformat::helper::SourceIdentifier sid(det_id, type, (uint8_t) (id_phi_module));
882  eformat::helper::SourceIdentifier sid(det_id, (uint8_t) (id_phi_module));
883  rod_id = sid.code();
884  }
885  else if (id_barrel_ec == 2)
886  {
887  det_id = eformat::TRT_ENDCAP_C_SIDE;
888 // if (id_layer_or_wheel < m_numberOfWheelsAB)
889  rod_num = id_straw / m_numberOfStrawsInPhiSectorAB;
890 // else
891 // rod_num = id_straw / m_numberOfStrawsInPhiSectorC;
892 // eformat::helper::SourceIdentifier sid(det_id, type,
893  eformat::helper::SourceIdentifier sid(det_id,
894 // (uint8_t) (id_phi_module * 3 + rod_num));
895  (uint8_t) (id_phi_module * 2 + rod_num));
896  rod_id = sid.code();
897  }
898 
899  return rod_id;
900 }
901 
902 
903  // Get Straw and ROD ID
905  uint32_t& rod_id, uint32_t& straw_number) const
906 {
907 
908  int rod_num, straw, layer;
909 
910  //eformat::ModuleType type = eformat::ROD_TYPE;
911  eformat::SubDetector det_id;
912 
913  int id_barrel_ec = m_id_trt->barrel_ec(id);
914  int id_phi_module = m_id_trt->phi_module(id);
915  int id_layer_or_wheel = m_id_trt->layer_or_wheel(id);
916  int id_straw_layer = m_id_trt->straw_layer(id);
917  int id_straw = m_id_trt->straw(id);
918 
919  if (id_barrel_ec == -2)
920  {
921  det_id = eformat::TRT_ENDCAP_A_SIDE;
922 // if (id_layer_or_wheel < m_numberOfWheelsAB)
923  rod_num = id_straw / m_numberOfStrawsInPhiSectorAB;
924 // else
925 // rod_num = id_straw / m_numberOfStrawsInPhiSectorC;
926 // eformat::helper::SourceIdentifier sid(det_id, type,
927  eformat::helper::SourceIdentifier sid(det_id,
928 // (uint8_t) (id_phi_module * 3 + rod_num));
929  (uint8_t) (id_phi_module * 2 + rod_num));
930  rod_id = sid.code();
931  }
932  else if (id_barrel_ec == -1)
933  {
934  det_id = eformat::TRT_BARREL_A_SIDE;
935  //eformat::helper::SourceIdentifier sid(det_id, type, (uint8_t) (id_phi_module));
936  eformat::helper::SourceIdentifier sid(det_id, (uint8_t) (id_phi_module));
937  rod_id = sid.code();
938  }
939  else if (id_barrel_ec == 1)
940  {
941  det_id = eformat::TRT_BARREL_C_SIDE;
942  //eformat::helper::SourceIdentifier sid(det_id, type, (uint8_t) (id_phi_module));
943  eformat::helper::SourceIdentifier sid(det_id, (uint8_t) (id_phi_module));
944  rod_id = sid.code();
945  }
946  else if (id_barrel_ec == 2)
947  {
948  det_id = eformat::TRT_ENDCAP_C_SIDE;
949 // if (id_layer_or_wheel < m_numberOfWheelsAB)
950  rod_num = id_straw / m_numberOfStrawsInPhiSectorAB;
951 // else
952 // rod_num = id_straw / m_numberOfStrawsInPhiSectorC;
953 // eformat::helper::SourceIdentifier sid(det_id, type,
954  eformat::helper::SourceIdentifier sid(det_id,
955 // (uint8_t) (id_phi_module * 3 + rod_num));
956  (uint8_t) (id_phi_module * 2 + rod_num));
957  rod_id = sid.code();
958  }
959 
960  if ((id_barrel_ec == -2) || (id_barrel_ec == 2)) // Endcaps
961  {
962  if (id_layer_or_wheel < m_numberOfWheelsA)
963  straw = id_layer_or_wheel * m_numberOfStrawsInWheelAForRod +
964  id_straw_layer * m_numberOfStrawsInPhiSectorAB +
966 // else if (id_layer_or_wheel < m_numberOfWheelsAB)
967  else
968  straw = m_numberOfStrawsAInRod + (id_layer_or_wheel - m_numberOfWheelsA) *
970  id_straw_layer * m_numberOfStrawsInPhiSectorAB +
972 // else
973 // straw = m_numberOfStrawsABInRod +
974 // (id_layer_or_wheel - m_numberOfWheelsAB) *
975 // m_numberOfStrawsInWheelCForRod +
976 // id_straw_layer * m_numberOfStrawsInPhiSectorC +
977 // id_straw % m_numberOfStrawsInPhiSectorC;
978  }
979  else // Barrel
980  {
981  if (id_layer_or_wheel == 0)
982  layer = id_straw_layer;
983  else if (id_layer_or_wheel == 1)
984  layer = m_numberOfLayersA + id_straw_layer;
985  else
986  layer = m_numberOfLayersAB + id_straw_layer;
988  }
989 
990  straw_number = (uint32_t) straw;
991 }
992 
993 void TRT_FillCablingData_DC2::get_parameters(int& numberOfStrawsInROD,
994  int& numberOfStrawsInBarrelROD,
995  int& shiftForLeftEndCapStraws,
996  int& shiftForLeftBarrelStraws,
997  int& shiftForRightBarrelStraws,
998  int& shiftForRightEndCapStraws,
999  int& numberOfEndCapPhiSectors,
1000  int& numberOfIdentifierSectors)
1001 {
1002  numberOfStrawsInROD = m_numberOfStrawsInROD;
1003  numberOfStrawsInBarrelROD = m_numberOfStrawsInBarrelROD;
1004  shiftForLeftEndCapStraws = m_shiftForLeftEndCapStraws;
1005  shiftForLeftBarrelStraws = m_shiftForLeftBarrelStraws;
1006  shiftForRightBarrelStraws = m_shiftForRightBarrelStraws;
1007  shiftForRightEndCapStraws = m_shiftForRightEndCapStraws;
1008  numberOfEndCapPhiSectors = m_numberOfEndCapPhiSectors;
1009  numberOfIdentifierSectors = m_numberOfIdentifierSectors;
1010 }
1011 
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
TRT_FillCablingData_DC2::m_numberOfLayersC
int m_numberOfLayersC
Definition: TRT_FillCablingData_DC2.h:107
TRT_FillCablingData_DC2::m_shiftForRightBarrel
int m_shiftForRightBarrel
Definition: TRT_FillCablingData_DC2.h:121
TRT_ID::layer_id
Identifier layer_id(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer) const
For an individual straw layer.
Definition: TRT_ID.h:500
python.tests.PyTestsLib.finalize
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
Definition: PyTestsLib.py:50
TRT_FillCablingData_DC2::m_numberOfLayersB
int m_numberOfLayersB
Definition: TRT_FillCablingData_DC2.h:106
TRT_FillCablingData_DC2::~TRT_FillCablingData_DC2
virtual ~TRT_FillCablingData_DC2()
Definition: TRT_FillCablingData_DC2.cxx:28
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
TRT_FillCablingData_DC2::m_numberOfLayersA
int m_numberOfLayersA
Definition: TRT_FillCablingData_DC2.h:105
TRT::Hit::straw
@ straw
Definition: HitInfo.h:82
TRT_FillCablingData_DC2::TRT_FillCablingData_DC2
TRT_FillCablingData_DC2(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TRT_FillCablingData_DC2.cxx:20
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
TRT_DetectorManager.h
TRT_FillCablingData_DC2::m_numberOfStrawPlanesB
int m_numberOfStrawPlanesB
Definition: TRT_FillCablingData_DC2.h:130
TRT_CablingData::set_identifierHashForAllStraws
void set_identifierHashForAllStraws(int rod, int bufferPosition, IdentifierHash hashId)
Definition: TRT_CablingData.cxx:107
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
TRT_FillCablingData_DC2::m_numberOfRings
int m_numberOfRings
Definition: TRT_FillCablingData_DC2.h:102
TRT_FillCablingData_DC2::defineIdentifier
Identifier defineIdentifier(const eformat::SubDetector &subdetector, const int &rod, const int &straw) const
Definition: TRT_FillCablingData_DC2.cxx:707
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TRT_FillCablingData_DC2::m_totalNumberOfPlanes
int m_totalNumberOfPlanes
Definition: TRT_FillCablingData_DC2.h:96
TRT_FillCablingData_DC2::m_shiftForRightBarrelStraws
int m_shiftForRightBarrelStraws
Definition: TRT_FillCablingData_DC2.h:126
TRT_FillCablingData_DC2::m_id_trt
const TRT_ID * m_id_trt
Definition: TRT_FillCablingData_DC2.h:136
TRT_ID.h
This is an Identifier helper class for the TRT subdetector. This class is a factory for creating comp...
TRT_FillCablingData_DC2::getStrawRodID
void getStrawRodID(Identifier &id, uint32_t &rod_id, uint32_t &straw_number) const
Definition: TRT_FillCablingData_DC2.cxx:904
TRT_CablingData::set_identifierForAllStraws
void set_identifierForAllStraws(int rod, int bufferPosition, Identifier strawID)
Definition: TRT_CablingData.cxx:86
TRT_FillCablingData_DC2::m_strawIDInLayer
int * m_strawIDInLayer
Definition: TRT_FillCablingData_DC2.h:133
TRT_FillCablingData_DC2::m_numberOfWheelsA
int m_numberOfWheelsA
Definition: TRT_FillCablingData_DC2.h:86
TRT_FillCablingData_DC2::interfaceID
static const InterfaceID & interfaceID()
Definition: TRT_FillCablingData_DC2.cxx:32
TRT_FillCablingData_DC2::m_shiftForLeftEndCap
int m_shiftForLeftEndCap
Definition: TRT_FillCablingData_DC2.h:119
TRT_FillCablingData_DC2.h
TRT_FillCablingData_DC2::fillCollID
void fillCollID(uint32_t robid, std::vector< IdentifierHash > &ids)
Definition: TRT_FillCablingData_DC2.cxx:513
TRT_FillCablingData_DC2::printParameters
void printParameters() const
Definition: TRT_FillCablingData_DC2.cxx:238
TRT_FillCablingData_DC2::m_cntx
IdContext m_cntx
Definition: TRT_FillCablingData_DC2.h:137
TRT_FillCablingData_DC2::get_parameters
void get_parameters(int &numberOfStrawsInROD, int &numberOfStrawsInBarrelROD, int &shiftForLeftEndCapStraws, int &shiftForLeftBarrelStraws, int &shiftForRightBarrelStraws, int &shiftForRightEndCapStraws, int &numberOfEndCapPhiSectors, int &numberOfIdentifierSectors)
Definition: TRT_FillCablingData_DC2.cxx:993
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
TRT_FillCablingData_DC2::m_numberOfStrawsInPhiSector
int m_numberOfStrawsInPhiSector
Definition: TRT_FillCablingData_DC2.h:111
AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:95
TRT_FillCablingData_DC2::defineCollID
void defineCollID()
Definition: TRT_FillCablingData_DC2.cxx:448
python.PyAthena.module
module
Definition: PyAthena.py:131
TRT_FillCablingData_DC2::m_numberOfStrawsInWheelCForRod
int m_numberOfStrawsInWheelCForRod
Definition: TRT_FillCablingData_DC2.h:93
TRT_CablingData::add_allRobs
void add_allRobs(uint32_t sidROB)
Definition: TRT_CablingData.cxx:181
TRT_ID::straw
int straw(const Identifier &id) const
Definition: TRT_ID.h:902
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
TRT_ID::get_hash
virtual int get_hash(const Identifier &id, IdentifierHash &hash_id, const IdContext *context=0) const override final
Create hash id from compact id (return == 0 for OK)
Definition: TRT_ID.cxx:748
lumiFormat.i
int i
Definition: lumiFormat.py:85
TRT_CablingData::add_collID
void add_collID(uint32_t rob_id, std::vector< IdentifierHash > *vectID)
Definition: TRT_CablingData.cxx:168
TRT_FillCablingData_DC2::m_numberOfStrawsABInRod
int m_numberOfStrawsABInRod
Definition: TRT_FillCablingData_DC2.h:90
TRT_FillCablingData_DC2::m_shiftForLeftEndCapStraws
int m_shiftForLeftEndCapStraws
Definition: TRT_FillCablingData_DC2.h:124
TRT_ID::straw_layer_context
IdContext straw_layer_context(void) const
straw_layer id
Definition: TRT_ID.h:713
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
TRT_FillCablingData_DC2::m_shiftForLeftBarrel
int m_shiftForLeftBarrel
Definition: TRT_FillCablingData_DC2.h:120
TRT_FillCablingData_DC2::defineTables
void defineTables()
Definition: TRT_FillCablingData_DC2.cxx:327
TRT_FillCablingData_DC2::m_cabling
TRT_CablingData * m_cabling
Definition: TRT_FillCablingData_DC2.h:139
test_pyathena.parent
parent
Definition: test_pyathena.py:15
TRT_FillCablingData_DC2::m_numberOfLayersAB
int m_numberOfLayersAB
Definition: TRT_FillCablingData_DC2.h:108
TRT_FillCablingData_DC2::m_numberOfStrawsA
int m_numberOfStrawsA
Definition: TRT_FillCablingData_DC2.h:103
TRT_FillCablingData_DC2::fillData
TRT_CablingData * fillData()
Definition: TRT_FillCablingData_DC2.cxx:77
TRT_ID::barrel_ec
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
Definition: TRT_ID.h:866
TRT_ID::straw_layer
int straw_layer(const Identifier &id) const
Definition: TRT_ID.h:893
TRT_FillCablingData_DC2::m_numberOfLayersInPhiSector
int m_numberOfLayersInPhiSector
Definition: TRT_FillCablingData_DC2.h:110
TRT_FillCablingData_DC2::m_numberOfStrawsInBarrelROD
int m_numberOfStrawsInBarrelROD
Definition: TRT_FillCablingData_DC2.h:114
TRT_FillCablingData_DC2::m_layerID
int * m_layerID
Definition: TRT_FillCablingData_DC2.h:132
TRT_FillCablingData_DC2::getRodID
uint32_t getRodID(Identifier &id) const
Definition: TRT_FillCablingData_DC2.cxx:844
TRT_ID::layer_or_wheel
int layer_or_wheel(const Identifier &id) const
Definition: TRT_ID.h:884
TRT_FillCablingData_DC2::m_totalNumberOfStrawsInPhiSectorsAB
int m_totalNumberOfStrawsInPhiSectorsAB
Definition: TRT_FillCablingData_DC2.h:100
TRT_FillCablingData_DC2::m_numberOfPhiSectorsInIDSector
int m_numberOfPhiSectorsInIDSector
Definition: TRT_FillCablingData_DC2.h:97
TRT_FillCablingData_DC2::m_numberOfStrawPlanesAC
int m_numberOfStrawPlanesAC
Definition: TRT_FillCablingData_DC2.h:129
TRT_FillCablingData_DC2::m_numberOfStrawsInPhiSectorAB
int m_numberOfStrawsInPhiSectorAB
Definition: TRT_FillCablingData_DC2.h:98
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:227
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
python.subdetectors.mmg.ids
ids
Definition: mmg.py:8
TRT_FillCablingData_DC2::m_numberOfStrawsInPreviousLayers
int * m_numberOfStrawsInPreviousLayers
Definition: TRT_FillCablingData_DC2.h:134
TRT_FillCablingData_DC2::m_numberOfEndCapPhiSectors
int m_numberOfEndCapPhiSectors
Definition: TRT_FillCablingData_DC2.h:117
TRT_FillCablingData_DC2::m_shiftForRightEndCapStraws
int m_shiftForRightEndCapStraws
Definition: TRT_FillCablingData_DC2.h:127
TRT_FillCablingData_DC2::m_numberOfStrawsInROD
int m_numberOfStrawsInROD
Definition: TRT_FillCablingData_DC2.h:113
TRT_ID::phi_module
int phi_module(const Identifier &id) const
Definition: TRT_ID.h:875
python.PyAthena.v
v
Definition: PyAthena.py:154
TRT_FillCablingData_DC2::defineParameters
void defineParameters()
Definition: TRT_FillCablingData_DC2.cxx:83
TRT_FillCablingData_DC2::m_numberOfIdentifierSectors
int m_numberOfIdentifierSectors
Definition: TRT_FillCablingData_DC2.h:116
TRT_FillCablingData_DC2::m_numberOfStrawsInWheelBForRod
int m_numberOfStrawsInWheelBForRod
Definition: TRT_FillCablingData_DC2.h:92
TRT_FillCablingData_DC2::getRobID
std::vector< uint32_t > getRobID(Identifier &id) const
Definition: TRT_FillCablingData_DC2.cxx:788
AtlasDetectorID::show_to_string
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
Definition: AtlasDetectorID.cxx:574
TRT_CablingData
Definition: TRT_CablingData.h:18
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TRT_FillCablingData_DC2::m_numberOfStrawsInWheelAForRod
int m_numberOfStrawsInWheelAForRod
Definition: TRT_FillCablingData_DC2.h:91
DEBUG
#define DEBUG
Definition: page_access.h:11
TRT_FillCablingData_DC2::m_numberOfStrawsAInRod
int m_numberOfStrawsAInRod
Definition: TRT_FillCablingData_DC2.h:89
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TRT_FillCablingData_DC2::m_numberOfStrawsAB
int m_numberOfStrawsAB
Definition: TRT_FillCablingData_DC2.h:104
TRT_FillCablingData_DC2::m_shiftForLeftBarrelStraws
int m_shiftForLeftBarrelStraws
Definition: TRT_FillCablingData_DC2.h:125
TRT_FillCablingData_DC2::initialize
virtual StatusCode initialize()
Definition: TRT_FillCablingData_DC2.cxx:39
AthAlgTool
Definition: AthAlgTool.h:26
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
IdContext
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
Definition: IdContext.h:26
TRT_FillCablingData_DC2::m_numberOfWheelsAB
int m_numberOfWheelsAB
Definition: TRT_FillCablingData_DC2.h:87
TRT_ID::straw_id
Identifier straw_id(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer, int straw) const
Three ways of getting id for a single straw:
Definition: TRT_ID.h:581
TRT_FillCablingData_DC2::m_numberOfPlanesAB
int m_numberOfPlanesAB
Definition: TRT_FillCablingData_DC2.h:95
TRT_FillCablingData_DC2::m_shiftForRightEndCap
int m_shiftForRightEndCap
Definition: TRT_FillCablingData_DC2.h:122
TRT_FillCablingData_DC2::m_numberOfStrawsInPhiSectorC
int m_numberOfStrawsInPhiSectorC
Definition: TRT_FillCablingData_DC2.h:99
TRT_FillCablingData_DC2::finalize
virtual StatusCode finalize()
Definition: TRT_FillCablingData_DC2.cxx:64
Identifier
Definition: IdentifierFieldParser.cxx:14
TRT_FillCablingData_DC2::m_numberOfWheelsABC
int m_numberOfWheelsABC
Definition: TRT_FillCablingData_DC2.h:88