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

#include <ReadSiDetectorElements.h>

Inheritance diagram for ReadSiDetectorElements:
Collaboration diagram for ReadSiDetectorElements:

Public Member Functions

 ReadSiDetectorElements (const std::string &name, ISvcLocator *pSvcLocator)
 
StatusCode initialize ()
 
StatusCode execute ()
 
StatusCode finalize ()
 
void testElement (const Identifier &id, const std::vector< InDetDD::SiCellId > &cellIdVec, const std::vector< Amg::Vector2D > &positionsVec, const InDetDD::SiDetectorElementCollection *elements=nullptr) const
 
std::string printElementId (const InDetDD::SiDetectorElement *element) const
 
void printAllElements (const bool accessDuringInitialization)
 
void printRandomAccess (const bool accessDuringInitialization)
 
void printDifference () const
 
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_doLoop
 
bool m_doInit
 
bool m_doExec
 
bool m_useConditionsTools
 
ToolHandle< ISiliconConditionsToolm_siConditionsTool {this, "SiConditionsTool", "SCT_SiliconConditionsTool", "Silicon conditions tool"}
 
ToolHandle< ISiLorentzAngleToolm_siLorentzAngleTool {this, "SiLorentzAngleTool", "SiLorentzAngleTool", "Silicon Lorentz anglet tool"}
 
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollectionm_detEleCollKey {this, "DetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection"}
 
const InDetDD::SiDetectorManagerm_manager
 
const AtlasDetectorIDm_idHelper
 
const PixelIDm_pixelIdHelper
 
const SCT_IDm_sctIdHelper
 
bool m_first
 
bool m_printProbePositions
 
bool m_printTransforms
 
bool m_printDirections
 
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

Definition at line 34 of file ReadSiDetectorElements.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

◆ ReadSiDetectorElements()

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

Definition at line 34 of file ReadSiDetectorElements.cxx.

34  :
35  AthAlgorithm(name, pSvcLocator),
36  m_managerName("Pixel"), // or SCT
37  m_doLoop(true),
38  m_manager(nullptr),
39  m_idHelper(nullptr),
40  m_pixelIdHelper(nullptr),
41  m_sctIdHelper(nullptr),
42  m_first(true)
43 {
44  // Get parameter values from jobOptions file
45  declareProperty("ManagerName", m_managerName);
46  declareProperty("LoopOverElements", m_doLoop);
47  declareProperty("DoInitialize", m_doInit = false);
48  declareProperty("DoExecute", m_doExec = true);
49  declareProperty("UseConditionsTools", m_useConditionsTools = false);
50  declareProperty("PrintProbePositions", m_printProbePositions = true);
51  declareProperty("PrintTransforms", m_printTransforms = true);
52  declareProperty("PrintDirections", m_printDirections = true);
53 }

Member Function Documentation

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

Definition at line 108 of file ReadSiDetectorElements.cxx.

108  {
109  // Only print out on first event
110  if (m_first && m_doExec) {
111  m_first = false;
112  printAllElements(false);
113  printRandomAccess(false);
114  printDifference();
115  }
116  return StatusCode::SUCCESS;
117 }

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

Definition at line 719 of file ReadSiDetectorElements.cxx.

719  {
720  // Part 1: Get the messaging service, print where you are
721  ATH_MSG_INFO("finalize()");
722  return StatusCode::SUCCESS;
723 }

◆ initialize()

StatusCode ReadSiDetectorElements::initialize ( )

Definition at line 57 of file ReadSiDetectorElements.cxx.

57  {
58  // Retrieve GeoModel Detector Elements
59  // You can either get the SCT or pixel manager or the common base class
60  // manager. In this example I get the base class.
61  // const SiDetectorManager * manager;
62  // or
63  // const PixelDetectorManager * manager;
64  // const SCT_DetectorManager * manager;
65 
67  if (m_managerName == "Pixel" || m_managerName == "ITkPixel") {
68  //
69  // Get Pixel ID helper
70  //
71  // Pixel ID helper: const PixelID * m_pixelIdHelper;
73 
74  // If common pixel/SCT code can copy to pointer to AtlasDetectorID
76 
77  } else {
78  //
79  // Get SCT ID helper
80  //
81  // SCT ID helper: const SCT_ID * m_sctIdHelper;
83 
84  // If common pixel/SCT code can copy to pointer to AtlasDetectorID
86  }
87 
89  ATH_CHECK(m_siLorentzAngleTool.retrieve());
90  ATH_CHECK(m_siConditionsTool.retrieve());
91  } else {
92  m_siLorentzAngleTool.disable();
93  m_siConditionsTool.disable();
94  }
95 
96  // Initialize ReadCondHandleKey
98 
99  // Print during initialize
100  if (m_doInit) {
101  printAllElements(true);
102  printRandomAccess(true);
103  }
104  return StatusCode::SUCCESS;
105 }

◆ 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 ReadSiDetectorElements::printAllElements ( const bool  accessDuringInitialization)

Definition at line 119 of file ReadSiDetectorElements.cxx.

119  {
120  const bool useConditionStore = not accessDuringInitialization;
121  const SiDetectorElementCollection* elements = nullptr;
122  if (useConditionStore) {
123  // Get SiDetectorElementCollection from ConditionStore
125  elements = detEle.retrieve();
126  ATH_MSG_INFO("Going to read from Conditions Store using handle: " << m_detEleCollKey.key());
127  if (elements==nullptr) {
128  ATH_MSG_FATAL(m_detEleCollKey.fullKey() << " could not be retrieved");
129  return;
130  }
131  } else {
132  ATH_MSG_INFO("Going to read from detector manager: " << m_managerName);
134  }
135 
136  // There are various ways you can access the elements. eg
137  // m_manager->getDetectorElement(idHash);
138  // m_manager->getDetectorElement(identifier);
139  //
140  // or access the whole collection or the iterators.
141  if (m_doLoop) {
142  for (const SiDetectorElement* element: *elements) {
143  if (element) {
144  ATH_MSG_ALWAYS(m_idHelper->show_to_string(element->identify()));
145  // The id helper is also available through the elements
146  //
147  // element->getIdHelper()->show(element->identify());
148  //
149  ATH_MSG_ALWAYS(" center (x,y,z) = " << element->center().x() << "," << element->center().y() << "," << element->center().z());
150  ATH_MSG_ALWAYS(" center (r,phi,z) = " << element->center().perp() << "," << element->center().phi() << "," <<element->center().z());
152  ATH_MSG_ALWAYS(" global (r,phi,z) position of (1,1) = " <<element->globalPosition(Amg::Vector2D(1,1)).perp() << "," << element->globalPosition(Amg::Vector2D(1,1)).phi() <<","<< element->globalPosition(Amg::Vector2D(1,1)).z());
153  ATH_MSG_ALWAYS(" global (r,phi,z) position of (-1,-1) = " <<element->globalPosition(Amg::Vector2D(-1,-1)).perp() << "," << element->globalPosition(Amg::Vector2D(-1,-1)).phi() <<","<< element->globalPosition(Amg::Vector2D(-1,-1)).z());
154  ATH_MSG_ALWAYS(" global (r,phi,z) hit position of (1,1,0) = " <<element->globalPositionHit(Amg::Vector3D(1,1,0)).perp() << "," << element->globalPositionHit(Amg::Vector3D(1,1,0)).phi() <<","<< element->globalPositionHit(Amg::Vector3D(1,1,0)).z());
155  ATH_MSG_ALWAYS(" global (r,phi,z) hit position of (-1,-1,0) = " <<element->globalPositionHit(Amg::Vector3D(-1,-1,0)).perp() << "," << element->globalPositionHit(Amg::Vector3D(-1,-1,0)).phi() <<","<< element->globalPositionHit(Amg::Vector3D(-1,-1,0)).z());
156  ATH_MSG_ALWAYS(" Cell Id of (1,1) = " <<element->cellIdOfPosition(Amg::Vector2D(1,1)).etaIndex() << "," << element->cellIdOfPosition(Amg::Vector2D(1,1)).phiIndex());
157  ATH_MSG_ALWAYS(" Cell Id of (-1,-1) = " <<element->cellIdOfPosition(Amg::Vector2D(-1,-1)).etaIndex() << "," << element->cellIdOfPosition(Amg::Vector2D(-1,-1)).phiIndex());
158 
159  }
160  ATH_MSG_ALWAYS(" Normal = " <<element->normal().perp() << "," << element->normal().phi() <<","<< element->normal().z());
161  ATH_MSG_ALWAYS(" sin(tilt), sin(stereo) = " << element->sinTilt() << " "
162  << element->sinStereo());
163  ATH_MSG_ALWAYS(" width, minWidth, maxWidth, length (mm) = "
164  << element->width()/CLHEP::mm << " "
165  << element->minWidth()/CLHEP::mm << " "
166  << element->maxWidth()/CLHEP::mm << " "
167  << element->length()/CLHEP::mm);
168 
169  // These are no longer accessed through the detector element.
170  IdentifierHash hashId = element->identifyHash();
171  if (m_useConditionsTools) {
172  const EventContext &ctx = Gaudi::Hive::currentContext();
173  ATH_MSG_ALWAYS(" Temperature (C), bias voltage, depletion voltage: "
174  << m_siConditionsTool->temperature(hashId, ctx) << " "
175  << m_siConditionsTool->biasVoltage(hashId, ctx) << " "
176  << m_siConditionsTool->depletionVoltage(hashId, ctx));
177 
178 
179  ATH_MSG_ALWAYS(" Lorentz correction (mm), tanLorentzPhi = "
180  << m_siLorentzAngleTool->getLorentzShift(hashId, ctx)/CLHEP::mm << " "
181  << m_siLorentzAngleTool->getTanLorentzAngle(hashId, ctx));
182 
183  }
184 
185  ATH_MSG_ALWAYS(" HashId, Id : " << hashId << "\t" << element->identify().getString());
186 
187 
188  // Make some consistency tests for the identifier.
189  Identifier idTest;
190  IdentifierHash idHashTest;
191  if (m_managerName == "Pixel" || m_managerName == "ITkPixel") {
192  idTest = m_pixelIdHelper->wafer_id(hashId);
193  idHashTest = m_pixelIdHelper->wafer_hash(idTest);
194  } else if (m_sctIdHelper) {
195  idTest = m_sctIdHelper->wafer_id(hashId);
196  idHashTest = m_sctIdHelper->wafer_hash(idTest);
197  }
198  const SiDetectorElement * elementtest1 = nullptr;
199  const SiDetectorElement * elementtest2 = nullptr;
200  if (useConditionStore) {
201  // SiDetectorElementCollection::getDetectorElement supports only IdentifierHash as the argument.
202  if (m_managerName == "Pixel" || m_managerName == "ITkPixel") {
203  elementtest1 = elements->getDetectorElement(m_pixelIdHelper->wafer_hash(element->identify()));
204  } else {
205  elementtest1 = elements->getDetectorElement(m_sctIdHelper->wafer_hash(element->identify()));
206  }
207  elementtest2 = elements->getDetectorElement(hashId);
208  } else {
209  elementtest1 = m_manager->getDetectorElement(element->identify());
210  elementtest2 = m_manager->getDetectorElement(hashId);
211  }
212  bool idOK = true;
213  if (idHashTest != hashId) {ATH_MSG_ALWAYS(" Id test 1 FAILED!"); idOK = false;}
214  if (idTest != element->identify()) {ATH_MSG_ALWAYS(" Id test 2 FAILED!"); idOK = false;}
215  if (elementtest1 != element) {ATH_MSG_ALWAYS(" Id test 3 FAILED!"); idOK = false;}
216  if (elementtest2 != element) {ATH_MSG_ALWAYS(" Id test 4 FAILED!"); idOK = false;}
217  if (idOK) ATH_MSG_ALWAYS(" ID tests OK") ;
218  } else {
219  // ATH_MSG_ALWAYS("Missing element!!!!!!!!!!!");
220  }
221  if(m_printTransforms){
222  const GeoTrf::Transform3D mytrf = element->transform();
223  const GeoTrf::Transform3D mytrfhit = element->transformHit();
224 
225  ATH_MSG_ALWAYS("Transform: ");
226  ATH_MSG_ALWAYS("|"<<mytrf(2,0)<<","<<mytrf(2,1)<<","<<mytrf(2,2)<<"|");
227  ATH_MSG_ALWAYS("|"<<mytrf(1,0)<<","<<mytrf(1,1)<<","<<mytrf(1,2)<<"|");
228  ATH_MSG_ALWAYS("|"<<mytrf(0,0)<<","<<mytrf(0,1)<<","<<mytrf(0,2)<<"|");
229  ATH_MSG_ALWAYS("");
230  ATH_MSG_ALWAYS("TransformHit: ");
231  ATH_MSG_ALWAYS("|"<<mytrfhit(2,0)<<","<<mytrfhit(2,1)<<","<<mytrfhit(2,2)<<"|");
232  ATH_MSG_ALWAYS("|"<<mytrfhit(1,0)<<","<<mytrfhit(1,1)<<","<<mytrfhit(1,2)<<"|");
233  ATH_MSG_ALWAYS("|"<<mytrfhit(0,0)<<","<<mytrfhit(0,1)<<","<<mytrfhit(0,2)<<"|");
234  ATH_MSG_ALWAYS("");
235  }
236  if(m_printDirections){
237  ATH_MSG_ALWAYS("Depth Angle: "<<element->depthAngle());
238  if(element->depthDirection()) ATH_MSG_ALWAYS("Depth Direction True");
239  else ATH_MSG_ALWAYS("Depth Direction False");
240  ATH_MSG_ALWAYS("Eta Angle: "<<element->etaAngle());
241  if(element->etaDirection()) ATH_MSG_ALWAYS("Eta Direction True");
242  else ATH_MSG_ALWAYS("Eta Direction False");
243  ATH_MSG_ALWAYS("Phi Angle: "<<element->phiAngle());
244  if(element->phiDirection()) ATH_MSG_ALWAYS("Phi Direction True");
245  else ATH_MSG_ALWAYS("Phi Direction False");
246 
247  if(std::abs(element->depthAngle())<0.5) ATH_MSG_ALWAYS("BAD DEPTH DIRECTION!");
248  if(std::abs(element->etaAngle())<0.5) ATH_MSG_ALWAYS("BAD ETA DIRECTION!");
249  if(std::abs(element->phiAngle())<0.5) ATH_MSG_ALWAYS("BAD PHI DIRECTION!");
250  }
251  //add divider between elements for readability
252  ATH_MSG_ALWAYS("-----------------------------");
253  }
254  }
255  // Testing numerology
256  const SiNumerology siNumerology(m_manager->numerology());
257  int nSides = 1;
258  if (m_sctIdHelper) nSides = 2;
259  int barrelCount = 0;
260  int barrelCountError = 0;
261  // Barrel
262  for (int iBarrelIndex = 0; iBarrelIndex < siNumerology.numBarrels(); iBarrelIndex++) {
263  int iBarrel = siNumerology.barrelId(iBarrelIndex);
264  ATH_MSG_ALWAYS("Barrel: " << iBarrel);
265  ATH_MSG_ALWAYS(" Num layers: " << siNumerology.numLayers());
266  for (int iLayer = 0; iLayer < siNumerology.numLayers(); iLayer++) {
267  ATH_MSG_ALWAYS(" Layer: " << iLayer);
268  if (!siNumerology.useLayer(iLayer))ATH_MSG_ALWAYS(" Layer not present");
269  ATH_MSG_ALWAYS(" Num Modules in Phi: " << siNumerology.numPhiModulesForLayer(iLayer));
270  ATH_MSG_ALWAYS(" Num Modules in Eta: " << siNumerology.numEtaModulesForLayer(iLayer));
271  for (int iPhi = 0; iPhi < siNumerology.numPhiModulesForLayer(iLayer); iPhi++) {
272  for (int iEta = siNumerology.beginEtaModuleForLayer(iLayer); iEta < siNumerology.endEtaModuleForLayer(iLayer); iEta++) {
273  if (!iEta && siNumerology.skipEtaZeroForLayer(iLayer)) continue;
274  for (int iSide = 0; iSide < nSides; iSide++) {
275  Identifier id;
276  if (m_managerName == "Pixel" || m_managerName == "ITkPixel"){
277  id = m_pixelIdHelper->wafer_id(iBarrel,iLayer,iPhi,iEta);
278  } else {
279  id = m_sctIdHelper->wafer_id(iBarrel,iLayer,iPhi,iEta,iSide);
280  }
281  const SiDetectorElement * element = nullptr;
282  if (useConditionStore) {
283  // SiDetectorElementCollection::getDetectorElement supports only IdentifierHash as the argument.
284  if (m_managerName == "Pixel" || m_managerName == "ITkPixel") {
285  element = elements->getDetectorElement(m_pixelIdHelper->wafer_hash(id));
286  } else {
287  element = elements->getDetectorElement(m_sctIdHelper->wafer_hash(id));
288  }
289  } else {
290  element = m_manager->getDetectorElement(id);
291  }
292  barrelCount++;
293  if (!element) {
294  barrelCountError++;
295  ATH_MSG_ALWAYS(" No element found for id: " << m_idHelper->show_to_string(id));
296  } else {
297  // For extra safety in case some strip modules do not have two sides (eg in future geometries) one could add.
298  if (!element->otherSide()) iSide++;
300  }
301  } // iSide
302  } // iEta
303  } //iPhi
304  } //iLayer
305  } // Barrel
306 
307  int endcapCount = 0;
308  int endcapCountError = 0;
309  // Endcap
310  for (int iEndcapIndex = 0; iEndcapIndex < siNumerology.numEndcaps(); iEndcapIndex++) {
311  int iEndcap = siNumerology.endcapId(iEndcapIndex);
312  ATH_MSG_ALWAYS("Endcap: " << iEndcap);
313  ATH_MSG_ALWAYS(" Num disks: " << siNumerology.numDisks());
314  for (int iDisk = 0; iDisk < siNumerology.numDisks(); iDisk++) {
315  ATH_MSG_ALWAYS(" Disk: " << iDisk);
316  if (!siNumerology.useDisk(iDisk))ATH_MSG_ALWAYS(" Disk not present");
317  ATH_MSG_ALWAYS(" Num Rings: " << siNumerology.numRingsForDisk(iDisk));
318  for (int iEta = 0; iEta < siNumerology.numRingsForDisk(iDisk); iEta++) {
319  ATH_MSG_ALWAYS(" Ring: " << iEta);
320  ATH_MSG_ALWAYS(" Num Modules in Phi: " << siNumerology.numPhiModulesForDiskRing(iDisk,iEta));
321  for (int iPhi = 0; iPhi < siNumerology.numPhiModulesForDiskRing(iDisk,iEta); iPhi++) {
322  for (int iSide = 0; iSide < nSides; iSide++) {
323  Identifier id;
324  if (m_managerName == "Pixel" || m_managerName == "ITkPixel") {
325  id = m_pixelIdHelper->wafer_id(iEndcap,iDisk,iPhi,iEta);
326  } else {
327  id = m_sctIdHelper->wafer_id(iEndcap,iDisk,iPhi,iEta,iSide);
328  }
329  const SiDetectorElement * element = m_manager->getDetectorElement(id);
330  endcapCount++;
331  if (!element) {
332  endcapCountError++;
333  ATH_MSG_ALWAYS(" No element found for id: " << m_idHelper->show_to_string(id));
334  } else {
335  // For extra safety in case some strip modules do not have two sides (eg in future geometries) one could add.
336  if (!element->otherSide()) iSide++;
338  }
339  } // iSide
340  } // iEta
341  } //iPhi
342  } //iDisk
343  } // Endcap;
344 
345  ATH_MSG_ALWAYS("Number of barrel elements : " << barrelCount);
346  ATH_MSG_ALWAYS("Number not found : " << barrelCountError);
347  ATH_MSG_ALWAYS("Number of endcap elements : " << endcapCount);
348  ATH_MSG_ALWAYS("Number not found : " << endcapCountError);
349 
350  // Maximums
351  ATH_MSG_ALWAYS("MaxNumBarrelEta: " << siNumerology.maxNumBarrelEta());
352  ATH_MSG_ALWAYS("MaxNumEndcapRings: " << siNumerology.maxNumEndcapRings());
353  ATH_MSG_ALWAYS("MaxNumStrips: " << siNumerology.maxNumStrips());
354  ATH_MSG_ALWAYS("MaxNumPhiCells: " << siNumerology.maxNumPhiCells());
355  ATH_MSG_ALWAYS("MaxNumEtaCells: " << siNumerology.maxNumEtaCells());
356 
357  ATH_MSG_ALWAYS("Num Designs: " << m_manager->numDesigns());
358 }

◆ printDifference()

void ReadSiDetectorElements::printDifference ( ) const

Definition at line 540 of file ReadSiDetectorElements.cxx.

540  {
541  // Get SiDetectorElementCollection from ConditionStore
543  const SiDetectorElementCollection* elementsC = detEle.retrieve();
544  ATH_MSG_INFO("Going to read from Conditions Store using handle: " << m_detEleCollKey.key());
545  if (elementsC==nullptr) {
546  ATH_MSG_FATAL(m_detEleCollKey.fullKey() << " could not be retrieved");
547  return;
548  }
549 
550  // Get SiDetectorElementCollection from detector manager
552 
553  if (elementsC->size()!=elementsM->size()) {
554  ATH_MSG_FATAL("Sizes of SiDetectorElementCollections are different");
555  }
556 
557  SiDetectorElementCollection::const_iterator elementC = elementsC->begin();
558  SiDetectorElementCollection::const_iterator elementM = elementsM->begin();
559  SiDetectorElementCollection::const_iterator elementMe = elementsM->end();
560  for (; elementM!=elementMe; ++elementC, ++elementM) {
561  auto diff = (*elementC)->center()-(*elementM)->center();
562  if (diff[0]!=0. or diff[1]!=0. or diff[2]!=0.) {
563  ATH_MSG_ALWAYS("----------------------------------------------");
564  ATH_MSG_ALWAYS("hash: " << (*elementC)->identifyHash());
565  ATH_MSG_ALWAYS("center (store) " << (*elementC)->center().transpose());
566  ATH_MSG_ALWAYS("center (manager) " << (*elementM)->center().transpose());
567  ATH_MSG_ALWAYS("diff (store-manager) " << diff.transpose());
568  ATH_MSG_ALWAYS("----------------------------------------------");
569  }
570  }
571 }

◆ printElementId()

std::string ReadSiDetectorElements::printElementId ( const InDetDD::SiDetectorElement element) const

Definition at line 707 of file ReadSiDetectorElements.cxx.

707  {
708  if (element) {
709  return element->getIdHelper()->show_to_string(element->identify());
710  } else {
711  return "NONE";
712  }
713 }

◆ printRandomAccess()

void ReadSiDetectorElements::printRandomAccess ( const bool  accessDuringInitialization)

Definition at line 361 of file ReadSiDetectorElements.cxx.

361  {
362  ATH_MSG_INFO("printRandomAccess()");
363 
364  const bool useConditionStore = (m_managerName == "SCT" and (not accessDuringInitialization));
365  const SiDetectorElementCollection* elements = nullptr;
366  if (useConditionStore) {
367  // Get SiDetectorElementCollection from ConditionStore
369  elements = detEle.retrieve();
370  if (elements==nullptr) {
371  ATH_MSG_FATAL(m_detEleCollKey.fullKey() << " could not be retrieved");
372  return;
373  }
374  }
375 
376  // Some random access
377  if (m_managerName == "Pixel" || m_managerName == "ITkPixel") {
378  //const PixelID * idHelper = dynamic_cast<const PixelID *>(m_manager->getIdHelper());
379  const PixelID * idHelper = m_pixelIdHelper;
380  if (idHelper) {
381  Identifier id;
382  std::vector<SiCellId> cellIds;
383  std::vector<Amg::Vector2D> positions;
384  // wafer_id(barrel_ec, layer_disk, phi_module, eta_module)
385  // A barrel element
386  ATH_MSG_ALWAYS("----------------------------------------------");
387  ATH_MSG_ALWAYS(" A Pixel Barrel element (non B-layer) " );
388  ATH_MSG_ALWAYS("----------------------------------------------");
389  id = idHelper->wafer_id(0,1,15,-3);
390  cellIds.emplace_back(32,8); // phi,eta
391  //add a range of cells from 151 to 175
392  for (int i(151);i != 176; ++i){
393  cellIds.emplace_back(i,8); // phi,eta
394  }
395  cellIds.emplace_back(-1,1); // phi,eta
396  cellIds.emplace_back(0,1); // phi,eta
397  cellIds.emplace_back(1,-1); // phi,eta
398  cellIds.emplace_back(1,0); // phi,eta
399  cellIds.emplace_back(327,1); // phi,eta
400  cellIds.emplace_back(328,1); // phi,eta
401  cellIds.emplace_back(1,143); // phi,eta
402  cellIds.emplace_back(1,144); // phi,eta
403  positions.emplace_back(12.727*CLHEP::mm, 4.534*CLHEP::mm); // eta,phi
404  testElement(id, cellIds, positions, elements);
405 
406  // A barrel element (B-Layer)
407  ATH_MSG_ALWAYS("----------------------------------------------");
408  ATH_MSG_ALWAYS(" A Pixel Barrel element (B-layer) " );
409  ATH_MSG_ALWAYS("----------------------------------------------");
410  id = idHelper->wafer_id(0,0,7,-3);
411  cellIds.clear();
412  positions.clear();
413  cellIds.emplace_back(32,8); // phi,eta
414  positions.emplace_back(12.727*CLHEP::mm, 4.534*CLHEP::mm); // eta,phi
415  testElement(id, cellIds, positions, elements);
416 
417  // An endcap element
418  ATH_MSG_ALWAYS("----------------------------------------------");
419  ATH_MSG_ALWAYS(" A Pixel Endcap element" );
420  ATH_MSG_ALWAYS("----------------------------------------------");
421  id = idHelper->wafer_id(2,2,13,0);
422  cellIds.emplace_back(182,75); // phi,eta
423  positions.emplace_back(0*CLHEP::mm, 0*CLHEP::mm); // eta,phi
424  positions.emplace_back(30.4*CLHEP::mm, 8.2*CLHEP::mm); // eta,phi - on edge
425  positions.emplace_back(12*CLHEP::mm, -8.15*CLHEP::mm); // eta,phi - near edge
426  positions.emplace_back(12*CLHEP::mm, -8.25*CLHEP::mm); // eta,phi - near edge
427  positions.emplace_back(12*CLHEP::mm, -8.35*CLHEP::mm); // eta,phi - outside
428  testElement(id, cellIds, positions, elements);
429 
430  }
431  } else if (m_managerName == "SCT" || m_managerName == "ITkStrip") {
432 
433  //const SCT_ID * idHelper = dynamic_cast<const SCT_ID *>(m_manager->getIdHelper());
434  const SCT_ID * idHelper = m_sctIdHelper;
435  if (idHelper) {
436 
437  Identifier id;
438  std::vector<SiCellId> cellIds;
439  std::vector<Amg::Vector2D> positions;
440 
441 
442  // wafer_id(barrel_ec, layer_disk, phi_module, eta_module, side)
443  // A barrel element
444  ATH_MSG_ALWAYS("----------------------------------------------");
445  ATH_MSG_ALWAYS(" A SCT Barrel element" );
446  ATH_MSG_ALWAYS("----------------------------------------------");
447  id = idHelper->wafer_id(0,1,15,-3,0);
448  cellIds.clear();
449  positions.clear();
450  cellIds.emplace_back(32); // phi,eta
451  cellIds.emplace_back(1); // phi,eta
452  cellIds.emplace_back(0); // phi,eta
453  if (m_managerName == "SCT") {
454  cellIds.emplace_back(-1); // phi,eta
455  cellIds.emplace_back(-2); // phi,eta
456  cellIds.emplace_back(-3); // phi,eta
457  }
458  cellIds.emplace_back(767); // phi,eta
459  cellIds.emplace_back(768); // phi,eta
460  positions.emplace_back(12.727*CLHEP::mm, 4.534*CLHEP::mm); // eta,phi
461  testElement(id, cellIds, positions, elements);
462 
463  // A barrel element (other side of above)
464  ATH_MSG_ALWAYS("----------------------------------------------");
465  ATH_MSG_ALWAYS(" A SCT Barrel element (other side of above) ");
466  ATH_MSG_ALWAYS("----------------------------------------------");
467  id = idHelper->wafer_id(0,1,15,-3,1);
468  cellIds.clear();
469  positions.clear();
470  cellIds.emplace_back(32); // phi,eta
471  positions.emplace_back(12.727*CLHEP::mm, 4.534*CLHEP::mm); // eta,phi
472  testElement(id, cellIds, positions, elements);
473 
474  // A outer fwd
475  ATH_MSG_ALWAYS("----------------------------------------------");
476  ATH_MSG_ALWAYS(" A SCT Endcap element (outer type)" );
477  ATH_MSG_ALWAYS("----------------------------------------------");
478  id = idHelper->wafer_id(2,3,15,0,0);
479  cellIds.clear();
480  positions.clear();
481  cellIds.emplace_back(532); // phi,eta
482  cellIds.emplace_back(0); // phi,eta
483  if (m_managerName == "SCT") cellIds.emplace_back(-1); // phi,eta
484  cellIds.emplace_back(767); // phi,eta
485  cellIds.emplace_back(768); // phi,eta
486  positions.emplace_back(12.727*CLHEP::mm, 20.534*CLHEP::mm); // eta,phi
487  positions.emplace_back(12.727*CLHEP::mm, -20.534*CLHEP::mm); // eta,phi
488  positions.emplace_back(3*CLHEP::mm, -25*CLHEP::mm); // eta,phi
489  testElement(id, cellIds, positions, elements);
490 
491  ATH_MSG_ALWAYS("----------------------------------------------");
492  ATH_MSG_ALWAYS(" A SCT Endcap element (outer type) other side");
493  ATH_MSG_ALWAYS("----------------------------------------------");
494  id = idHelper->wafer_id(2,3,15,0,1);
495  cellIds.clear();
496  positions.clear();
497  cellIds.emplace_back(532); // phi,eta
498  positions.emplace_back(12.727*CLHEP::mm, 20.534*CLHEP::mm); // eta,phi
499  positions.emplace_back(12.727*CLHEP::mm, -20.534*CLHEP::mm); // eta,phi
500  positions.emplace_back(3*CLHEP::mm, -25*CLHEP::mm); // eta,phi
501  testElement(id, cellIds, positions, elements);
502 
503  // A middle fwd
504  ATH_MSG_ALWAYS("----------------------------------------------");
505  ATH_MSG_ALWAYS(" A SCT Endcap element (middle type)" );
506  ATH_MSG_ALWAYS("----------------------------------------------");
507  id = idHelper->wafer_id(2,1,15,1,0);
508  cellIds.clear();
509  positions.clear();
510  cellIds.emplace_back(532); // phi,eta
511  positions.emplace_back(12.727*CLHEP::mm, 4.534*CLHEP::mm); // eta,phi
512  testElement(id, cellIds, positions, elements);
513 
514  // A truncated middle
515  ATH_MSG_ALWAYS("----------------------------------------------");
516  ATH_MSG_ALWAYS(" A SCT Endcap element (truncated middle type)" );
517  ATH_MSG_ALWAYS("----------------------------------------------");
518  id = idHelper->wafer_id(2,7,15,1,0);
519  cellIds.clear();
520  positions.clear();
521  cellIds.emplace_back(532); // phi,eta
522  positions.emplace_back(12.727*CLHEP::mm, 4.534*CLHEP::mm); // eta,phi
523  testElement(id, cellIds, positions, elements);
524 
525  // A inner fwd
526  ATH_MSG_ALWAYS("----------------------------------------------");
527  ATH_MSG_ALWAYS(" A SCT Endcap element (inner type)" );
528  ATH_MSG_ALWAYS("----------------------------------------------");
529  id = idHelper->wafer_id(2,1,15,2,0);
530  cellIds.clear();
531  positions.clear();
532  cellIds.emplace_back(532); // phi,eta
533  positions.emplace_back(12.727*CLHEP::mm, 4.534*CLHEP::mm); // eta,phi
534  testElement(id, cellIds, positions, elements);
535  }
536  } // if manager = Pixel,SCT
537 }

◆ 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.

◆ testElement()

void ReadSiDetectorElements::testElement ( const Identifier id,
const std::vector< InDetDD::SiCellId > &  cellIdVec,
const std::vector< Amg::Vector2D > &  positionsVec,
const InDetDD::SiDetectorElementCollection elements = nullptr 
) const

Definition at line 574 of file ReadSiDetectorElements.cxx.

577  {
578  ATH_MSG_ALWAYS("----------------------------------------------");
579  const SiDetectorElement * element = nullptr;
580  if (elements) {
581  if (m_managerName == "Pixel" || m_managerName == "ITkPixel") {
582  element = elements->getDetectorElement(m_pixelIdHelper->wafer_hash(id));
583  } else {
584  element = elements->getDetectorElement(m_sctIdHelper->wafer_hash(id));
585  }
586  } else {
587  element = m_manager->getDetectorElement(id);
588  }
589  if (element) {
590  IdentifierHash hashId = element->identifyHash();
591  ATH_MSG_ALWAYS(element->getIdHelper()->show_to_string(id));
592  ATH_MSG_ALWAYS(" width, minWidth, maxWidth, length, thickness (mm) = "
593  << element->width()/CLHEP::mm << " "
594  << element->minWidth()/CLHEP::mm << " "
595  << element->maxWidth()/CLHEP::mm << " "
596  << element->length()/CLHEP::mm << " "
597  << element->thickness()/CLHEP::mm
598  );
599  ATH_MSG_ALWAYS(" average etaPitch = " << element->etaPitch()/CLHEP::micrometer << " microns");
600  ATH_MSG_ALWAYS(" average phiPitch = " << element->phiPitch()/CLHEP::micrometer << " microns");
601  ATH_MSG_ALWAYS(" rMin, rMax, zMin, zMax (mm), phiMin, phiMax (deg) = "
602  << element->rMin()/CLHEP::mm << " "
603  << element->rMax()/CLHEP::mm << " "
604  << element->zMin()/CLHEP::mm << " "
605  << element->zMax()/CLHEP::mm << " "
606  << element->phiMin()/CLHEP::degree << " "
607  << element->phiMax()/CLHEP::degree
608  );
609  ATH_MSG_ALWAYS(" center, normal, etaAxis, phiAxis = "
610  << element->center() << " "
611  << element->normal() << " "
612  << element->etaAxis() << " "
613  << element->phiAxis()
614  );
615  ATH_MSG_ALWAYS(" center: r (mm) = " << element->center().perp()/CLHEP::mm
616  << ", phi (deg) = " << element->center().phi()/CLHEP::deg);
617  if (m_useConditionsTools) {
618  const EventContext &ctx = Gaudi::Hive::currentContext();
619  ATH_MSG_ALWAYS(" Temperature (C), bias voltage, depletion voltage: "
620  << m_siConditionsTool->temperature(hashId, ctx) << " "
621  << m_siConditionsTool->biasVoltage(hashId, ctx) << " "
622  << m_siConditionsTool->depletionVoltage(hashId, ctx));
623  }
624  ATH_MSG_ALWAYS(" sin(tilt), tilt (deg), sin(stereo), stereo (deg) = "
625  << element->sinTilt() << ", "
626  << asin(element->sinTilt())/CLHEP::degree << ", "
627  << element->sinStereo() << ", "
628  << asin(element->sinStereo())/CLHEP::degree);
629  ATH_MSG_ALWAYS(" Neighbours: ");
630  ATH_MSG_ALWAYS(" nextInEta: " << printElementId(element->nextInEta()) );
631  ATH_MSG_ALWAYS(" prevInEta: " << printElementId(element->prevInEta()) );
632  ATH_MSG_ALWAYS(" nextInPhi: " << printElementId(element->nextInPhi()) );
633  ATH_MSG_ALWAYS(" prevInPhi: " << printElementId(element->prevInPhi()) );
634  ATH_MSG_ALWAYS(" otherSide: " << printElementId(element->otherSide()) );
635 
636  for (unsigned int iTestCell = 0; iTestCell < cellIdVec.size(); iTestCell++) {
637  SiCellId cellId = cellIdVec[iTestCell];
638  ATH_MSG_ALWAYS(" cell [phiIndex.etaIndex] = " << cellId);
639 
640  // Test cell Id -> Identifier
641  Identifier fullCellId = element->identifierFromCellId(cellId);
642  ATH_MSG_ALWAYS(" identifier = ");
643  element->getIdHelper()->show(fullCellId);
644 
645  // Test Identifier -> cell Id
646  SiCellId cellId2 = element->cellIdFromIdentifier(fullCellId);
647  ATH_MSG_ALWAYS(" extracted cell id [phiIndex.etaIndex] = " << cellId2);
648 
649  InDetDD::SiLocalPosition localPosRaw1 = element->rawLocalPositionOfCell(cellId);
650  InDetDD::SiLocalPosition localPosRaw2 = element->rawLocalPositionOfCell(fullCellId);
651  ATH_MSG_ALWAYS(" raw localPosition (using cell id) (xPhi,xEta) = "
652  << localPosRaw1.xPhi() << ", " << localPosRaw1.xEta());
653  ATH_MSG_ALWAYS(" raw localPosition (using full id) (xPhi,xEta) = "
654  << localPosRaw2.xPhi() << ", " << localPosRaw2.xEta());
655  SiCellId cellIdRaw(element->cellIdOfPosition(localPosRaw1));
656  ATH_MSG_ALWAYS(" corresponding cell (phiIndex,etaIndex) = "
657  << cellIdRaw);
658  ATH_MSG_ALWAYS(" Number of connected cells (2 means ganged): "
659  << element->numberOfConnectedCells(cellId));
660  msg(MSG::ALWAYS) << " Connected cells";
661  for (int iCell=0; iCell < element->numberOfConnectedCells(cellId) ; iCell++) {
662  SiCellId connectedCellId = element->connectedCell(cellId, iCell);
663  msg(MSG::ALWAYS) << ", " << iCell << ": " << connectedCellId;
664  }
665  ATH_MSG_ALWAYS("In range: " << element->design().cellIdInRange(cellId));
666  }
667 
668  for (unsigned int iTestPos = 0; iTestPos < positionsVec.size(); iTestPos++) {
669  const InDetDD::SiLocalPosition & localPosOrig = positionsVec[iTestPos];
670  ATH_MSG_ALWAYS(" Requested local pos (xPhi,xEta) = " << localPosOrig.xPhi() << ", " << localPosOrig.xEta());
671  //lost out to HepGeom here
672  Amg::Vector3D globalPos(element->globalPosition(localPosOrig));
673  ATH_MSG_ALWAYS(" Global pos = " << globalPos << ", r (mm) = " << globalPos.perp()/CLHEP::mm<< ", phi (deg) = " << globalPos.phi()/CLHEP::degree);
674 
675  //...because i need a HepGeom::Point3D<double> to pass to element->localPosition...
676  InDetDD::SiLocalPosition localPosNew(element->localPosition(globalPos));
677  ATH_MSG_ALWAYS(" Returned local Pos (xPhi,xEta) = " << localPosNew.xPhi() << ", " << localPosNew.xEta());
678  // Some arbitrary tolerance picked out of the air.
679  double tolerance = 100*CLHEP::micrometer;
680  SiIntersect intersectState = element->inDetector(globalPos, tolerance, tolerance);
681  ATH_MSG_ALWAYS(" Intersects (tolerance = " << tolerance/CLHEP::mm << " mm) "
682  << " (in,out,nearBoundary,mayIntersect) : "
683  << intersectState.in() << ","
684  << intersectState.out() << ","
685  << intersectState.nearBoundary() << ","
686  << intersectState.mayIntersect());
687  ATH_MSG_ALWAYS(" Near bond gap: (tolerance = " << tolerance/CLHEP::mm << " mm) : "
688  << element->nearBondGap(globalPos, tolerance));
689  SiCellId returnedCellId = element->cellIdOfPosition(localPosNew);
690 
691  ATH_MSG_ALWAYS(" Returned cell Id [phiIndex.etaIndex] = "
692  << returnedCellId);
693  ATH_MSG_ALWAYS(" using global position sin(tilt), tilt (deg), sin(stereo), stereo (deg) = "
694  << element->sinTilt(globalPos) << ", "
695  << asin(element->sinTilt(globalPos))/CLHEP::degree << ", "
696  << element->sinStereo(globalPos) << ", "
697  << asin(element->sinStereo(globalPos))/CLHEP::degree);
698  }
699  } else { // element == 0
700 
701  ATH_MSG_ALWAYS(" ELEMENT MISSING!!!!!!!!!! ");
702  }
703  ATH_MSG_ALWAYS("----------------------------------------------");
704 }

◆ 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_detEleCollKey

SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> ReadSiDetectorElements::m_detEleCollKey {this, "DetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection"}
private

Definition at line 60 of file ReadSiDetectorElements.h.

◆ 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 ReadSiDetectorElements::m_doExec
private

Definition at line 55 of file ReadSiDetectorElements.h.

◆ m_doInit

bool ReadSiDetectorElements::m_doInit
private

Definition at line 54 of file ReadSiDetectorElements.h.

◆ m_doLoop

bool ReadSiDetectorElements::m_doLoop
private

Definition at line 53 of file ReadSiDetectorElements.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 ReadSiDetectorElements::m_first
private

Definition at line 68 of file ReadSiDetectorElements.h.

◆ m_idHelper

const AtlasDetectorID* ReadSiDetectorElements::m_idHelper
private

Definition at line 64 of file ReadSiDetectorElements.h.

◆ m_manager

const InDetDD::SiDetectorManager* ReadSiDetectorElements::m_manager
private

Definition at line 63 of file ReadSiDetectorElements.h.

◆ m_managerName

std::string ReadSiDetectorElements::m_managerName
private

Definition at line 52 of file ReadSiDetectorElements.h.

◆ m_pixelIdHelper

const PixelID* ReadSiDetectorElements::m_pixelIdHelper
private

Definition at line 65 of file ReadSiDetectorElements.h.

◆ m_printDirections

bool ReadSiDetectorElements::m_printDirections
private

Definition at line 71 of file ReadSiDetectorElements.h.

◆ m_printProbePositions

bool ReadSiDetectorElements::m_printProbePositions
private

Definition at line 69 of file ReadSiDetectorElements.h.

◆ m_printTransforms

bool ReadSiDetectorElements::m_printTransforms
private

Definition at line 70 of file ReadSiDetectorElements.h.

◆ m_sctIdHelper

const SCT_ID* ReadSiDetectorElements::m_sctIdHelper
private

Definition at line 66 of file ReadSiDetectorElements.h.

◆ m_siConditionsTool

ToolHandle<ISiliconConditionsTool> ReadSiDetectorElements::m_siConditionsTool {this, "SiConditionsTool", "SCT_SiliconConditionsTool", "Silicon conditions tool"}
private

Definition at line 57 of file ReadSiDetectorElements.h.

◆ m_siLorentzAngleTool

ToolHandle<ISiLorentzAngleTool> ReadSiDetectorElements::m_siLorentzAngleTool {this, "SiLorentzAngleTool", "SiLorentzAngleTool", "Silicon Lorentz anglet tool"}
private

Definition at line 58 of file ReadSiDetectorElements.h.

◆ m_useConditionsTools

bool ReadSiDetectorElements::m_useConditionsTools
private

Definition at line 56 of file ReadSiDetectorElements.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::SiIntersect::out
bool out() const
Definition: SiIntersect.h:55
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
InDetDD::SolidStateDetectorElementBase::connectedCell
SiCellId connectedCell(const SiCellId cellId, int number) const
Get the cell ids sharing the readout for this cell.
Definition: SolidStateDetectorElementBase.cxx:250
InDetDD::SolidStateDetectorElementBase::cellIdOfPosition
SiCellId cellIdOfPosition(const Amg::Vector2D &localPos) const
As in previous method but returns SiCellId.
Definition: SolidStateDetectorElementBase.cxx:224
InDetDD::SiDetectorManager::getDetectorElement
virtual SiDetectorElement * getDetectorElement(const Identifier &id) const =0
access to individual elements using Identifier or IdentiferHash
InDetDD::SiDetectorManager::numerology
const SiNumerology & numerology() const
Access Numerology.
Definition: SiDetectorManager.h:126
InDetDD::SolidStateDetectorElementBase::phiMax
double phiMax() const
InDetDD::SiDetectorElementCollection
Definition: SiDetectorElementCollection.h:30
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
ReadSiDetectorElements::printDifference
void printDifference() const
Definition: ReadSiDetectorElements.cxx:540
InDetDD::SolidStateDetectorElementBase::inDetector
SiIntersect inDetector(const Amg::Vector2D &localPosition, double phiTol, double etaTol) const
Test that it is in the active region.
Definition: SolidStateDetectorElementBase.cxx:204
ReadSiDetectorElements::m_printProbePositions
bool m_printProbePositions
Definition: ReadSiDetectorElements.h:69
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition: GeoPrimitives.h:48
AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
InDetDD::SiDetectorManager::numDesigns
int numDesigns() const
Definition: SiDetectorManager.cxx:140
InDetDD::SolidStateDetectorElementBase::center
virtual const Amg::Vector3D & center() const override final
Center in global coordinates.
ReadSiDetectorElements::m_idHelper
const AtlasDetectorID * m_idHelper
Definition: ReadSiDetectorElements.h:64
InDetDD::SolidStateDetectorElementBase::etaAxis
const Amg::Vector3D & etaAxis() const
Definition: SolidStateDetectorElementBase.cxx:88
ReadSiDetectorElements::m_useConditionsTools
bool m_useConditionsTools
Definition: ReadSiDetectorElements.h:56
ReadSiDetectorElements::m_printTransforms
bool m_printTransforms
Definition: ReadSiDetectorElements.h:70
ReadSiDetectorElements::printAllElements
void printAllElements(const bool accessDuringInitialization)
Definition: ReadSiDetectorElements.cxx:119
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
deg
#define deg
Definition: SbPolyhedron.cxx:17
mc.diff
diff
Definition: mc.SFGenPy8_MuMu_DD.py:14
ReadSiDetectorElements::m_siConditionsTool
ToolHandle< ISiliconConditionsTool > m_siConditionsTool
Definition: ReadSiDetectorElements.h:57
InDetDD::SiDetectorManager::getDetectorElementCollection
virtual const SiDetectorElementCollection * getDetectorElementCollection() const =0
access to whole collectiom
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ReadSiDetectorElements::m_siLorentzAngleTool
ToolHandle< ISiLorentzAngleTool > m_siLorentzAngleTool
Definition: ReadSiDetectorElements.h:58
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
ReadSiDetectorElements::printElementId
std::string printElementId(const InDetDD::SiDetectorElement *element) const
Definition: ReadSiDetectorElements.cxx:707
InDetDD::SolidStateDetectorElementBase::rMin
double rMin() const
InDetDD::SolidStateDetectorElementBase::etaPitch
double etaPitch() const
Pitch (inline methods)
InDetDD::SolidStateDetectorElementBase::identifyHash
virtual IdentifierHash identifyHash() const override final
identifier hash (inline)
PixelID::wafer_id
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
For a single crystal.
Definition: PixelID.h:364
InDetDD::SolidStateDetectorElementBase::getIdHelper
const AtlasDetectorID * getIdHelper() const
Returns the id helper (inline)
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::SiLocalPosition
Definition: SiLocalPosition.h:31
InDetDD::SiIntersect::in
bool in() const
Definition: SiIntersect.h:50
InDetDD::SiLocalPosition::xPhi
double xPhi() const
position along phi direction:
Definition: SiLocalPosition.h:123
InDetDD::SiDetectorElement::sinTilt
double sinTilt() const
Compute sin(tilt angle) at a given position: at center.
Definition: SiDetectorElement.cxx:223
ReadSiDetectorElements::m_manager
const InDetDD::SiDetectorManager * m_manager
Definition: ReadSiDetectorElements.h:63
InDetDD::SiDetectorElement::phiPitch
double phiPitch() const
Pitch (inline methods)
InDetDD::SiDetectorElement::cellIdFromIdentifier
virtual SiCellId cellIdFromIdentifier(const Identifier &identifier) const override final
SiCellId from Identifier.
Definition: SiDetectorElement.cxx:120
InDetDD::SiDetectorElement::prevInEta
const SiDetectorElement * prevInEta() const
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
InDetDD::SolidStateDetectorElementBase::numberOfConnectedCells
int numberOfConnectedCells(const SiCellId cellId) const
Test if readout cell has more than one diode associated with it.
Definition: SolidStateDetectorElementBase.cxx:243
PixelID::wafer_hash
IdentifierHash wafer_hash(Identifier wafer_id) const
wafer hash from id
Definition: PixelID.h:387
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
AthCommonDataStore< AthCommonMsg< Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
TrigConf::MSGTC::ALWAYS
@ ALWAYS
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:29
lumiFormat.i
int i
Definition: lumiFormat.py:85
InDetDD::SolidStateDetectorElementBase::thickness
double thickness() const
ReadSiDetectorElements::m_doLoop
bool m_doLoop
Definition: ReadSiDetectorElements.h:53
InDetDD::SiLocalPosition::xEta
double xEta() const
position along eta direction:
Definition: SiLocalPosition.h:118
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
InDetDD::SiDetectorElement::nextInPhi
const SiDetectorElement * nextInPhi() const
InDetDD::SiDetectorElement::identifierFromCellId
virtual Identifier identifierFromCellId(const SiCellId &cellId) const override final
Identifier <-> SiCellId (ie strip number or pixel eta_index,phi_index) Identifier from SiCellId (ie s...
Definition: SiDetectorElement.cxx:89
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
InDetDD::SolidStateDetectorElementBase::width
double width() const
Methods from design (inline)
ATH_MSG_ALWAYS
#define ATH_MSG_ALWAYS(x)
Definition: AthMsgStreamMacros.h:35
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
ReadSiDetectorElements::m_printDirections
bool m_printDirections
Definition: ReadSiDetectorElements.h:71
SCT_ID::wafer_hash
IdentifierHash wafer_hash(const Identifier &wafer_id) const
wafer hash from id - optimized
Definition: SCT_ID.h:492
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
python.SystemOfUnits.micrometer
int micrometer
Definition: SystemOfUnits.py:71
ReadSiDetectorElements::m_managerName
std::string m_managerName
Definition: ReadSiDetectorElements.h:52
ReadSiDetectorElements::m_detEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_detEleCollKey
Definition: ReadSiDetectorElements.h:60
InDetDD::SolidStateDetectorElementBase::normal
virtual const Amg::Vector3D & normal() const override final
Get reconstruction local normal axes in global frame.
InDetDD::SiIntersect::nearBoundary
bool nearBoundary() const
Definition: SiIntersect.h:60
InDetDD::SiDetectorElement::prevInPhi
const SiDetectorElement * prevInPhi() const
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
InDetDD::SolidStateDetectorElementBase::zMin
double zMin() const
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
tolerance
Definition: suep_shower.h:17
InDetDD::SiDetectorElement::sinStereo
double sinStereo() const
Compute sin(stereo angle) at a given position: at center.
Definition: SiDetectorElement.cxx:269
InDetDD::SolidStateDetectorElementBase::rMax
double rMax() const
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
InDetDD::SiDetectorElement::otherSide
const SiDetectorElement * otherSide() const
Useful for SCT only.
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:220
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
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
InDetDD::SiDetectorElement
Definition: SiDetectorElement.h:109
InDetDD::SolidStateDetectorElementBase::zMax
double zMax() const
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
InDetDD::SiNumerology
Definition: SiNumerology.h:27
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
Trk::iPhi
@ iPhi
Definition: ParamDefs.h:47
InDetDD::SiIntersect
Definition: SiIntersect.h:23
InDetDD::SiCellId
Definition: SiCellId.h:29
ReadSiDetectorElements::m_doExec
bool m_doExec
Definition: ReadSiDetectorElements.h:55
python.SystemOfUnits.mm
int mm
Definition: SystemOfUnits.py:83
AthAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Definition: AthAlgorithm.h:79
ReadSiDetectorElements::m_first
bool m_first
Definition: ReadSiDetectorElements.h:68
InDetDD::SiDetectorElement::nextInEta
const SiDetectorElement * nextInEta() const
InDetDD::SolidStateDetectorElementBase::rawLocalPositionOfCell
Amg::Vector2D rawLocalPositionOfCell(const SiCellId &cellId) const
Returns position (center) of cell.
Definition: SolidStateDetectorElementBase.cxx:230
InDetDD::SolidStateDetectorElementBase::minWidth
double minWidth() const
Min width.
a
TList * a
Definition: liststreamerinfos.cxx:10
InDetDD::SolidStateDetectorElementBase::phiMin
double phiMin() const
ReadSiDetectorElements::testElement
void testElement(const Identifier &id, const std::vector< InDetDD::SiCellId > &cellIdVec, const std::vector< Amg::Vector2D > &positionsVec, const InDetDD::SiDetectorElementCollection *elements=nullptr) const
Definition: ReadSiDetectorElements.cxx:574
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
SCT_ID
Definition: SCT_ID.h:68
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
ReadSiDetectorElements::m_sctIdHelper
const SCT_ID * m_sctIdHelper
Definition: ReadSiDetectorElements.h:66
InDetDD::SolidStateDetectorElementBase::globalPosition
HepGeom::Point3D< double > globalPosition(const HepGeom::Point3D< double > &localPos) const
transform a reconstruction local position into a global position (inline):
InDetDD::SolidStateDetectorElementBase::phiAxis
const Amg::Vector3D & phiAxis() const
Definition: SolidStateDetectorElementBase.cxx:74
ReadSiDetectorElements::m_doInit
bool m_doInit
Definition: ReadSiDetectorElements.h:54
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
AthAlgorithm::AthAlgorithm
AthAlgorithm()
Default constructor:
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
InDetDD::DetectorDesign::cellIdInRange
virtual SiCellId cellIdInRange(const SiCellId &cellId) const =0
Check if cell is in range.
InDetDD::SiDetectorElement::nearBondGap
bool nearBondGap(const Amg::Vector2D &localPosition, double etaTol) const
Test if near bond gap within tolerances.
Definition: SiDetectorElement.cxx:323
InDetDD::SolidStateDetectorElementBase::localPosition
Amg::Vector2D localPosition(const HepGeom::Point3D< double > &globalPosition) const
transform a global position into a 2D local position (reconstruction frame) (inline)
InDetDD::SolidStateDetectorElementBase::length
double length() const
Length in eta direction (z - barrel, r - endcap)
SCT_ID::wafer_id
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int side) const
For a single side of module.
Definition: SCT_ID.h:464
InDetDD::SiDetectorElement::design
virtual const SiDetectorDesign & design() const override final
access to the local description (inline):
PixelID
Definition: PixelID.h:67
xAOD::iEta
setScale setgFexType iEta
Definition: gFexJetRoI_v1.cxx:74
ReadSiDetectorElements::printRandomAccess
void printRandomAccess(const bool accessDuringInitialization)
Definition: ReadSiDetectorElements.cxx:361
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
InDetDD::SiDetectorElementCollection::getDetectorElement
const SiDetectorElement * getDetectorElement(const IdentifierHash &hash) const
Definition: SiDetectorElementCollection.cxx:15
InDetDD::SolidStateDetectorElementBase::identify
virtual Identifier identify() const override final
identifier of this detector element (inline)
python.SystemOfUnits.degree
tuple degree
Definition: SystemOfUnits.py:106
ReadSiDetectorElements::m_pixelIdHelper
const PixelID * m_pixelIdHelper
Definition: ReadSiDetectorElements.h:65
InDetDD::SiIntersect::mayIntersect
bool mayIntersect() const
Definition: SiIntersect.h:66
fitman.k
k
Definition: fitman.py:528
ServiceHandle< ICondSvc >
InDetDD::SolidStateDetectorElementBase::maxWidth
double maxWidth() const
Max width.
Identifier
Definition: IdentifierFieldParser.cxx:14