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_DC1 Class Reference

#include <TRT_FillCablingData_DC1.h>

Inheritance diagram for TRT_FillCablingData_DC1:
Collaboration diagram for TRT_FillCablingData_DC1:

Public Member Functions

 TRT_FillCablingData_DC1 (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual ~TRT_FillCablingData_DC1 ()
 
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 31 of file TRT_FillCablingData_DC1.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_DC1()

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

Definition at line 21 of file TRT_FillCablingData_DC1.cxx.

22  :
24 {
25  declareInterface<TRT_FillCablingData_DC1>(this);
26 }

◆ ~TRT_FillCablingData_DC1()

TRT_FillCablingData_DC1::~TRT_FillCablingData_DC1 ( )
virtual

Definition at line 30 of file TRT_FillCablingData_DC1.cxx.

31 {}

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_DC1::defineCollID ( )
private

Definition at line 447 of file TRT_FillCablingData_DC1.cxx.

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 }

◆ defineIdentifier()

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

Definition at line 700 of file TRT_FillCablingData_DC1.cxx.

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 +
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 +
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 }

◆ defineParameters()

void TRT_FillCablingData_DC1::defineParameters ( )
private

Definition at line 88 of file TRT_FillCablingData_DC1.cxx.

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 }

◆ defineTables()

void TRT_FillCablingData_DC1::defineTables ( )
private

Definition at line 317 of file TRT_FillCablingData_DC1.cxx.

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 }

◆ 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_DC1::fillCollID ( uint32_t  robid,
std::vector< IdentifierHash > &  ids 
)

Definition at line 507 of file TRT_FillCablingData_DC1.cxx.

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 }

◆ fillData()

TRT_CablingData * TRT_FillCablingData_DC1::fillData ( )

Definition at line 82 of file TRT_FillCablingData_DC1.cxx.

83 {
84  return m_cabling;
85 }

◆ finalize()

StatusCode TRT_FillCablingData_DC1::finalize ( )
virtual

Definition at line 67 of file TRT_FillCablingData_DC1.cxx.

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 }

◆ get_parameters()

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

Definition at line 991 of file TRT_FillCablingData_DC1.cxx.

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 }

◆ getRobID()

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

Definition at line 786 of file TRT_FillCablingData_DC1.cxx.

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 }

◆ getRodID()

uint32_t TRT_FillCablingData_DC1::getRodID ( Identifier id) const

Definition at line 841 of file TRT_FillCablingData_DC1.cxx.

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 }

◆ getStrawRodID()

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

Definition at line 902 of file TRT_FillCablingData_DC1.cxx.

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 }

◆ initialize()

StatusCode TRT_FillCablingData_DC1::initialize ( )
virtual

Definition at line 41 of file TRT_FillCablingData_DC1.cxx.

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 }

◆ 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_DC1::interfaceID ( )
static

Definition at line 34 of file TRT_FillCablingData_DC1.cxx.

35 {
36  return IID_ITRT_FillCablingData_DC1;
37 }

◆ 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_DC1::printParameters ( ) const
private

Definition at line 247 of file TRT_FillCablingData_DC1.cxx.

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 }

◆ 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_DC1::m_cabling {}
private

Definition at line 142 of file TRT_FillCablingData_DC1.h.

◆ m_cntx

IdContext TRT_FillCablingData_DC1::m_cntx
private

Definition at line 140 of file TRT_FillCablingData_DC1.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_DC1::m_id_trt {}
private

Definition at line 139 of file TRT_FillCablingData_DC1.h.

◆ m_layerID

int* TRT_FillCablingData_DC1::m_layerID {}
private

Definition at line 135 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfEndCapPhiSectors

int TRT_FillCablingData_DC1::m_numberOfEndCapPhiSectors {}
private

Definition at line 120 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfIdentifierSectors

int TRT_FillCablingData_DC1::m_numberOfIdentifierSectors {}
private

Definition at line 119 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfLayersA

int TRT_FillCablingData_DC1::m_numberOfLayersA {}
private

Definition at line 108 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfLayersAB

int TRT_FillCablingData_DC1::m_numberOfLayersAB {}
private

Definition at line 111 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfLayersB

int TRT_FillCablingData_DC1::m_numberOfLayersB {}
private

Definition at line 109 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfLayersC

int TRT_FillCablingData_DC1::m_numberOfLayersC {}
private

Definition at line 110 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfLayersInPhiSector

int TRT_FillCablingData_DC1::m_numberOfLayersInPhiSector {}
private

Definition at line 113 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfPhiSectorsInIDSector

int TRT_FillCablingData_DC1::m_numberOfPhiSectorsInIDSector {}
private

Definition at line 100 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfPlanesAB

int TRT_FillCablingData_DC1::m_numberOfPlanesAB {}
private

Definition at line 98 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfRings

int TRT_FillCablingData_DC1::m_numberOfRings {}
private

Definition at line 105 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfStrawPlanesAC

int TRT_FillCablingData_DC1::m_numberOfStrawPlanesAC {}
private

Definition at line 132 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfStrawPlanesB

int TRT_FillCablingData_DC1::m_numberOfStrawPlanesB {}
private

Definition at line 133 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfStrawsA

int TRT_FillCablingData_DC1::m_numberOfStrawsA {}
private

Definition at line 106 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfStrawsAB

int TRT_FillCablingData_DC1::m_numberOfStrawsAB {}
private

Definition at line 107 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfStrawsABInRod

int TRT_FillCablingData_DC1::m_numberOfStrawsABInRod {}
private

Definition at line 93 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfStrawsAInRod

int TRT_FillCablingData_DC1::m_numberOfStrawsAInRod {}
private

Definition at line 92 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfStrawsInBarrelROD

int TRT_FillCablingData_DC1::m_numberOfStrawsInBarrelROD {}
private

Definition at line 117 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfStrawsInPhiSector

int TRT_FillCablingData_DC1::m_numberOfStrawsInPhiSector {}
private

Definition at line 114 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfStrawsInPhiSectorAB

int TRT_FillCablingData_DC1::m_numberOfStrawsInPhiSectorAB {}
private

Definition at line 101 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfStrawsInPhiSectorC

int TRT_FillCablingData_DC1::m_numberOfStrawsInPhiSectorC {}
private

Definition at line 102 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfStrawsInPreviousLayers

int* TRT_FillCablingData_DC1::m_numberOfStrawsInPreviousLayers {}
private

Definition at line 137 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfStrawsInROD

int TRT_FillCablingData_DC1::m_numberOfStrawsInROD {}
private

Definition at line 116 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfStrawsInWheelAForRod

int TRT_FillCablingData_DC1::m_numberOfStrawsInWheelAForRod {}
private

Definition at line 94 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfStrawsInWheelBForRod

int TRT_FillCablingData_DC1::m_numberOfStrawsInWheelBForRod {}
private

Definition at line 95 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfStrawsInWheelCForRod

int TRT_FillCablingData_DC1::m_numberOfStrawsInWheelCForRod {}
private

Definition at line 96 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfWheelsA

int TRT_FillCablingData_DC1::m_numberOfWheelsA {}
private

Definition at line 89 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfWheelsAB

int TRT_FillCablingData_DC1::m_numberOfWheelsAB {}
private

Definition at line 90 of file TRT_FillCablingData_DC1.h.

◆ m_numberOfWheelsABC

int TRT_FillCablingData_DC1::m_numberOfWheelsABC {}
private

Definition at line 91 of file TRT_FillCablingData_DC1.h.

◆ m_shiftForLeftBarrel

int TRT_FillCablingData_DC1::m_shiftForLeftBarrel {}
private

Definition at line 123 of file TRT_FillCablingData_DC1.h.

◆ m_shiftForLeftBarrelStraws

int TRT_FillCablingData_DC1::m_shiftForLeftBarrelStraws {}
private

Definition at line 128 of file TRT_FillCablingData_DC1.h.

◆ m_shiftForLeftEndCap

int TRT_FillCablingData_DC1::m_shiftForLeftEndCap {}
private

Definition at line 122 of file TRT_FillCablingData_DC1.h.

◆ m_shiftForLeftEndCapStraws

int TRT_FillCablingData_DC1::m_shiftForLeftEndCapStraws {}
private

Definition at line 127 of file TRT_FillCablingData_DC1.h.

◆ m_shiftForRightBarrel

int TRT_FillCablingData_DC1::m_shiftForRightBarrel {}
private

Definition at line 124 of file TRT_FillCablingData_DC1.h.

◆ m_shiftForRightBarrelStraws

int TRT_FillCablingData_DC1::m_shiftForRightBarrelStraws {}
private

Definition at line 129 of file TRT_FillCablingData_DC1.h.

◆ m_shiftForRightEndCap

int TRT_FillCablingData_DC1::m_shiftForRightEndCap {}
private

Definition at line 125 of file TRT_FillCablingData_DC1.h.

◆ m_shiftForRightEndCapStraws

int TRT_FillCablingData_DC1::m_shiftForRightEndCapStraws {}
private

Definition at line 130 of file TRT_FillCablingData_DC1.h.

◆ m_strawIDInLayer

int* TRT_FillCablingData_DC1::m_strawIDInLayer {}
private

Definition at line 136 of file TRT_FillCablingData_DC1.h.

◆ m_totalNumberOfPlanes

int TRT_FillCablingData_DC1::m_totalNumberOfPlanes {}
private

Definition at line 99 of file TRT_FillCablingData_DC1.h.

◆ m_totalNumberOfStrawsInPhiSectorsAB

int TRT_FillCablingData_DC1::m_totalNumberOfStrawsInPhiSectorsAB {}
private

Definition at line 103 of file TRT_FillCablingData_DC1.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_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_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
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
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::m_numberOfLayersAB
int m_numberOfLayersAB
Definition: TRT_FillCablingData_DC1.h:111
TRT_FillCablingData_DC1::m_numberOfRings
int m_numberOfRings
Definition: TRT_FillCablingData_DC1.h:105
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
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
TRT_FillCablingData_DC1::m_id_trt
const TRT_ID * m_id_trt
Definition: TRT_FillCablingData_DC1.h:139
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
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
TRT_FillCablingData_DC1::m_numberOfStrawsInBarrelROD
int m_numberOfStrawsInBarrelROD
Definition: TRT_FillCablingData_DC1.h:117
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
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
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
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
TRT_FillCablingData_DC1::m_numberOfStrawsInPreviousLayers
int * m_numberOfStrawsInPreviousLayers
Definition: TRT_FillCablingData_DC1.h:137
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
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::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
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_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
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
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_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
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
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
a
TList * a
Definition: liststreamerinfos.cxx:10
TRT_FillCablingData_DC1::m_numberOfStrawsAB
int m_numberOfStrawsAB
Definition: TRT_FillCablingData_DC1.h:107
h
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
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
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
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
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
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
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_DC1::m_shiftForLeftBarrel
int m_shiftForLeftBarrel
Definition: TRT_FillCablingData_DC1.h:123
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_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