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

Algorithm to demonstrate access to TRT detector elements, printing out parameters of specific straws. More...

#include <ReadTRT_DetectorElements.h>

Inheritance diagram for ReadTRT_DetectorElements:
Collaboration diagram for ReadTRT_DetectorElements:

Public Member Functions

 ReadTRT_DetectorElements (const std::string &name, ISvcLocator *pSvcLocator)
 Default Algorithm constructor with parameters. More...
 
StatusCode initialize ()
 
StatusCode execute ()
 
StatusCode finalize ()
 
void printAllElements ()
 
void printBarrelStraw (const InDetDD::TRT_BarrelElement *element, const unsigned int strawNum)
 
void printEndcapStraw (const InDetDD::TRT_EndcapElement *element, const unsigned int strawNum)
 
void printStraw (const InDetDD::TRT_BaseElement *element, const unsigned int strawNum)
 
void compareBarrelStraw (const InDetDD::TRT_BarrelElement *element, const unsigned int strawNum)
 
void compareEndcapStraw (const InDetDD::TRT_EndcapElement *element, const unsigned int strawNum)
 
bool comparePos (const Amg::Vector3D &p1, const Amg::Vector3D &p2, const double err)
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
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 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
 

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

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

std::string m_managerName
 
bool m_doInit
 
bool m_doExec
 
const InDetDD::TRT_DetectorManagerm_manager
 
const TRT_IDm_idHelper
 
double m_maxdiff
 
bool m_first
 
DataObjIDColl m_extendedExtraObjects
 
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

Algorithm to demonstrate access to TRT detector elements, printing out parameters of specific straws.

Definition at line 39 of file ReadTRT_DetectorElements.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ ReadTRT_DetectorElements()

ReadTRT_DetectorElements::ReadTRT_DetectorElements ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Default Algorithm constructor with parameters.

Definition at line 33 of file ReadTRT_DetectorElements.cxx.

33  :
34  AthAlgorithm(name, pSvcLocator),
35  m_managerName("TRT"),
36  m_manager(nullptr),
37  m_idHelper(nullptr),
38  m_maxdiff(0),
39  m_first(true)
40 {
41  // Get parameter values from jobOptions file
42  declareProperty("ManagerName", m_managerName);
43  declareProperty("DoInitialize", m_doInit = true);
44  declareProperty("DoExecute", m_doExec = false);
45 }

Member Function Documentation

◆ compareBarrelStraw()

void ReadTRT_DetectorElements::compareBarrelStraw ( const InDetDD::TRT_BarrelElement element,
const unsigned int  strawNum 
)

Definition at line 351 of file ReadTRT_DetectorElements.cxx.

351  {
352  if (strawNum >= element->nStraws()) {
353  cout << "Straw number out of range:" << strawNum << " >= " << element->nStraws() << endl;
354  return;
355  }
356 
357  double x = element->strawXPos(strawNum);
358  double y = element->strawYPos(strawNum);
359  double z = element->strawZPos(strawNum);
360 
361  Amg::Transform3D transform = element->strawTransform(strawNum);
362  Amg::Vector3D strawPos = transform * origin;
363 
364  if (!comparePos(strawPos, Amg::Vector3D(x,y,z), 1e-9)) {
365  cout << "Straw Positions DIFFER !!!!!" << endl;
366  printStraw(element, strawNum);
367  printBarrelStraw(element, strawNum);
368  }
369 }

◆ compareEndcapStraw()

void ReadTRT_DetectorElements::compareEndcapStraw ( const InDetDD::TRT_EndcapElement element,
const unsigned int  strawNum 
)

Definition at line 372 of file ReadTRT_DetectorElements.cxx.

372  {
373  if (strawNum >= element->getDescriptor()->nStraws()) {
374  cout << "Straw number out of range:" << strawNum << " >= " << element->getDescriptor()->nStraws() << endl;
375  return;
376  }
377  double phiStart = element->getDescriptor()->startPhi();
378  double pitch = element->getDescriptor()->strawPitch();
379  double phi = phiStart + strawNum*pitch;
380  double r = element->getDescriptor()->innerRadius() + 0.5 * element->getDescriptor()->strawLength();
381  double z = (element->transform() * origin).z();
382 
383  Amg::Transform3D transform = element->strawTransform(strawNum);
384  Amg::Vector3D strawPos = transform * origin;
385 
386  if (!comparePos(strawPos, Amg::Vector3D(r*cos(phi), r*sin(phi), z), 1e-5)) {
387  cout << "Straw Positions DIFFER !!!!!" << endl;
388  printStraw(element, strawNum);
389  printEndcapStraw(element, strawNum);
390  }
391 }

◆ comparePos()

bool ReadTRT_DetectorElements::comparePos ( const Amg::Vector3D p1,
const Amg::Vector3D p2,
const double  err 
)

Definition at line 395 of file ReadTRT_DetectorElements.cxx.

395  {
396  for (int i = 0; i < 3; i++) {
397  double diff = std::abs(p1[i] - p2[i]);
399  if (diff > err) return false;
400  }
401  return true;
402 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Algorithm > >::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< Algorithm > >::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< Algorithm > >::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< Algorithm > >::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< Algorithm > >::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< Algorithm > >::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< Algorithm > >::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< Algorithm > >::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< Algorithm > >::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< Algorithm > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

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

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Algorithm > >::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< Algorithm > >::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< Algorithm > >::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; }

◆ execute()

StatusCode ReadTRT_DetectorElements::execute ( )

Definition at line 70 of file ReadTRT_DetectorElements.cxx.

70  {
71  msg(MSG::INFO) << "execute()" << endmsg;
72  // Only print out on first event
73  if (m_first && m_doExec) {
74  m_first = false;
76  }
77  return StatusCode::SUCCESS;
78 }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Algorithm > >::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

◆ extraOutputDeps()

const DataObjIDColl & AthAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 50 of file AthAlgorithm.cxx.

51 {
52  // If we didn't find any symlinks to add, just return the collection
53  // from the base class. Otherwise, return the extended collection.
54  if (!m_extendedExtraObjects.empty()) {
56  }
57  return Algorithm::extraOutputDeps();
58 }

◆ finalize()

StatusCode ReadTRT_DetectorElements::finalize ( )

Definition at line 270 of file ReadTRT_DetectorElements.cxx.

270  {
271  msg(MSG::INFO) << "finalize()" << endmsg;
272  return StatusCode::SUCCESS;
273 }

◆ initialize()

StatusCode ReadTRT_DetectorElements::initialize ( )

Definition at line 49 of file ReadTRT_DetectorElements.cxx.

49  {
50  msg(MSG::INFO) << "initialize()" << endmsg;
51  // Get the manager
53  if (sc.isFailure() || !m_manager) {
54  msg(MSG::FATAL) << "Could not find the Manager: "<< m_managerName << " !" << endmsg;
55  return StatusCode::FAILURE;
56  } else {
57  msg(MSG::DEBUG) << "Manager found" << endmsg;
58  }
59  // Get ID helper
60  if (detStore()->retrieve(m_idHelper, "TRT_ID").isFailure()) {
61  msg(MSG::FATAL) << "Could not get TRT ID helper" << endmsg;
62  return StatusCode::FAILURE;
63  }
65  return StatusCode::SUCCESS;
66 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Algorithm > >::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.

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

MsgStream& AthCommonMsg< Algorithm >::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< Algorithm >::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< Algorithm > >::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.

◆ printAllElements()

void ReadTRT_DetectorElements::printAllElements ( )

Definition at line 80 of file ReadTRT_DetectorElements.cxx.

80  {
81  // Retrieve GeoModel Detector Elements
82  // Get the id helper
83  const TRT_ID * idHelper = m_idHelper;
84  // Examples are shown below for accessing via index for barrel, then endcap and
85  // then accessing via hash
86  //
87  // Access via indices.
88  //
89  //
90  //
91  cout << "======================================" <<endl;
92  cout << " BARREL ELEMENTS - access via index" << endl;
93  cout << "======================================" <<endl;
94  cout << endl;
95  //cache numerology
96  const TRT_Numerology * numerology=m_manager->getNumerology();
97  //avoid getting these inside loops
98  const unsigned int nBarrelRings(numerology->getNBarrelRings());
99  const unsigned int nBarrelPhi(numerology->getNBarrelPhi());
100 
101  for (int iSide = 0; iSide < 2; iSide++) {
102  for (unsigned int iLayer = 0; iLayer != nBarrelRings; iLayer++) {
103  const unsigned int nBarrelLayers(numerology->getNBarrelLayers(iLayer));
104  for (unsigned int iPhiModule = 0; iPhiModule != nBarrelPhi; iPhiModule++) {
105  for (unsigned int iStrawLayer = 0; iStrawLayer !=nBarrelLayers; iStrawLayer++) {
106  cout << "Barrel element " << iSide << ", " << iLayer << ", " << iPhiModule << ", "<< iStrawLayer << endl;
107  const TRT_BarrelElement *element = m_manager->getBarrelElement(iSide, iLayer, iPhiModule, iStrawLayer);
108  // Make identifier.
109  Identifier newId = idHelper->layer_id((iSide ? 1:-1), iPhiModule, iLayer, iStrawLayer);
110  idHelper->show(newId);
111  IdentifierHash idHash = idHelper->straw_layer_hash(newId);
112  cout << "idHash = " << idHash << endl;
113  if (element) {
114  Amg::Vector3D center = element->transform() * origin;
115  cout << " center = " << center << endl;
116  //cout << " strawDir = " << element->strawDirection() << endl;
117  cout << " number of straws = " << element->nStraws() << endl;
118  // Print out straw details of some elements
119  if ((iPhiModule == 0) || (iPhiModule == 1) || (iPhiModule == 7) || (iPhiModule == 31)) {
120  for (unsigned int istraw = 0; istraw < 15; istraw++) {
121  printStraw(element, istraw);
122  //printBarrelStraw(element, istraw);
123  }
124  }
125  // Compare methods
126  for (unsigned int istraw = 0; istraw < element->nStraws(); istraw++) {
127  compareBarrelStraw(element, istraw);
128  }
129  } else {
130  cout << "No Element found " << endl;
131  }
132  }
133  }
134  }
135  }
136 
137  //
138  //
139  cout << "======================================" <<endl;
140  cout << " ENDCAP ELEMENTS - access via index" << endl;
141  cout << "======================================" <<endl;
142  cout << endl;
143  const unsigned int nWheels(numerology->getNEndcapWheels());
144  const unsigned int nEndcapPhi(numerology->getNEndcapPhi());
145  for (int iSide = 0; iSide < 2; iSide++) {
146  for (unsigned int iWheel = 0; iWheel !=nWheels ; iWheel++) {
147  const unsigned int nEndcapLayers(numerology->getNEndcapLayers(iWheel));
148  for (unsigned int iStrawLayer = 0; iStrawLayer != nEndcapLayers; iStrawLayer++){
149  for(unsigned int iPhi = 0; iPhi != nEndcapPhi; iPhi++){
150  cout << "Endcap element " << iSide << ", "<< iWheel << ", "<< iStrawLayer << ", "<< iPhi << endl;
151  const TRT_EndcapElement * element = m_manager->getEndcapElement(iSide, iWheel, iStrawLayer, iPhi);
152 
153  // Make identifier.
154  Identifier newId = idHelper->layer_id((iSide ? 2:-2), iPhi, iWheel, iStrawLayer);
155  idHelper->show(newId);
156  IdentifierHash idHash = idHelper->straw_layer_hash(newId);
157  cout << "idHash = " << idHash << endl;
158 
159  if (element) {
160  Amg::Vector3D center = element->transform() * origin;
161  cout << " center = " << center << endl;
162  cout << " number of straws = " << element->nStraws() << endl;
163  // Print out straw details of some elements
164  int iPhiModule = iPhi;
165  if ((iPhiModule == 0) || (iPhiModule == 1) || (iPhiModule == 7) || (iPhiModule == 31)) {
166  for (unsigned int istraw = 0; istraw < 15; istraw++) {
167  printStraw(element, istraw);
168  //printEndcapStraw(element, istraw);
169  }
170  }
171  // Compare methods
172  for (unsigned int istraw = 0; istraw < element->nStraws(); istraw++) {
173  compareEndcapStraw(element, istraw);
174  }
175  } else {
176  cout << "No Element found " << endl;
177  }
178  }
179  }
180  }
181  }
182 
183 
184 
185  unsigned int maxHash = idHelper->straw_layer_hash_max();
186 
187  //
188  // Try and iterate over all elements.
189  // There is no iterator but we can get the elements via the idHash.
190  //
191 
192  cout << "======================================" <<endl;
193  cout << " ALL ELEMENTS - access via hash" << endl;
194  cout << "======================================" <<endl;
195  cout << endl;
196 
197  cout << " maxHash = " << maxHash << endl;
198 
199  for (unsigned int index = 0; index < maxHash; index++) {
200 
201  IdentifierHash idHash = index;
202 
203  Identifier id = idHelper->layer_id(idHash);
204  idHelper->show(id);
205 
206  const TRT_BaseElement * element;
207 
208  element = m_manager->getElement(idHash);
209 
210  if (element) {
211  Amg::Vector3D center = element->transform() * origin;
212  cout << " center = " << center << endl;
213  } else {
214  cout << "No Element with id hash = " << idHash << endl;
215  }
216  }
217 
218 
219  cout << "======================================" <<endl;
220  cout << " ALL ELEMENTS - access via index from hash" << endl;
221  cout << " (no printout) " << endl;
222  cout << "======================================" <<endl;
223  cout << endl; for (unsigned int index = 0; index < maxHash; index++) {
224 
225  IdentifierHash idHash = index;
226 
227  Identifier id = idHelper->layer_id(idHash);
228  //idHelper->show(id);
229 
230 
231  int idBarrelEndcap = idHelper->barrel_ec(id);
232  int idSide = (idBarrelEndcap > 0);
233  int idLayerWheel = idHelper->layer_or_wheel(id);
234  int idPhiModule = idHelper->phi_module(id);
235  int idStrawLayer = idHelper->straw_layer(id);
236 
237  // Make identifier again,
238  // Identifier newId = idHelper->layer_id(idBarrelEndcap, idPhiModule, idLayerWheel, idStrawLayer);
239  // idHelper->show(newId);
240 
241 
242  const TRT_BaseElement * element;
243 
244 
245  if (idHelper->is_barrel(id)) {
246  element = m_manager->getBarrelElement(idSide, idLayerWheel, idPhiModule, idStrawLayer);
247  } else {
248  element = m_manager->getEndcapElement(idSide, idLayerWheel, idStrawLayer, idPhiModule);
249  }
250 
251  if (element) {
252  //nop
253  //Amg::Vector3D center = element->transform() * origin;
254  //cout << " center = " << center << endl;
255  } else {
256  cout << "No Element with id hash = " << idHash << endl;
257  }
258  }
259 
260  cout << endl;
261 
262  cout << "Max diff = " << m_maxdiff << endl;
263 
264 }

◆ printBarrelStraw()

void ReadTRT_DetectorElements::printBarrelStraw ( const InDetDD::TRT_BarrelElement element,
const unsigned int  strawNum 
)

Definition at line 277 of file ReadTRT_DetectorElements.cxx.

277  {
278  // It is recommended to use the methods in printStraw() rather than the ones here
279  if (strawNum >= element->nStraws()) {
280  cout << "Straw number out of range:" << strawNum << " >= " << element->nStraws() << endl;
281  return;
282  }
283 
284  double x = element->strawXPos(strawNum);
285  double y = element->strawYPos(strawNum);
286  double z = element->strawZPos(strawNum);
287  double r = sqrt(x*x+y*y);
288  double phi = atan2(y,x);
289  cout << "strawNum = " << strawNum << ", "
290  << "x = " << x << ", "
291  << "y = " << y << ", "
292  << "z = " << z << ", "
293  << "r = " << r << ", "
294  << "phi = " << phi << ", "
295  << "length = " << element->strawLength()
296  << endl;
297 
298 
299 }

◆ printEndcapStraw()

void ReadTRT_DetectorElements::printEndcapStraw ( const InDetDD::TRT_EndcapElement element,
const unsigned int  strawNum 
)

Definition at line 302 of file ReadTRT_DetectorElements.cxx.

303 {
304  // It is recommended to use the methods in printStraw() rather than the ones here
305 
306  if (strawNum >= element->nStraws()) {
307  cout << "Straw number out of range:" << strawNum << " >= " << element->nStraws() << endl;
308  return;
309  }
310 
311  double phiStart = element->getDescriptor()->startPhi();
312  double pitch = element->getDescriptor()->strawPitch();
313  double phi = phiStart + strawNum*pitch;
314  phi = atan2(sin(phi), cos(phi)); // Get phi b/n -pi and pi.
315  double z = (element->transform() * origin).z();
316  cout << "strawNum = " << strawNum << ", "
317  << "phiStart = " << phiStart << ", "
318  << "pitch = " << pitch << ", "
319  << "z = " << z << ", "
320  << "r = " << element->getDescriptor()->innerRadius() + 0.5 * element->getDescriptor()->strawLength() << ", "
321  << "phi = " << phi << ", "
322  << "length = " << element->getDescriptor()->strawLength()
323  << endl;
324 
325 }

◆ printStraw()

void ReadTRT_DetectorElements::printStraw ( const InDetDD::TRT_BaseElement element,
const unsigned int  strawNum 
)

Definition at line 330 of file ReadTRT_DetectorElements.cxx.

331 {
332  if (strawNum >= element->nStraws()) {
333  cout << "Straw number out of range:" << strawNum << " >= " << element->nStraws() << endl;
334  return;
335  }
336 
337  const Amg::Transform3D& transform = element->strawTransform(strawNum);
338  Amg::Vector3D strawCenter = transform * origin;
339  cout << "strawNum = " << strawNum << ", "
340  << "x = " << strawCenter.x() << ", "
341  << "y = " << strawCenter.y() << ", "
342  << "z = " << strawCenter.z() << ", "
343  << "r = " << strawCenter.perp() << ", "
344  << "phi = " << strawCenter.phi() << ", "
345  << "length = " << element->strawLength() << ", "
346  << "localAxis = " << transform * Amg::Vector3D(0,0,1)
347  << endl;
348 }

◆ 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< Algorithm > >::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< Algorithm > >::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()

StatusCode AthAlgorithm::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Algorithm > >.

Reimplemented in AthAnalysisAlgorithm, AthFilterAlgorithm, PyAthena::Alg, and AthHistogramAlgorithm.

Definition at line 66 of file AthAlgorithm.cxx.

66  {
68 
69  if (sc.isFailure()) {
70  return sc;
71  }
72  ServiceHandle<ICondSvc> cs("CondSvc",name());
73  for (auto h : outputHandles()) {
74  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
75  // do this inside the loop so we don't create the CondSvc until needed
76  if ( cs.retrieve().isFailure() ) {
77  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
78  return StatusCode::SUCCESS;
79  }
80  if (cs->regHandle(this,*h).isFailure()) {
81  sc = StatusCode::FAILURE;
82  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
83  << " with CondSvc");
84  }
85  }
86  }
87  return sc;
88 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Algorithm > >::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< Algorithm > >::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_detStore

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

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_doExec

bool ReadTRT_DetectorElements::m_doExec
private

Definition at line 63 of file ReadTRT_DetectorElements.h.

◆ m_doInit

bool ReadTRT_DetectorElements::m_doInit
private

Definition at line 62 of file ReadTRT_DetectorElements.h.

◆ m_evtStore

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

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthAlgorithm::m_extendedExtraObjects
privateinherited

Definition at line 79 of file AthAlgorithm.h.

◆ m_first

bool ReadTRT_DetectorElements::m_first
private

Definition at line 69 of file ReadTRT_DetectorElements.h.

◆ m_idHelper

const TRT_ID* ReadTRT_DetectorElements::m_idHelper
private

Definition at line 66 of file ReadTRT_DetectorElements.h.

◆ m_manager

const InDetDD::TRT_DetectorManager* ReadTRT_DetectorElements::m_manager
private

Definition at line 65 of file ReadTRT_DetectorElements.h.

◆ m_managerName

std::string ReadTRT_DetectorElements::m_managerName
private

Definition at line 61 of file ReadTRT_DetectorElements.h.

◆ m_maxdiff

double ReadTRT_DetectorElements::m_maxdiff
private

Definition at line 68 of file ReadTRT_DetectorElements.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Algorithm > >::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
InDetDD::TRT_BarrelElement::strawXPos
double strawXPos(unsigned int i) const
Get X Position: DEPRECATED.
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
beamspotman.r
def r
Definition: beamspotman.py:676
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
InDetDD::TRT_BaseElement::strawLength
virtual const double & strawLength() const =0
Active straw length.
InDetDD::TRT_BarrelElement
Definition: TRT_BarrelElement.h:44
max
#define max(a, b)
Definition: cfImp.cxx:41
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
ReadTRT_DetectorElements::printAllElements
void printAllElements()
Definition: ReadTRT_DetectorElements.cxx:80
python.Constants.FATAL
int FATAL
Definition: Control/AthenaCommon/python/Constants.py:19
InDetDD::TRT_EndcapDescriptor::innerRadius
double & innerRadius()
The inner radius:
Definition: TRT_EndcapDescriptor.cxx:49
ReadTRT_DetectorElements::comparePos
bool comparePos(const Amg::Vector3D &p1, const Amg::Vector3D &p2, const double err)
Definition: ReadTRT_DetectorElements.cxx:395
index
Definition: index.py:1
AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
InDetDD::TRT_DetectorManager::getBarrelElement
const TRT_BarrelElement * getBarrelElement(unsigned int positive, unsigned int moduleIndex, unsigned int phiIndex, unsigned int strawLayerIndex) const
Access Barrel Elements:---------------—(Fast)-------------------------—.
Definition: TRT_DetectorManager.cxx:103
TRT_ID::straw_layer_hash_max
size_type straw_layer_hash_max(void) const
Definition: TRT_ID.h:920
InDetDD::TRT_BaseElement::nStraws
unsigned int nStraws() const
Number of straws in the element.
TRTCalib_cfilter.p1
p1
Definition: TRTCalib_cfilter.py:130
InDetDD::TRT_EndcapElement
Definition: TRT_EndcapElement.h:44
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
mc.diff
diff
Definition: mc.SFGenPy8_MuMu_DD.py:14
ReadTRT_DetectorElements::m_manager
const InDetDD::TRT_DetectorManager * m_manager
Definition: ReadTRT_DetectorElements.h:65
InDetDD::TRT_EndcapDescriptor::nStraws
unsigned int & nStraws()
The number of straws in a module:
Definition: TRT_EndcapDescriptor.cxx:33
ReadTRT_DetectorElements::m_maxdiff
double m_maxdiff
Definition: ReadTRT_DetectorElements.h:68
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
ReadTRT_DetectorElements::m_doExec
bool m_doExec
Definition: ReadTRT_DetectorElements.h:63
x
#define x
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
AthCommonDataStore< AthCommonMsg< Algorithm > >::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
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
InDetDD::TRT_Numerology::getNEndcapWheels
unsigned int getNEndcapWheels() const
TRTCalib_cfilter.p2
p2
Definition: TRTCalib_cfilter.py:131
ReadTRT_DetectorElements::m_doInit
bool m_doInit
Definition: ReadTRT_DetectorElements.h:62
InDetDD::TRT_DetectorManager::getNumerology
TRT_Numerology * getNumerology()
Access Numerological information:---------------------------------------—.
Definition: TRT_DetectorManager.cxx:46
ReadTRT_DetectorElements::m_first
bool m_first
Definition: ReadTRT_DetectorElements.h:69
InDetDD::TRT_Numerology
Definition: TRT_Numerology.h:22
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthAlgorithm.cxx:66
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ReadTRT_DetectorElements::compareBarrelStraw
void compareBarrelStraw(const InDetDD::TRT_BarrelElement *element, const unsigned int strawNum)
Definition: ReadTRT_DetectorElements.cxx:351
dqt_zlumi_pandas.err
err
Definition: dqt_zlumi_pandas.py:182
AthCommonDataStore< AthCommonMsg< Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
lumiFormat.i
int i
Definition: lumiFormat.py:85
z
#define z
InDetDD::TRT_BarrelElement::strawLength
virtual const double & strawLength() const override final
Get the length of the straws (active length):
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
ReadTRT_DetectorElements::m_managerName
std::string m_managerName
Definition: ReadTRT_DetectorElements.h:61
InDetDD::TRT_EndcapElement::getDescriptor
const TRT_EndcapDescriptor * getDescriptor() const
Returns a pointer to a descriptor, giving common information on module construction.
Definition: TRT_EndcapElement.cxx:82
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
Amg::transform
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
Definition: GeoPrimitivesHelpers.h:156
InDetDD::TRT_Numerology::getNBarrelPhi
unsigned int getNBarrelPhi() const
InDetDD::TRT_Numerology::getNBarrelLayers
unsigned int getNBarrelLayers(unsigned int iMod) const
AthCommonDataStore< AthCommonMsg< Algorithm > >::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
ReadTRT_DetectorElements::printStraw
void printStraw(const InDetDD::TRT_BaseElement *element, const unsigned int strawNum)
Definition: ReadTRT_DetectorElements.cxx:330
TRT_ID::straw_layer
int straw_layer(const Identifier &id) const
Definition: TRT_ID.h:893
TRT_ID::layer_or_wheel
int layer_or_wheel(const Identifier &id) const
Definition: TRT_ID.h:884
ReadTRT_DetectorElements::printEndcapStraw
void printEndcapStraw(const InDetDD::TRT_EndcapElement *element, const unsigned int strawNum)
Definition: ReadTRT_DetectorElements.cxx:302
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
InDetDD::TRT_DetectorManager::getEndcapElement
const TRT_EndcapElement * getEndcapElement(unsigned int positive, unsigned int wheelIndex, unsigned int strawLayerIndex, unsigned int phiIndex) const
Access Endcap Elements:---------------—(Fast)--------------------------—.
Definition: TRT_DetectorManager.cxx:119
InDetDD::TRT_EndcapDescriptor::startPhi
double & startPhi()
The starting phi (angular!!)
Definition: TRT_EndcapDescriptor.cxx:41
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
ReadTRT_DetectorElements::printBarrelStraw
void printBarrelStraw(const InDetDD::TRT_BarrelElement *element, const unsigned int strawNum)
Definition: ReadTRT_DetectorElements.cxx:277
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
InDetDD::TRT_DetectorManager::getElement
const TRT_BaseElement * getElement(Identifier id) const
Access Elements Generically---------------------------------------------—.
Definition: TRT_DetectorManager.cxx:148
AtlasDetectorID::show
void show(Identifier id, const IdContext *context=0, char sep='.') const
Short print out of any identifier (optionally provide separation character - default is '.
Definition: AtlasDetectorID.cxx:565
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
TRT_ID::phi_module
int phi_module(const Identifier &id) const
Definition: TRT_ID.h:875
Trk::iPhi
@ iPhi
Definition: ParamDefs.h:47
AthAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Definition: AthAlgorithm.h:79
InDetDD::TRT_EndcapDescriptor::strawPitch
double & strawPitch()
The straw pitch (angular!!)
Definition: TRT_EndcapDescriptor.cxx:37
DeMoScan.index
string index
Definition: DeMoScan.py:364
TRT_ID
Definition: TRT_ID.h:84
InDetDD::TRT_BaseElement::strawTransform
const Amg::Transform3D & strawTransform(unsigned int straw) const
Straw transform - fast access in array, in Tracking frame: Amg.
Definition: TRT_BaseElement.cxx:89
TRT_ID::is_barrel
bool is_barrel(const Identifier &id) const
Test for barrel.
Definition: TRT_ID.h:857
a
TList * a
Definition: liststreamerinfos.cxx:10
y
#define y
h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
InDetDD::TRT_BarrelElement::strawZPos
double strawZPos(unsigned int i) const
Get Z Position: (active center) DEPRECATED.
InDetDD::TRT_EndcapDescriptor::strawLength
double & strawLength()
Definition: TRT_EndcapDescriptor.cxx:45
DEBUG
#define DEBUG
Definition: page_access.h:11
AthCommonMsg< Algorithm >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
ReadTRT_DetectorElements::compareEndcapStraw
void compareEndcapStraw(const InDetDD::TRT_EndcapElement *element, const unsigned int strawNum)
Definition: ReadTRT_DetectorElements.cxx:372
InDetDD::TRT_Numerology::getNEndcapPhi
unsigned int getNEndcapPhi() const
AthAlgorithm::AthAlgorithm
AthAlgorithm()
Default constructor:
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
InDetDD::TRT_Numerology::getNEndcapLayers
unsigned int getNEndcapLayers(unsigned int iWheel) const
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
InDetDD::TRT_Numerology::getNBarrelRings
unsigned int getNBarrelRings() const
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
InDetDD::TRT_BarrelElement::strawYPos
double strawYPos(unsigned int i) const
Get Y Position: DEPRECATED.
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_ID::straw_layer_hash
IdentifierHash straw_layer_hash(Identifier straw_layer_id) const
straw_layer hash from id - optimized
Definition: TRT_ID.h:750
fitman.k
k
Definition: fitman.py:528
InDetDD::TRT_BaseElement
Definition: TRT_BaseElement.h:57
ServiceHandle< ICondSvc >
InDetDD::TRT_BaseElement::transform
virtual const Amg::Transform3D & transform() const override final
Element Surface: Get Transform of element in Tracking frame: Amg.
ReadTRT_DetectorElements::m_idHelper
const TRT_ID * m_idHelper
Definition: ReadTRT_DetectorElements.h:66
Identifier
Definition: IdentifierFieldParser.cxx:14