ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
TrigSiSpacePointBase Class Reference

#include <TrigSiSpacePointBase.h>

Inheritance diagram for TrigSiSpacePointBase:
Collaboration diagram for TrigSiSpacePointBase:

Public Member Functions

 TrigSiSpacePointBase (long layer, double r, double phi, double z, double dr=0.0, double dz=0.0, const Trk::SpacePoint *offlineSpacePoint=nullptr)
 
virtual ~TrigSiSpacePointBase ()=default
 
void r (const double r)
 
void phi (const double phi)
 
void z (const double z)
 
void x (const double x)
 
void y (const double y)
 
void dr (const double dr)
 
void dz (const double dz)
 
void barCode (int code)
 
double r () const
 
double phi () const
 
double z () const
 
double dr () const
 
double dz () const
 
double x () const
 
double y () const
 
long layer () const
 
bool isPixel () const
 
bool isSCT () const
 
double eta (double z0) const
 
int barCode () const
 
const Trk::SpacePointofflineSpacePoint () const
 

Protected Attributes

long m_layer
 
double m_r
 
double m_x
 
double m_y
 
double m_phi
 
double m_z
 
double m_dr
 
double m_dz
 
int m_barCode
 
bool m_isPixel
 
const Trk::SpacePointm_offlineSpacePoint
 

Detailed Description

Definition at line 23 of file TrigSiSpacePointBase.h.

Constructor & Destructor Documentation

◆ TrigSiSpacePointBase()

TrigSiSpacePointBase::TrigSiSpacePointBase ( long  layer,
double  r,
double  phi,
double  z,
double  dr = 0.0,
double  dz = 0.0,
const Trk::SpacePoint offlineSpacePoint = nullptr 
)
inline

Definition at line 28 of file TrigSiSpacePointBase.h.

30  :
31  m_layer(layer),
32  m_r(r), m_phi(phi), m_z(z),
33  m_dr(dr), m_dz(dz),
35  {
36  m_x = r * std::cos(phi);
37  m_y = r * std::sin(phi);
38  m_barCode=-1;
39  if (m_offlineSpacePoint) {
40  m_isPixel = (m_offlineSpacePoint->clusterList().second==nullptr);
41  }
42  else {
43  m_isPixel = false;//Arbitrarily choose value when no offline spacepoint
44  }
45  }

◆ ~TrigSiSpacePointBase()

virtual TrigSiSpacePointBase::~TrigSiSpacePointBase ( )
virtualdefault

Member Function Documentation

◆ barCode() [1/2]

int TrigSiSpacePointBase::barCode ( ) const
inline

Definition at line 80 of file TrigSiSpacePointBase.h.

80 {return m_barCode;}

◆ barCode() [2/2]

void TrigSiSpacePointBase::barCode ( int  code)
inline

Definition at line 59 of file TrigSiSpacePointBase.h.

59 {m_barCode = code;}

◆ dr() [1/2]

double TrigSiSpacePointBase::dr ( ) const
inline

Definition at line 64 of file TrigSiSpacePointBase.h.

64 {return m_dr;}

◆ dr() [2/2]

void TrigSiSpacePointBase::dr ( const double  dr)
inline

Definition at line 56 of file TrigSiSpacePointBase.h.

56 {m_dr = dr; }

◆ dz() [1/2]

double TrigSiSpacePointBase::dz ( ) const
inline

Definition at line 65 of file TrigSiSpacePointBase.h.

65 {return m_dz;}

◆ dz() [2/2]

void TrigSiSpacePointBase::dz ( const double  dz)
inline

Definition at line 57 of file TrigSiSpacePointBase.h.

57 {m_dz = dz; }

◆ eta()

double TrigSiSpacePointBase::eta ( double  z0) const
inline

Definition at line 75 of file TrigSiSpacePointBase.h.

75  {
76  double zr = (m_z-z0)/m_r;
77  return log(zr+std::sqrt(1.+zr*zr));
78  }

◆ isPixel()

bool TrigSiSpacePointBase::isPixel ( ) const
inline

Definition at line 70 of file TrigSiSpacePointBase.h.

70 {return m_isPixel;}

◆ isSCT()

bool TrigSiSpacePointBase::isSCT ( ) const
inline

Definition at line 71 of file TrigSiSpacePointBase.h.

71 {return !m_isPixel;}

◆ layer()

long TrigSiSpacePointBase::layer ( ) const
inline

Definition at line 68 of file TrigSiSpacePointBase.h.

68 {return m_layer;}

◆ offlineSpacePoint()

const Trk::SpacePoint* TrigSiSpacePointBase::offlineSpacePoint ( ) const
inline

Definition at line 81 of file TrigSiSpacePointBase.h.

81 {return m_offlineSpacePoint;}

◆ phi() [1/2]

double TrigSiSpacePointBase::phi ( ) const
inline

Definition at line 62 of file TrigSiSpacePointBase.h.

62 {return m_phi;}

◆ phi() [2/2]

void TrigSiSpacePointBase::phi ( const double  phi)
inline

Definition at line 52 of file TrigSiSpacePointBase.h.

52 {m_phi = phi;}

◆ r() [1/2]

double TrigSiSpacePointBase::r ( ) const
inline

Definition at line 61 of file TrigSiSpacePointBase.h.

61 {return m_r;}

◆ r() [2/2]

void TrigSiSpacePointBase::r ( const double  r)
inline

Definition at line 51 of file TrigSiSpacePointBase.h.

51 {m_r = r; }

◆ x() [1/2]

double TrigSiSpacePointBase::x ( ) const
inline

Definition at line 66 of file TrigSiSpacePointBase.h.

66 {return m_x;}

◆ x() [2/2]

void TrigSiSpacePointBase::x ( const double  x)
inline

Definition at line 54 of file TrigSiSpacePointBase.h.

54 {m_x = x; }

◆ y() [1/2]

double TrigSiSpacePointBase::y ( ) const
inline

Definition at line 67 of file TrigSiSpacePointBase.h.

67 {return m_y;}

◆ y() [2/2]

void TrigSiSpacePointBase::y ( const double  y)
inline

Definition at line 55 of file TrigSiSpacePointBase.h.

55 {m_y = y; }

◆ z() [1/2]

double TrigSiSpacePointBase::z ( ) const
inline

Definition at line 63 of file TrigSiSpacePointBase.h.

63 {return m_z;}

◆ z() [2/2]

void TrigSiSpacePointBase::z ( const double  z)
inline

Definition at line 53 of file TrigSiSpacePointBase.h.

53 {m_z = z; }

Member Data Documentation

◆ m_barCode

int TrigSiSpacePointBase::m_barCode
protected

Definition at line 96 of file TrigSiSpacePointBase.h.

◆ m_dr

double TrigSiSpacePointBase::m_dr
protected

Definition at line 93 of file TrigSiSpacePointBase.h.

◆ m_dz

double TrigSiSpacePointBase::m_dz
protected

Definition at line 94 of file TrigSiSpacePointBase.h.

◆ m_isPixel

bool TrigSiSpacePointBase::m_isPixel
protected

Definition at line 97 of file TrigSiSpacePointBase.h.

◆ m_layer

long TrigSiSpacePointBase::m_layer
protected

Definition at line 85 of file TrigSiSpacePointBase.h.

◆ m_offlineSpacePoint

const Trk::SpacePoint* TrigSiSpacePointBase::m_offlineSpacePoint
protected

Definition at line 99 of file TrigSiSpacePointBase.h.

◆ m_phi

double TrigSiSpacePointBase::m_phi
protected

Definition at line 91 of file TrigSiSpacePointBase.h.

◆ m_r

double TrigSiSpacePointBase::m_r
protected

Definition at line 87 of file TrigSiSpacePointBase.h.

◆ m_x

double TrigSiSpacePointBase::m_x
protected

Definition at line 88 of file TrigSiSpacePointBase.h.

◆ m_y

double TrigSiSpacePointBase::m_y
protected

Definition at line 89 of file TrigSiSpacePointBase.h.

◆ m_z

double TrigSiSpacePointBase::m_z
protected

Definition at line 92 of file TrigSiSpacePointBase.h.


The documentation for this class was generated from the following file:
Trk::SpacePoint::clusterList
const std::pair< const PrepRawData *, const PrepRawData * > & clusterList() const
return the pair of cluster pointers by reference
Definition: Tracking/TrkEvent/TrkSpacePoint/TrkSpacePoint/SpacePoint.h:127
TrigSiSpacePointBase::m_barCode
int m_barCode
Definition: TrigSiSpacePointBase.h:96
TrigSiSpacePointBase::m_offlineSpacePoint
const Trk::SpacePoint * m_offlineSpacePoint
Definition: TrigSiSpacePointBase.h:99
TrigSiSpacePointBase::m_isPixel
bool m_isPixel
Definition: TrigSiSpacePointBase.h:97
TrigSiSpacePointBase::y
double y() const
Definition: TrigSiSpacePointBase.h:67
TrigSiSpacePointBase::phi
double phi() const
Definition: TrigSiSpacePointBase.h:62
TrigSiSpacePointBase::m_dz
double m_dz
Definition: TrigSiSpacePointBase.h:94
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
TrigSiSpacePointBase::z
double z() const
Definition: TrigSiSpacePointBase.h:63
TrigSiSpacePointBase::offlineSpacePoint
const Trk::SpacePoint * offlineSpacePoint() const
Definition: TrigSiSpacePointBase.h:81
TrigSiSpacePointBase::r
double r() const
Definition: TrigSiSpacePointBase.h:61
TrigSiSpacePointBase::m_z
double m_z
Definition: TrigSiSpacePointBase.h:92
TrigSiSpacePointBase::layer
long layer() const
Definition: TrigSiSpacePointBase.h:68
histSizes.code
code
Definition: histSizes.py:129
TrigSiSpacePointBase::dz
double dz() const
Definition: TrigSiSpacePointBase.h:65
TrigSiSpacePointBase::m_x
double m_x
Definition: TrigSiSpacePointBase.h:88
TrigSiSpacePointBase::x
double x() const
Definition: TrigSiSpacePointBase.h:66
TrigSiSpacePointBase::dr
double dr() const
Definition: TrigSiSpacePointBase.h:64
TrigSiSpacePointBase::m_layer
long m_layer
Definition: TrigSiSpacePointBase.h:85
TRT::Track::z0
@ z0
Definition: InnerDetector/InDetCalibEvent/TRT_CalibData/TRT_CalibData/TrackInfo.h:63
TrigSiSpacePointBase::m_dr
double m_dr
Definition: TrigSiSpacePointBase.h:93
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigSiSpacePointBase::m_y
double m_y
Definition: TrigSiSpacePointBase.h:89
TrigSiSpacePointBase::m_phi
double m_phi
Definition: TrigSiSpacePointBase.h:91
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
TrigSiSpacePointBase::m_r
double m_r
Definition: TrigSiSpacePointBase.h:87