ATLAS Offline Software
Loading...
Searching...
No Matches
GeoSiHit.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef GEOADAPTORS_GEOSIHIT_h
6#define GEOADAPTORS_GEOSIHIT_h
7//----------------------------------------------------------//
8// //
9// An adaptor for SiHits. //
10// //
11// Joe Boudreau Feb 04. //
12// //
13// This adaptor class allows SiHits to behave //
14// as if they knew which detector they were in. //
15// //
16// //
17//----------------------------------------------------------//
18#include "CLHEP/Geometry/Point3D.h"
19class SiHit;
20class PixelID;
21class SCT_ID;
22class HGTD_ID;
23class PLR_ID;
24namespace InDetDD {
27}
29
30class GeoSiHit {
31
32 public:
33
34 // Constructor:
35 GeoSiHit(const SiHit & h);
36
37 // Get the absolute global position:
38 HepGeom::Point3D<double> getGlobalPosition() const;
39
40 // Underlying hit.
41 const SiHit &data() const { return *m_hit;}
42
43 // Is this hit ok?
44
45 operator bool () const { return true; }
46
47 private:
51 static const HGTD_DetectorManager* initHgtdMgr();
52 static const PixelID* initPixID();
53 static const SCT_ID* initSctID();
54 static const HGTD_ID* initHgtdID();
55 static const PLR_ID* initPlrID();
56
60 const HGTD_DetectorManager* hgtdMgr() const;
61 const PixelID* pixID() const;
62 const SCT_ID* sctID() const;
63 const HGTD_ID* hgtdID() const;
64 const PLR_ID* plrID() const;
65
66 const SiHit *m_hit;
67};
68
70
71#endif
Header file for AthHistogramAlgorithm.
static const PixelID * initPixID()
Definition GeoSiHit.cxx:58
static const InDetDD::SCT_DetectorManager * initSctMgr()
Definition GeoSiHit.cxx:27
const InDetDD::PixelDetectorManager * pixMgr() const
Definition GeoSiHit.cxx:98
static const SCT_ID * initSctID()
Definition GeoSiHit.cxx:68
const HGTD_DetectorManager * hgtdMgr() const
Definition GeoSiHit.cxx:112
const SiHit * m_hit
Definition GeoSiHit.h:66
const HGTD_ID * hgtdID() const
Definition GeoSiHit.cxx:140
const PixelID * pixID() const
Definition GeoSiHit.cxx:126
const InDetDD::SCT_DetectorManager * sctMgr() const
Definition GeoSiHit.cxx:105
static const InDetDD::PixelDetectorManager * initPlrMgr()
Definition GeoSiHit.cxx:50
GeoSiHit(const SiHit &h)
HepGeom::Point3D< double > getGlobalPosition() const
const PLR_ID * plrID() const
Definition GeoSiHit.cxx:147
static const PLR_ID * initPlrID()
Definition GeoSiHit.cxx:88
static const InDetDD::PixelDetectorManager * initPixMgr()
Definition GeoSiHit.cxx:11
const InDetDD::PixelDetectorManager * plrMgr() const
Definition GeoSiHit.cxx:119
const SCT_ID * sctID() const
Definition GeoSiHit.cxx:133
static const HGTD_ID * initHgtdID()
Definition GeoSiHit.cxx:78
static const HGTD_DetectorManager * initHgtdMgr()
Definition GeoSiHit.cxx:42
const SiHit & data() const
Definition GeoSiHit.h:41
The Detector manager has methods to retrieve the Identifier helper and methods to retrieve the detect...
This is an Identifier helper class for the HGTD subdetector.
Definition HGTD_ID.h:47
Dedicated detector manager extending the functionality of the SiDetectorManager with dedicated pixel ...
Dedicated detector manager extending the functionality of the SiDetectorManager with dedicated SCT in...
This is a Identifier helper class for the PLR subdetector.
Definition PLR_ID.h:22
This is an Identifier helper class for the Pixel subdetector.
Definition PixelID.h:67
This is an Identifier helper class for the SCT subdetector.
Definition SCT_ID.h:68
Definition SiHit.h:19
Message Stream Member.