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

#include <GeoSiHit.h>

Collaboration diagram for GeoSiHit:

Public Member Functions

 GeoSiHit (const SiHit &h)
 
HepGeom::Point3D< double > getGlobalPosition () const
 
const SiHitdata () const
 
 operator bool () const
 

Private Member Functions

const InDetDD::PixelDetectorManagerpixMgr () const
 
const InDetDD::PixelDetectorManagerplrMgr () const
 
const InDetDD::SCT_DetectorManagersctMgr () const
 
const HGTD_DetectorManagerhgtdMgr () const
 
const PixelIDpixID () const
 
const SCT_IDsctID () const
 
const HGTD_IDhgtdID () const
 
const PLR_IDplrID () const
 

Static Private Member Functions

static const InDetDD::PixelDetectorManagerinitPixMgr ()
 
static const InDetDD::PixelDetectorManagerinitPlrMgr ()
 
static const InDetDD::SCT_DetectorManagerinitSctMgr ()
 
static const HGTD_DetectorManagerinitHgtdMgr ()
 
static const PixelIDinitPixID ()
 
static const SCT_IDinitSctID ()
 
static const HGTD_IDinitHgtdID ()
 
static const PLR_IDinitPlrID ()
 

Private Attributes

const SiHitm_hit
 

Detailed Description

Definition at line 30 of file GeoSiHit.h.

Constructor & Destructor Documentation

◆ GeoSiHit()

GeoSiHit::GeoSiHit ( const SiHit h)

Member Function Documentation

◆ data()

const SiHit& GeoSiHit::data ( ) const
inline

Definition at line 41 of file GeoSiHit.h.

41 { return *m_hit;}

◆ getGlobalPosition()

HepGeom::Point3D<double> GeoSiHit::getGlobalPosition ( ) const

◆ hgtdID()

const HGTD_ID * GeoSiHit::hgtdID ( ) const
private

Definition at line 140 of file GeoSiHit.cxx.

141 {
142  const HGTD_ID* const id = initHgtdID();
143  return id;
144 }

◆ hgtdMgr()

const HGTD_DetectorManager * GeoSiHit::hgtdMgr ( ) const
private

Definition at line 112 of file GeoSiHit.cxx.

113 {
114  const HGTD_DetectorManager* const mgr = initHgtdMgr();
115  return mgr;
116 }

◆ initHgtdID()

const HGTD_ID * GeoSiHit::initHgtdID ( )
staticprivate

Definition at line 78 of file GeoSiHit.cxx.

79 {
80  ServiceHandle<StoreGateSvc> detStore ("DetectorStore", "GeoSiHit");
81  const HGTD_ID* hgtd = nullptr;
82  if(detStore->retrieve(hgtd,"HGTD_ID").isFailure()) {
83  std::abort();
84  }
85  return hgtd;
86 }

◆ initHgtdMgr()

const HGTD_DetectorManager * GeoSiHit::initHgtdMgr ( )
staticprivate

Definition at line 42 of file GeoSiHit.cxx.

43 {
44  ServiceHandle<StoreGateSvc> detStore ("DetectorStore", "GeoSiHit");
45  const HGTD_DetectorManager* hgtd = nullptr;
46  detStore->retrieve(hgtd,"HGTD").isFailure();
47  return hgtd;
48 }

◆ initPixID()

const PixelID * GeoSiHit::initPixID ( )
staticprivate

Definition at line 58 of file GeoSiHit.cxx.

59 {
60  ServiceHandle<StoreGateSvc> detStore ("DetectorStore", "GeoSiHit");
61  const PixelID* pix = nullptr;
62  if(detStore->retrieve(pix,"PixelID").isFailure()) {
63  std::abort();
64  }
65  return pix;
66 }

◆ initPixMgr()

const InDetDD::PixelDetectorManager * GeoSiHit::initPixMgr ( )
staticprivate

Definition at line 11 of file GeoSiHit.cxx.

12 {
13  ServiceHandle<StoreGateSvc> detStore ("DetectorStore", "GeoSiHit");
14  const InDetDD::PixelDetectorManager* pix = nullptr;
15  if (!detStore->contains<InDetDD::PixelDetectorManager>("Pixel") || detStore->retrieve(pix,"Pixel").isFailure())
16  {
17  // if Pixel retrieval fails, try ITkPixel
18  if (!detStore->contains<InDetDD::PixelDetectorManager>("ITkPixel") || detStore->retrieve(pix,"ITkPixel").isFailure())
19  {
20  std::abort();
21  }
22  }
23  return pix;
24 }

◆ initPlrID()

const PLR_ID * GeoSiHit::initPlrID ( )
staticprivate

Definition at line 88 of file GeoSiHit.cxx.

89 {
90  ServiceHandle<StoreGateSvc> detStore ("DetectorStore", "GeoSiHit");
91  const PLR_ID* plr = nullptr;
92  if(detStore->retrieve(plr,"PLR_ID").isFailure()) {
93  std::abort();
94  }
95  return plr;
96 }

◆ initPlrMgr()

const InDetDD::PixelDetectorManager * GeoSiHit::initPlrMgr ( )
staticprivate

Definition at line 50 of file GeoSiHit.cxx.

51 {
52  ServiceHandle<StoreGateSvc> detStore ("DetectorStore", "GeoSiHit");
53  const InDetDD::PixelDetectorManager* plr = nullptr;
54  detStore->retrieve(plr,"PLR").isFailure();
55  return plr;
56 }

◆ initSctID()

const SCT_ID * GeoSiHit::initSctID ( )
staticprivate

Definition at line 68 of file GeoSiHit.cxx.

69 {
70  ServiceHandle<StoreGateSvc> detStore ("DetectorStore", "GeoSiHit");
71  const SCT_ID* sct = nullptr;
72  if(detStore->retrieve(sct,"SCT_ID").isFailure()) {
73  std::abort();
74  }
75  return sct;
76 }

◆ initSctMgr()

const InDetDD::SCT_DetectorManager * GeoSiHit::initSctMgr ( )
staticprivate

Definition at line 27 of file GeoSiHit.cxx.

28 {
29  ServiceHandle<StoreGateSvc> detStore ("DetectorStore", "GeoSiHit");
30  const InDetDD::SCT_DetectorManager* sct = nullptr;
31  if (!detStore->contains<InDetDD::SCT_DetectorManager>("SCT") || detStore->retrieve(sct,"SCT").isFailure())
32  {
33  // if SCT retrieval fails, try ITkStrip
34  if (!detStore->contains<InDetDD::SCT_DetectorManager>("ITkStrip") || detStore->retrieve(sct,"ITkStrip").isFailure())
35  {
36  std::abort();
37  }
38  }
39  return sct;
40 }

◆ operator bool()

GeoSiHit::operator bool ( ) const
inline

Definition at line 45 of file GeoSiHit.h.

45 { return true; }

◆ pixID()

const PixelID * GeoSiHit::pixID ( ) const
private

Definition at line 126 of file GeoSiHit.cxx.

127 {
128  const PixelID* const id = initPixID();
129  return id;
130 }

◆ pixMgr()

const InDetDD::PixelDetectorManager * GeoSiHit::pixMgr ( ) const
private

Definition at line 98 of file GeoSiHit.cxx.

99 {
101  return mgr;
102 }

◆ plrID()

const PLR_ID * GeoSiHit::plrID ( ) const
private

Definition at line 147 of file GeoSiHit.cxx.

148 {
149  const PLR_ID* const id = initPlrID();
150  return id;
151 }

◆ plrMgr()

const InDetDD::PixelDetectorManager * GeoSiHit::plrMgr ( ) const
private

Definition at line 119 of file GeoSiHit.cxx.

120 {
122  return mgr;
123 }

◆ sctID()

const SCT_ID * GeoSiHit::sctID ( ) const
private

Definition at line 133 of file GeoSiHit.cxx.

134 {
135  const SCT_ID* const id = initSctID();
136  return id;
137 }

◆ sctMgr()

const InDetDD::SCT_DetectorManager * GeoSiHit::sctMgr ( ) const
private

Definition at line 105 of file GeoSiHit.cxx.

106 {
108  return mgr;
109 }

Member Data Documentation

◆ m_hit

const SiHit* GeoSiHit::m_hit
private

Definition at line 66 of file GeoSiHit.h.


The documentation for this class was generated from the following files:
InDetDD::SCT_DetectorManager
Definition: SCT_DetectorManager.h:49
GeoSiHit::initPlrID
static const PLR_ID * initPlrID()
Definition: GeoSiHit.cxx:88
GeoSiHit::initPixID
static const PixelID * initPixID()
Definition: GeoSiHit.cxx:58
GeoSiHit::initPlrMgr
static const InDetDD::PixelDetectorManager * initPlrMgr()
Definition: GeoSiHit.cxx:50
PLR_ID
This is an Identifier helper class for the PLR subdetector. This class inherits from PixelID.
Definition: PLR_ID.h:24
GeoSiHit::initPixMgr
static const InDetDD::PixelDetectorManager * initPixMgr()
Definition: GeoSiHit.cxx:11
BchCleanup.mgr
mgr
Definition: BchCleanup.py:294
HGTD_ID
Definition: HGTD_ID.h:47
GeoSiHit::initHgtdID
static const HGTD_ID * initHgtdID()
Definition: GeoSiHit.cxx:78
python.PyKernel.detStore
detStore
Definition: PyKernel.py:41
InDetDD::PixelDetectorManager
Definition: PixelDetectorManager.h:47
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:220
GeoSiHit::m_hit
const SiHit * m_hit
Definition: GeoSiHit.h:66
GeoSiHit::initSctMgr
static const InDetDD::SCT_DetectorManager * initSctMgr()
Definition: GeoSiHit.cxx:27
SCT_ID
Definition: SCT_ID.h:68
HGTD_DetectorManager
Definition: HGTD_DetectorManager.h:33
GeoSiHit::initHgtdMgr
static const HGTD_DetectorManager * initHgtdMgr()
Definition: GeoSiHit.cxx:42
GeoSiHit::initSctID
static const SCT_ID * initSctID()
Definition: GeoSiHit.cxx:68
pix
Definition: PixelMapping.cxx:16
PixelID
Definition: PixelID.h:67
ServiceHandle< StoreGateSvc >