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