ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
TRT_FillCablingData_DC2 Class Reference

#include <TRT_FillCablingData_DC2.h>

Inheritance diagram for TRT_FillCablingData_DC2:
Collaboration diagram for TRT_FillCablingData_DC2:

Public Member Functions

 TRT_FillCablingData_DC2 (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual ~TRT_FillCablingData_DC2 ()
 
virtual StatusCode initialize ()
 
virtual StatusCode finalize ()
 
TRT_CablingDatafillData ()
 
std::vector< uint32_t > getRobID (Identifier &id) const
 
uint32_t getRodID (Identifier &id) const
 
void getStrawRodID (Identifier &id, uint32_t &rod_id, uint32_t &straw_number) const
 
Identifier defineIdentifier (const eformat::SubDetector &subdetector, const int &rod, const int &straw) const
 
void fillCollID (uint32_t robid, std::vector< IdentifierHash > &ids)
 
void get_parameters (int &numberOfStrawsInROD, int &numberOfStrawsInBarrelROD, int &shiftForLeftEndCapStraws, int &shiftForLeftBarrelStraws, int &shiftForRightBarrelStraws, int &shiftForRightEndCapStraws, int &numberOfEndCapPhiSectors, int &numberOfIdentifierSectors)
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

void defineParameters ()
 
void printParameters () const
 
void defineTables ()
 
void defineCollID ()
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

int m_numberOfWheelsA {}
 
int m_numberOfWheelsAB {}
 
int m_numberOfWheelsABC {}
 
int m_numberOfStrawsAInRod {}
 
int m_numberOfStrawsABInRod {}
 
int m_numberOfStrawsInWheelAForRod {}
 
int m_numberOfStrawsInWheelBForRod {}
 
int m_numberOfStrawsInWheelCForRod {}
 
int m_numberOfPlanesAB {}
 
int m_totalNumberOfPlanes {}
 
int m_numberOfPhiSectorsInIDSector {}
 
int m_numberOfStrawsInPhiSectorAB {}
 
int m_numberOfStrawsInPhiSectorC {}
 
int m_totalNumberOfStrawsInPhiSectorsAB {}
 
int m_numberOfRings {}
 
int m_numberOfStrawsA {}
 
int m_numberOfStrawsAB {}
 
int m_numberOfLayersA {}
 
int m_numberOfLayersB {}
 
int m_numberOfLayersC {}
 
int m_numberOfLayersAB {}
 
int m_numberOfLayersInPhiSector {}
 
int m_numberOfStrawsInPhiSector {}
 
int m_numberOfStrawsInROD {}
 
int m_numberOfStrawsInBarrelROD {}
 
int m_numberOfIdentifierSectors {}
 
int m_numberOfEndCapPhiSectors {}
 
int m_shiftForLeftEndCap {}
 
int m_shiftForLeftBarrel {}
 
int m_shiftForRightBarrel {}
 
int m_shiftForRightEndCap {}
 
int m_shiftForLeftEndCapStraws {}
 
int m_shiftForLeftBarrelStraws {}
 
int m_shiftForRightBarrelStraws {}
 
int m_shiftForRightEndCapStraws {}
 
int m_numberOfStrawPlanesAC {}
 
int m_numberOfStrawPlanesB {}
 
int * m_layerID {}
 
int * m_strawIDInLayer {}
 
int * m_numberOfStrawsInPreviousLayers {}
 
const TRT_IDm_id_trt {}
 
IdContext m_cntx {}
 
TRT_CablingDatam_cabling {}
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Definition at line 30 of file TRT_FillCablingData_DC2.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ TRT_FillCablingData_DC2()

TRT_FillCablingData_DC2::TRT_FillCablingData_DC2 ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Definition at line 19 of file TRT_FillCablingData_DC2.cxx.

20  :
22 {
23  declareInterface<TRT_FillCablingData_DC2>(this);
24 }

◆ ~TRT_FillCablingData_DC2()

TRT_FillCablingData_DC2::~TRT_FillCablingData_DC2 ( )
virtual

Definition at line 28 of file TRT_FillCablingData_DC2.cxx.

29 {}

Member Function Documentation

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ defineCollID()

void TRT_FillCablingData_DC2::defineCollID ( )
private

Definition at line 448 of file TRT_FillCablingData_DC2.cxx.

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 }

◆ defineIdentifier()

Identifier TRT_FillCablingData_DC2::defineIdentifier ( const eformat::SubDetector &  subdetector,
const int &  rod,
const int &  straw 
) const

Definition at line 706 of file TRT_FillCablingData_DC2.cxx.

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 }

◆ defineParameters()

void TRT_FillCablingData_DC2::defineParameters ( )
private

Definition at line 83 of file TRT_FillCablingData_DC2.cxx.

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 }

◆ defineTables()

void TRT_FillCablingData_DC2::defineTables ( )
private

Definition at line 327 of file TRT_FillCablingData_DC2.cxx.

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 }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ fillCollID()

void TRT_FillCablingData_DC2::fillCollID ( uint32_t  robid,
std::vector< IdentifierHash > &  ids 
)

Definition at line 513 of file TRT_FillCablingData_DC2.cxx.

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 }

◆ fillData()

TRT_CablingData * TRT_FillCablingData_DC2::fillData ( )

Definition at line 77 of file TRT_FillCablingData_DC2.cxx.

78 {
79  return m_cabling;
80 }

◆ finalize()

StatusCode TRT_FillCablingData_DC2::finalize ( )
virtual

Definition at line 64 of file TRT_FillCablingData_DC2.cxx.

65 {
67  ATH_MSG_INFO( "finalize()" );
68 
69  delete [] m_layerID;
70  delete [] m_strawIDInLayer;
72  delete m_cabling;
73  return sc;
74 }

◆ get_parameters()

void TRT_FillCablingData_DC2::get_parameters ( int &  numberOfStrawsInROD,
int &  numberOfStrawsInBarrelROD,
int &  shiftForLeftEndCapStraws,
int &  shiftForLeftBarrelStraws,
int &  shiftForRightBarrelStraws,
int &  shiftForRightEndCapStraws,
int &  numberOfEndCapPhiSectors,
int &  numberOfIdentifierSectors 
)

Definition at line 993 of file TRT_FillCablingData_DC2.cxx.

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 }

◆ getRobID()

std::vector< uint32_t > TRT_FillCablingData_DC2::getRobID ( Identifier id) const

Definition at line 788 of file TRT_FillCablingData_DC2.cxx.

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 }

◆ getRodID()

uint32_t TRT_FillCablingData_DC2::getRodID ( Identifier id) const

Definition at line 844 of file TRT_FillCablingData_DC2.cxx.

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 }

◆ getStrawRodID()

void TRT_FillCablingData_DC2::getStrawRodID ( Identifier id,
uint32_t &  rod_id,
uint32_t &  straw_number 
) const

Definition at line 904 of file TRT_FillCablingData_DC2.cxx.

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 }

◆ initialize()

StatusCode TRT_FillCablingData_DC2::initialize ( )
virtual

Definition at line 39 of file TRT_FillCablingData_DC2.cxx.

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 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ interfaceID()

const InterfaceID & TRT_FillCablingData_DC2::interfaceID ( )
static

Definition at line 32 of file TRT_FillCablingData_DC2.cxx.

33 {
34  return IID_ITRT_FillCablingData_DC2;
35 }

◆ msg() [1/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ printParameters()

void TRT_FillCablingData_DC2::printParameters ( ) const
private

Definition at line 238 of file TRT_FillCablingData_DC2.cxx.

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 }

◆ renounce()

std::enable_if_t<std::is_void_v<std::result_of_t<decltype(&T::renounce)(T)> > && !std::is_base_of_v<SG::VarHandleKeyArray, T> && std::is_base_of_v<Gaudi::DataHandle, T>, void> AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_cabling

TRT_CablingData* TRT_FillCablingData_DC2::m_cabling {}
private

Definition at line 139 of file TRT_FillCablingData_DC2.h.

◆ m_cntx

IdContext TRT_FillCablingData_DC2::m_cntx {}
private

Definition at line 137 of file TRT_FillCablingData_DC2.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_id_trt

const TRT_ID* TRT_FillCablingData_DC2::m_id_trt {}
private

Definition at line 136 of file TRT_FillCablingData_DC2.h.

◆ m_layerID

int* TRT_FillCablingData_DC2::m_layerID {}
private

Definition at line 132 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfEndCapPhiSectors

int TRT_FillCablingData_DC2::m_numberOfEndCapPhiSectors {}
private

Definition at line 117 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfIdentifierSectors

int TRT_FillCablingData_DC2::m_numberOfIdentifierSectors {}
private

Definition at line 116 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfLayersA

int TRT_FillCablingData_DC2::m_numberOfLayersA {}
private

Definition at line 105 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfLayersAB

int TRT_FillCablingData_DC2::m_numberOfLayersAB {}
private

Definition at line 108 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfLayersB

int TRT_FillCablingData_DC2::m_numberOfLayersB {}
private

Definition at line 106 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfLayersC

int TRT_FillCablingData_DC2::m_numberOfLayersC {}
private

Definition at line 107 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfLayersInPhiSector

int TRT_FillCablingData_DC2::m_numberOfLayersInPhiSector {}
private

Definition at line 110 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfPhiSectorsInIDSector

int TRT_FillCablingData_DC2::m_numberOfPhiSectorsInIDSector {}
private

Definition at line 97 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfPlanesAB

int TRT_FillCablingData_DC2::m_numberOfPlanesAB {}
private

Definition at line 95 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfRings

int TRT_FillCablingData_DC2::m_numberOfRings {}
private

Definition at line 102 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfStrawPlanesAC

int TRT_FillCablingData_DC2::m_numberOfStrawPlanesAC {}
private

Definition at line 129 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfStrawPlanesB

int TRT_FillCablingData_DC2::m_numberOfStrawPlanesB {}
private

Definition at line 130 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfStrawsA

int TRT_FillCablingData_DC2::m_numberOfStrawsA {}
private

Definition at line 103 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfStrawsAB

int TRT_FillCablingData_DC2::m_numberOfStrawsAB {}
private

Definition at line 104 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfStrawsABInRod

int TRT_FillCablingData_DC2::m_numberOfStrawsABInRod {}
private

Definition at line 90 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfStrawsAInRod

int TRT_FillCablingData_DC2::m_numberOfStrawsAInRod {}
private

Definition at line 89 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfStrawsInBarrelROD

int TRT_FillCablingData_DC2::m_numberOfStrawsInBarrelROD {}
private

Definition at line 114 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfStrawsInPhiSector

int TRT_FillCablingData_DC2::m_numberOfStrawsInPhiSector {}
private

Definition at line 111 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfStrawsInPhiSectorAB

int TRT_FillCablingData_DC2::m_numberOfStrawsInPhiSectorAB {}
private

Definition at line 98 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfStrawsInPhiSectorC

int TRT_FillCablingData_DC2::m_numberOfStrawsInPhiSectorC {}
private

Definition at line 99 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfStrawsInPreviousLayers

int* TRT_FillCablingData_DC2::m_numberOfStrawsInPreviousLayers {}
private

Definition at line 134 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfStrawsInROD

int TRT_FillCablingData_DC2::m_numberOfStrawsInROD {}
private

Definition at line 113 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfStrawsInWheelAForRod

int TRT_FillCablingData_DC2::m_numberOfStrawsInWheelAForRod {}
private

Definition at line 91 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfStrawsInWheelBForRod

int TRT_FillCablingData_DC2::m_numberOfStrawsInWheelBForRod {}
private

Definition at line 92 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfStrawsInWheelCForRod

int TRT_FillCablingData_DC2::m_numberOfStrawsInWheelCForRod {}
private

Definition at line 93 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfWheelsA

int TRT_FillCablingData_DC2::m_numberOfWheelsA {}
private

Definition at line 86 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfWheelsAB

int TRT_FillCablingData_DC2::m_numberOfWheelsAB {}
private

Definition at line 87 of file TRT_FillCablingData_DC2.h.

◆ m_numberOfWheelsABC

int TRT_FillCablingData_DC2::m_numberOfWheelsABC {}
private

Definition at line 88 of file TRT_FillCablingData_DC2.h.

◆ m_shiftForLeftBarrel

int TRT_FillCablingData_DC2::m_shiftForLeftBarrel {}
private

Definition at line 120 of file TRT_FillCablingData_DC2.h.

◆ m_shiftForLeftBarrelStraws

int TRT_FillCablingData_DC2::m_shiftForLeftBarrelStraws {}
private

Definition at line 125 of file TRT_FillCablingData_DC2.h.

◆ m_shiftForLeftEndCap

int TRT_FillCablingData_DC2::m_shiftForLeftEndCap {}
private

Definition at line 119 of file TRT_FillCablingData_DC2.h.

◆ m_shiftForLeftEndCapStraws

int TRT_FillCablingData_DC2::m_shiftForLeftEndCapStraws {}
private

Definition at line 124 of file TRT_FillCablingData_DC2.h.

◆ m_shiftForRightBarrel

int TRT_FillCablingData_DC2::m_shiftForRightBarrel {}
private

Definition at line 121 of file TRT_FillCablingData_DC2.h.

◆ m_shiftForRightBarrelStraws

int TRT_FillCablingData_DC2::m_shiftForRightBarrelStraws {}
private

Definition at line 126 of file TRT_FillCablingData_DC2.h.

◆ m_shiftForRightEndCap

int TRT_FillCablingData_DC2::m_shiftForRightEndCap {}
private

Definition at line 122 of file TRT_FillCablingData_DC2.h.

◆ m_shiftForRightEndCapStraws

int TRT_FillCablingData_DC2::m_shiftForRightEndCapStraws {}
private

Definition at line 127 of file TRT_FillCablingData_DC2.h.

◆ m_strawIDInLayer

int* TRT_FillCablingData_DC2::m_strawIDInLayer {}
private

Definition at line 133 of file TRT_FillCablingData_DC2.h.

◆ m_totalNumberOfPlanes

int TRT_FillCablingData_DC2::m_totalNumberOfPlanes {}
private

Definition at line 96 of file TRT_FillCablingData_DC2.h.

◆ m_totalNumberOfStrawsInPhiSectorsAB

int TRT_FillCablingData_DC2::m_totalNumberOfStrawsInPhiSectorsAB {}
private

Definition at line 100 of file TRT_FillCablingData_DC2.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
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
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
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_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
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
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
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
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::m_shiftForLeftEndCap
int m_shiftForLeftEndCap
Definition: TRT_FillCablingData_DC2.h:119
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
TRT_FillCablingData_DC2::fillCollID
void fillCollID(uint32_t robid, std::vector< IdentifierHash > &ids)
Definition: TRT_FillCablingData_DC2.cxx:513
TRT_FillCablingData_DC2::m_cntx
IdContext m_cntx
Definition: TRT_FillCablingData_DC2.h:137
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
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
TRT_FillCablingData_DC2::defineCollID
void defineCollID()
Definition: TRT_FillCablingData_DC2.cxx:448
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
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
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
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:941
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
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
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_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
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
TRT_FillCablingData_DC2::m_numberOfPhiSectorsInIDSector
int m_numberOfPhiSectorsInIDSector
Definition: TRT_FillCablingData_DC2.h:97
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
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
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:220
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
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
a
TList * a
Definition: liststreamerinfos.cxx:10
h
TRT_FillCablingData_DC2::m_numberOfStrawsInWheelBForRod
int m_numberOfStrawsInWheelBForRod
Definition: TRT_FillCablingData_DC2.h:92
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
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
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
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
TRT_FillCablingData_DC2::m_numberOfWheelsAB
int m_numberOfWheelsAB
Definition: TRT_FillCablingData_DC2.h:87
fitman.k
k
Definition: fitman.py:528
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
Identifier
Definition: IdentifierFieldParser.cxx:14
TRT_FillCablingData_DC2::m_numberOfWheelsABC
int m_numberOfWheelsABC
Definition: TRT_FillCablingData_DC2.h:88