PandaRoot
PndCAGBHit Class Reference

#include <PndCAGBHit.h>

Public Member Functions

 PndCAGBHit ()
 
float GlobalX () const
 
float GlobalY () const
 
float Z () const
 
float Err2X () const
 
float Err2Y () const
 
float Err2Z () const
 
void GetLocalX0X1X2 (float &x0, float &x1, float &x2) const
 
float Err2X0 () const
 
float Err2X1 () const
 
float ErrX12 () const
 
float Err2X2 () const
 
int IRow () const
 
int ID () const
 
float R () const
 
float Err2R () const
 
float Err2A () const
 
bool IsLeft () const
 
float XW () const
 
float YW () const
 
float ZW () const
 
float C (int i1, int i2) const
 
int PndDetID () const
 
int PndHitID () const
 
void SetGlobalX (float v)
 
void SetGlobalY (float v)
 
void SetZ (float v)
 
void SetErr2X (float v)
 
void SetErr2Y (float v)
 
void SetErr2Z (float v)
 
void SetIRow (int v)
 
void SetID (int v)
 
void SetErr2X0 (float v)
 
void SetErr2X1 (float v)
 
void SetErrX12 (float v)
 
void SetErr2X2 (float v)
 
void SetAngle (float v)
 
float Angle () const
 
void SetR (float v)
 
void SetErr2R (float v)
 
void SetIsLeft (bool v)
 
void SetXW (float v)
 
void SetYW (float v)
 
void SetZW (float v)
 
void SetTubeR (float v)
 
void SetTubeHalfLength (float v)
 
void SetC (float v, int i1, int i2)
 
void SetC (const TMatrixT< Double_t > c)
 
void SetPndDetID (int v)
 
void SetPndHitID (int v)
 
bool IsUsed () const
 
void SetAsUsed ()
 

Static Public Member Functions

static bool Compare (const PndCAGBHit &a, const PndCAGBHit &b)
 Hits reordering in accordance with the geometry and the track-finder needs: Hits are sorted by sector number at first, than by row number and at last by z-coordinate. More...
 
static bool CompareRowDown (const PndCAGBHit &a, const PndCAGBHit &b)
 Hits reordering in accordance with the geometry and the track-finder needs: Hits are sorted by sector number at first, than by row number and at last by z-coordinate. More...
 
static bool ComparePRowDown (const PndCAGBHit *a, const PndCAGBHit *b)
 

Protected Attributes

double fX
 
double fY
 
double fZ
 
float fErr2X0
 
float fErr2X1
 
float fErrX12
 
float fErr2X2
 
double fC [3][3]
 
int fIRow
 
int fID
 
double fPhi
 
double fR
 
double fErr2R
 
bool fIsLeft
 
double fXW
 
double fYW
 
double fZW
 
double fTubeR
 
double fHalfLength
 
int fPndDetID
 
int fPndHitID
 
bool fIsUsed
 

Friends

std::ostream & operator<< (std::ostream &out, const PndCAGBHit &a)
 
std::istream & operator>> (std::istream &in, PndCAGBHit &a)
 

Detailed Description

The PndCAGBHit class is the internal representation of the TPC clusters for the PndCAGBTracker algorithm.

Definition at line 27 of file PndCAGBHit.h.

Constructor & Destructor Documentation

◆ PndCAGBHit()

PndCAGBHit::PndCAGBHit ( )
inline

Definition at line 29 of file PndCAGBHit.h.

30  : fX(0), fY(0), fZ(0), fErr2X0(0), fErr2X1(0), fErrX12(0), fErr2X2(0), fIRow(0), fID(0), fPhi(0), fR(0), fErr2R(0), fIsLeft(false), fXW(0), fYW(0), fZW(0), fTubeR(0),
31  fHalfLength(0),
32  // fEX( 0 ), fEY( 0 ), fEZ( 0 ),
33  fPndDetID(0), fPndHitID(0), fIsUsed(0)
34  {
35  }
bool fIsUsed
Definition: PndCAGBHit.h:162
int fPndDetID
Definition: PndCAGBHit.h:160
double fX
Definition: PndCAGBHit.h:136
float fErrX12
Definition: PndCAGBHit.h:142
double fY
Definition: PndCAGBHit.h:137
double fTubeR
Definition: PndCAGBHit.h:158
double fZW
Definition: PndCAGBHit.h:156
double fXW
Definition: PndCAGBHit.h:154
double fPhi
Definition: PndCAGBHit.h:150
double fErr2R
Definition: PndCAGBHit.h:152
bool fIsLeft
Definition: PndCAGBHit.h:153
float fErr2X0
Definition: PndCAGBHit.h:140
double fZ
Definition: PndCAGBHit.h:138
double fYW
Definition: PndCAGBHit.h:155
double fHalfLength
Definition: PndCAGBHit.h:158
double fR
Definition: PndCAGBHit.h:152
float fErr2X1
Definition: PndCAGBHit.h:141
int fPndHitID
Definition: PndCAGBHit.h:161
float fErr2X2
Definition: PndCAGBHit.h:143

Member Function Documentation

◆ Angle()

float PndCAGBHit::Angle ( ) const
inline

Definition at line 88 of file PndCAGBHit.h.

References fPhi.

88 { return fPhi; }
double fPhi
Definition: PndCAGBHit.h:150

◆ C()

float PndCAGBHit::C ( int  i1,
int  i2 
) const
inline

Definition at line 68 of file PndCAGBHit.h.

References fC.

68 { return fC[i1][i2]; }
double fC[3][3]
Definition: PndCAGBHit.h:145

◆ Compare()

bool PndCAGBHit::Compare ( const PndCAGBHit a,
const PndCAGBHit b 
)
inlinestatic

Hits reordering in accordance with the geometry and the track-finder needs: Hits are sorted by sector number at first, than by row number and at last by z-coordinate.

Definition at line 165 of file PndCAGBHit.h.

References fIRow, and fZ.

Referenced by SetPndHitID().

170 {
171  //* Comparison function for sorting hits
172  if (a.fIRow < b.fIRow)
173  return 1;
174  if (a.fIRow > b.fIRow)
175  return 0;
176  return (a.fZ < b.fZ);
177 }
double fZ
Definition: PndCAGBHit.h:138

◆ ComparePRowDown()

static bool PndCAGBHit::ComparePRowDown ( const PndCAGBHit a,
const PndCAGBHit b 
)
inlinestatic

Hits are sorted by row number

Definition at line 123 of file PndCAGBHit.h.

References fIRow.

124  {
125  return (a->fIRow > b->fIRow);
127  }

◆ CompareRowDown()

static bool PndCAGBHit::CompareRowDown ( const PndCAGBHit a,
const PndCAGBHit b 
)
inlinestatic

Hits reordering in accordance with the geometry and the track-finder needs: Hits are sorted by sector number at first, than by row number and at last by z-coordinate.

Hits are sorted by row number

Definition at line 117 of file PndCAGBHit.h.

References fIRow.

118  {
119  return (a.fIRow > b.fIRow);
120 
122  }

◆ Err2A()

float PndCAGBHit::Err2A ( ) const
inline

Definition at line 59 of file PndCAGBHit.h.

References fHalfLength.

59 { return (fHalfLength / 1.5) * (fHalfLength / 1.5); }
double fHalfLength
Definition: PndCAGBHit.h:158

◆ Err2R()

float PndCAGBHit::Err2R ( ) const
inline

Definition at line 58 of file PndCAGBHit.h.

References fErr2R.

58 { return fErr2R; }
double fErr2R
Definition: PndCAGBHit.h:152

◆ Err2X()

float PndCAGBHit::Err2X ( ) const
inline

Definition at line 43 of file PndCAGBHit.h.

References fErr2X0.

43 { return fErr2X0; }
float fErr2X0
Definition: PndCAGBHit.h:140

◆ Err2X0()

float PndCAGBHit::Err2X0 ( ) const
inline

Definition at line 49 of file PndCAGBHit.h.

References fErr2X0.

49 { return fErr2X0; }
float fErr2X0
Definition: PndCAGBHit.h:140

◆ Err2X1()

float PndCAGBHit::Err2X1 ( ) const
inline

Definition at line 50 of file PndCAGBHit.h.

References fErr2X1.

50 { return fErr2X1; }
float fErr2X1
Definition: PndCAGBHit.h:141

◆ Err2X2()

float PndCAGBHit::Err2X2 ( ) const
inline

Definition at line 52 of file PndCAGBHit.h.

References fErr2X2.

52 { return fErr2X2; }
float fErr2X2
Definition: PndCAGBHit.h:143

◆ Err2Y()

float PndCAGBHit::Err2Y ( ) const
inline

Definition at line 44 of file PndCAGBHit.h.

References fErr2X1.

44 { return fErr2X1; }
float fErr2X1
Definition: PndCAGBHit.h:141

◆ Err2Z()

float PndCAGBHit::Err2Z ( ) const
inline

Definition at line 45 of file PndCAGBHit.h.

References fErr2X2, and GetLocalX0X1X2().

45 { return fErr2X2; }
float fErr2X2
Definition: PndCAGBHit.h:143

◆ ErrX12()

float PndCAGBHit::ErrX12 ( ) const
inline

Definition at line 51 of file PndCAGBHit.h.

References fErrX12.

51 { return fErrX12; }
float fErrX12
Definition: PndCAGBHit.h:142

◆ GetLocalX0X1X2()

void PndCAGBHit::GetLocalX0X1X2 ( float &  x0,
float &  x1,
float &  x2 
) const

Referenced by Err2Z(), and PndCAHit::PndCAHit().

◆ GlobalX()

float PndCAGBHit::GlobalX ( ) const
inline

Definition at line 39 of file PndCAGBHit.h.

References fX.

39 { return fX; }
double fX
Definition: PndCAGBHit.h:136

◆ GlobalY()

float PndCAGBHit::GlobalY ( ) const
inline

Definition at line 40 of file PndCAGBHit.h.

References fY.

40 { return fY; }
double fY
Definition: PndCAGBHit.h:137

◆ ID()

int PndCAGBHit::ID ( ) const
inline

Definition at line 55 of file PndCAGBHit.h.

References fID.

55 { return fID; }

◆ IRow()

int PndCAGBHit::IRow ( ) const
inline

Definition at line 54 of file PndCAGBHit.h.

References fIRow.

54 { return fIRow; }

◆ IsLeft()

bool PndCAGBHit::IsLeft ( ) const
inline

Definition at line 62 of file PndCAGBHit.h.

References fIsLeft.

62 { return fIsLeft; }
bool fIsLeft
Definition: PndCAGBHit.h:153

◆ IsUsed()

bool PndCAGBHit::IsUsed ( ) const
inline

Definition at line 129 of file PndCAGBHit.h.

References fIsUsed.

Referenced by PndCAHit::IsUsed().

129 { return fIsUsed; }
bool fIsUsed
Definition: PndCAGBHit.h:162

◆ PndDetID()

int PndCAGBHit::PndDetID ( ) const
inline

Definition at line 70 of file PndCAGBHit.h.

References fPndDetID.

70 { return fPndDetID; }
int fPndDetID
Definition: PndCAGBHit.h:160

◆ PndHitID()

int PndCAGBHit::PndHitID ( ) const
inline

Definition at line 71 of file PndCAGBHit.h.

References fPndHitID.

71 { return fPndHitID; }
int fPndHitID
Definition: PndCAGBHit.h:161

◆ R()

float PndCAGBHit::R ( ) const
inline

Definition at line 57 of file PndCAGBHit.h.

References fR.

57 { return fR; }
double fR
Definition: PndCAGBHit.h:152

◆ SetAngle()

void PndCAGBHit::SetAngle ( float  v)
inline

Definition at line 87 of file PndCAGBHit.h.

References fPhi, and v.

87 { fPhi = v; }
__m128 v
Definition: P4_F32vec4.h:3
double fPhi
Definition: PndCAGBHit.h:150

◆ SetAsUsed()

void PndCAGBHit::SetAsUsed ( )
inline

Definition at line 130 of file PndCAGBHit.h.

References fIsUsed, operator<<, and operator>>.

Referenced by PndCAHit::SetAsUsed().

130 { fIsUsed = true; }
bool fIsUsed
Definition: PndCAGBHit.h:162

◆ SetC() [1/2]

void PndCAGBHit::SetC ( float  v,
int  i1,
int  i2 
)
inline

Definition at line 101 of file PndCAGBHit.h.

References fC, and v.

101 { fC[i1][i2] = v; }
double fC[3][3]
Definition: PndCAGBHit.h:145
__m128 v
Definition: P4_F32vec4.h:3

◆ SetC() [2/2]

void PndCAGBHit::SetC ( const TMatrixT< Double_t >  c)
inline

Definition at line 102 of file PndCAGBHit.h.

References fC, and i.

103  {
104  for (int i = 0; i < 3; i++)
105  for (int j = 0; j < 3; j++)
106  fC[i][j] = c[i][j];
107  }
double fC[3][3]
Definition: PndCAGBHit.h:145
unsigned int i
Definition: P4_F32vec4.h:21

◆ SetErr2R()

void PndCAGBHit::SetErr2R ( float  v)
inline

Definition at line 91 of file PndCAGBHit.h.

References fErr2R, and v.

91 { fErr2R = v; }
__m128 v
Definition: P4_F32vec4.h:3
double fErr2R
Definition: PndCAGBHit.h:152

◆ SetErr2X()

void PndCAGBHit::SetErr2X ( float  v)
inline

Definition at line 76 of file PndCAGBHit.h.

References fErr2X0, and v.

76 { fErr2X0 = v; }
__m128 v
Definition: P4_F32vec4.h:3
float fErr2X0
Definition: PndCAGBHit.h:140

◆ SetErr2X0()

void PndCAGBHit::SetErr2X0 ( float  v)
inline

Definition at line 82 of file PndCAGBHit.h.

References fErr2X0, and v.

82 { fErr2X0 = v; }
__m128 v
Definition: P4_F32vec4.h:3
float fErr2X0
Definition: PndCAGBHit.h:140

◆ SetErr2X1()

void PndCAGBHit::SetErr2X1 ( float  v)
inline

Definition at line 83 of file PndCAGBHit.h.

References fErr2X1, and v.

83 { fErr2X1 = v; }
__m128 v
Definition: P4_F32vec4.h:3
float fErr2X1
Definition: PndCAGBHit.h:141

◆ SetErr2X2()

void PndCAGBHit::SetErr2X2 ( float  v)
inline

Definition at line 85 of file PndCAGBHit.h.

References fErr2X2, and v.

85 { fErr2X2 = v; }
__m128 v
Definition: P4_F32vec4.h:3
float fErr2X2
Definition: PndCAGBHit.h:143

◆ SetErr2Y()

void PndCAGBHit::SetErr2Y ( float  v)
inline

Definition at line 77 of file PndCAGBHit.h.

References fErr2X1, and v.

77 { fErr2X1 = v; }
__m128 v
Definition: P4_F32vec4.h:3
float fErr2X1
Definition: PndCAGBHit.h:141

◆ SetErr2Z()

void PndCAGBHit::SetErr2Z ( float  v)
inline

Definition at line 78 of file PndCAGBHit.h.

References fErr2X2, and v.

78 { fErr2X2 = v; }
__m128 v
Definition: P4_F32vec4.h:3
float fErr2X2
Definition: PndCAGBHit.h:143

◆ SetErrX12()

void PndCAGBHit::SetErrX12 ( float  v)
inline

Definition at line 84 of file PndCAGBHit.h.

References fErrX12, and v.

84 { fErrX12 = v; }
float fErrX12
Definition: PndCAGBHit.h:142
__m128 v
Definition: P4_F32vec4.h:3

◆ SetGlobalX()

void PndCAGBHit::SetGlobalX ( float  v)
inline

Definition at line 73 of file PndCAGBHit.h.

References fX, and v.

73 { fX = v; }
double fX
Definition: PndCAGBHit.h:136
__m128 v
Definition: P4_F32vec4.h:3

◆ SetGlobalY()

void PndCAGBHit::SetGlobalY ( float  v)
inline

Definition at line 74 of file PndCAGBHit.h.

References fY, and v.

74 { fY = v; }
double fY
Definition: PndCAGBHit.h:137
__m128 v
Definition: P4_F32vec4.h:3

◆ SetID()

void PndCAGBHit::SetID ( int  v)
inline

Definition at line 80 of file PndCAGBHit.h.

References fID, and v.

80 { fID = v; }
__m128 v
Definition: P4_F32vec4.h:3

◆ SetIRow()

void PndCAGBHit::SetIRow ( int  v)
inline

Definition at line 79 of file PndCAGBHit.h.

References fIRow, and v.

79 { fIRow = v; }
__m128 v
Definition: P4_F32vec4.h:3

◆ SetIsLeft()

void PndCAGBHit::SetIsLeft ( bool  v)
inline

Definition at line 92 of file PndCAGBHit.h.

References fIsLeft, and v.

92 { fIsLeft = v; }
__m128 v
Definition: P4_F32vec4.h:3
bool fIsLeft
Definition: PndCAGBHit.h:153

◆ SetPndDetID()

void PndCAGBHit::SetPndDetID ( int  v)
inline

Definition at line 109 of file PndCAGBHit.h.

References fPndDetID, and v.

109 { fPndDetID = v; }
int fPndDetID
Definition: PndCAGBHit.h:160
__m128 v
Definition: P4_F32vec4.h:3

◆ SetPndHitID()

void PndCAGBHit::SetPndHitID ( int  v)
inline

Definition at line 110 of file PndCAGBHit.h.

References Compare(), fPndHitID, and v.

110 { fPndHitID = v; }
__m128 v
Definition: P4_F32vec4.h:3
int fPndHitID
Definition: PndCAGBHit.h:161

◆ SetR()

void PndCAGBHit::SetR ( float  v)
inline

Definition at line 90 of file PndCAGBHit.h.

References fR, and v.

90 { fR = v; }
__m128 v
Definition: P4_F32vec4.h:3
double fR
Definition: PndCAGBHit.h:152

◆ SetTubeHalfLength()

void PndCAGBHit::SetTubeHalfLength ( float  v)
inline

Definition at line 99 of file PndCAGBHit.h.

References fHalfLength, and v.

99 { fHalfLength = v; }
__m128 v
Definition: P4_F32vec4.h:3
double fHalfLength
Definition: PndCAGBHit.h:158

◆ SetTubeR()

void PndCAGBHit::SetTubeR ( float  v)
inline

Definition at line 98 of file PndCAGBHit.h.

References fTubeR, and v.

98 { fTubeR = v; }
__m128 v
Definition: P4_F32vec4.h:3
double fTubeR
Definition: PndCAGBHit.h:158

◆ SetXW()

void PndCAGBHit::SetXW ( float  v)
inline

Definition at line 94 of file PndCAGBHit.h.

References fXW, and v.

94 { fXW = v; }
__m128 v
Definition: P4_F32vec4.h:3
double fXW
Definition: PndCAGBHit.h:154

◆ SetYW()

void PndCAGBHit::SetYW ( float  v)
inline

Definition at line 95 of file PndCAGBHit.h.

References fYW, and v.

95 { fYW = v; }
__m128 v
Definition: P4_F32vec4.h:3
double fYW
Definition: PndCAGBHit.h:155

◆ SetZ()

void PndCAGBHit::SetZ ( float  v)
inline

Definition at line 75 of file PndCAGBHit.h.

References fZ, and v.

75 { fZ = v; }
__m128 v
Definition: P4_F32vec4.h:3
double fZ
Definition: PndCAGBHit.h:138

◆ SetZW()

void PndCAGBHit::SetZW ( float  v)
inline

Definition at line 96 of file PndCAGBHit.h.

References fZW, and v.

96 { fZW = v; }
__m128 v
Definition: P4_F32vec4.h:3
double fZW
Definition: PndCAGBHit.h:156

◆ XW()

float PndCAGBHit::XW ( ) const
inline

Definition at line 64 of file PndCAGBHit.h.

References fXW.

64 { return fXW; }
double fXW
Definition: PndCAGBHit.h:154

◆ YW()

float PndCAGBHit::YW ( ) const
inline

Definition at line 65 of file PndCAGBHit.h.

References fYW.

65 { return fYW; }
double fYW
Definition: PndCAGBHit.h:155

◆ Z()

float PndCAGBHit::Z ( ) const
inline

Definition at line 41 of file PndCAGBHit.h.

References fZ.

41 { return fZ; }
double fZ
Definition: PndCAGBHit.h:138

◆ ZW()

float PndCAGBHit::ZW ( ) const
inline

Definition at line 66 of file PndCAGBHit.h.

References fZW.

66 { return fZW; }
double fZW
Definition: PndCAGBHit.h:156

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const PndCAGBHit a 
)
friend

Referenced by SetAsUsed().

◆ operator>>

std::istream& operator>> ( std::istream &  in,
PndCAGBHit a 
)
friend

Referenced by SetAsUsed().

Member Data Documentation

◆ fC

double PndCAGBHit::fC[3][3]
protected

Definition at line 145 of file PndCAGBHit.h.

Referenced by C(), and SetC().

◆ fErr2R

double PndCAGBHit::fErr2R
protected

Definition at line 152 of file PndCAGBHit.h.

Referenced by Err2R(), and SetErr2R().

◆ fErr2X0

float PndCAGBHit::fErr2X0
protected

Definition at line 140 of file PndCAGBHit.h.

Referenced by Err2X(), Err2X0(), SetErr2X(), and SetErr2X0().

◆ fErr2X1

float PndCAGBHit::fErr2X1
protected

Definition at line 141 of file PndCAGBHit.h.

Referenced by Err2X1(), Err2Y(), SetErr2X1(), and SetErr2Y().

◆ fErr2X2

float PndCAGBHit::fErr2X2
protected

Definition at line 143 of file PndCAGBHit.h.

Referenced by Err2X2(), Err2Z(), SetErr2X2(), and SetErr2Z().

◆ fErrX12

float PndCAGBHit::fErrX12
protected

Definition at line 142 of file PndCAGBHit.h.

Referenced by ErrX12(), and SetErrX12().

◆ fHalfLength

double PndCAGBHit::fHalfLength
protected

Definition at line 158 of file PndCAGBHit.h.

Referenced by Err2A(), and SetTubeHalfLength().

◆ fID

int PndCAGBHit::fID
protected

Definition at line 148 of file PndCAGBHit.h.

Referenced by ID(), and SetID().

◆ fIRow

int PndCAGBHit::fIRow
protected

Definition at line 147 of file PndCAGBHit.h.

Referenced by Compare(), ComparePRowDown(), CompareRowDown(), IRow(), and SetIRow().

◆ fIsLeft

bool PndCAGBHit::fIsLeft
protected

Definition at line 153 of file PndCAGBHit.h.

Referenced by IsLeft(), and SetIsLeft().

◆ fIsUsed

bool PndCAGBHit::fIsUsed
protected

Definition at line 162 of file PndCAGBHit.h.

Referenced by IsUsed(), and SetAsUsed().

◆ fPhi

double PndCAGBHit::fPhi
protected

Definition at line 150 of file PndCAGBHit.h.

Referenced by Angle(), and SetAngle().

◆ fPndDetID

int PndCAGBHit::fPndDetID
protected

Definition at line 160 of file PndCAGBHit.h.

Referenced by PndDetID(), and SetPndDetID().

◆ fPndHitID

int PndCAGBHit::fPndHitID
protected

Definition at line 161 of file PndCAGBHit.h.

Referenced by PndHitID(), and SetPndHitID().

◆ fR

double PndCAGBHit::fR
protected

Definition at line 152 of file PndCAGBHit.h.

Referenced by R(), and SetR().

◆ fTubeR

double PndCAGBHit::fTubeR
protected

Definition at line 158 of file PndCAGBHit.h.

Referenced by SetTubeR().

◆ fX

double PndCAGBHit::fX
protected

Definition at line 136 of file PndCAGBHit.h.

Referenced by GlobalX(), and SetGlobalX().

◆ fXW

double PndCAGBHit::fXW
protected

Definition at line 154 of file PndCAGBHit.h.

Referenced by SetXW(), and XW().

◆ fY

double PndCAGBHit::fY
protected

Definition at line 137 of file PndCAGBHit.h.

Referenced by GlobalY(), and SetGlobalY().

◆ fYW

double PndCAGBHit::fYW
protected

Definition at line 155 of file PndCAGBHit.h.

Referenced by SetYW(), and YW().

◆ fZ

double PndCAGBHit::fZ
protected

Definition at line 138 of file PndCAGBHit.h.

Referenced by Compare(), SetZ(), and Z().

◆ fZW

double PndCAGBHit::fZW
protected

Definition at line 156 of file PndCAGBHit.h.

Referenced by SetZW(), and ZW().


The documentation for this class was generated from the following file: