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 39 of file PndCAGBHit.h.

Constructor & Destructor Documentation

◆ PndCAGBHit()

PndCAGBHit::PndCAGBHit ( )
inline

Definition at line 41 of file PndCAGBHit.h.

42  : 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),
43  fHalfLength(0),
44  // fEX( 0 ), fEY( 0 ), fEZ( 0 ),
45  fPndDetID(0), fPndHitID(0), fIsUsed(0)
46  {
47  }
bool fIsUsed
Definition: PndCAGBHit.h:174
int fPndDetID
Definition: PndCAGBHit.h:172
double fX
Definition: PndCAGBHit.h:148
float fErrX12
Definition: PndCAGBHit.h:154
double fY
Definition: PndCAGBHit.h:149
double fTubeR
Definition: PndCAGBHit.h:170
double fZW
Definition: PndCAGBHit.h:168
double fXW
Definition: PndCAGBHit.h:166
double fPhi
Definition: PndCAGBHit.h:162
double fErr2R
Definition: PndCAGBHit.h:164
bool fIsLeft
Definition: PndCAGBHit.h:165
float fErr2X0
Definition: PndCAGBHit.h:152
double fZ
Definition: PndCAGBHit.h:150
double fYW
Definition: PndCAGBHit.h:167
double fHalfLength
Definition: PndCAGBHit.h:170
double fR
Definition: PndCAGBHit.h:164
float fErr2X1
Definition: PndCAGBHit.h:153
int fPndHitID
Definition: PndCAGBHit.h:173
float fErr2X2
Definition: PndCAGBHit.h:155

Member Function Documentation

◆ Angle()

float PndCAGBHit::Angle ( ) const
inline

Definition at line 100 of file PndCAGBHit.h.

References fPhi.

100 { return fPhi; }
double fPhi
Definition: PndCAGBHit.h:162

◆ C()

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

Definition at line 80 of file PndCAGBHit.h.

References fC.

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

◆ 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 177 of file PndCAGBHit.h.

References fIRow, and fZ.

Referenced by SetPndHitID().

182 {
183  //* Comparison function for sorting hits
184  if (a.fIRow < b.fIRow)
185  return 1;
186  if (a.fIRow > b.fIRow)
187  return 0;
188  return (a.fZ < b.fZ);
189 }
double fZ
Definition: PndCAGBHit.h:150

◆ ComparePRowDown()

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

Hits are sorted by row number

Definition at line 135 of file PndCAGBHit.h.

References fIRow.

136  {
137  return (a->fIRow > b->fIRow);
139  }

◆ 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 129 of file PndCAGBHit.h.

References fIRow.

130  {
131  return (a.fIRow > b.fIRow);
132 
134  }

◆ Err2A()

float PndCAGBHit::Err2A ( ) const
inline

Definition at line 71 of file PndCAGBHit.h.

References fHalfLength.

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

◆ Err2R()

float PndCAGBHit::Err2R ( ) const
inline

Definition at line 70 of file PndCAGBHit.h.

References fErr2R.

70 { return fErr2R; }
double fErr2R
Definition: PndCAGBHit.h:164

◆ Err2X()

float PndCAGBHit::Err2X ( ) const
inline

Definition at line 55 of file PndCAGBHit.h.

References fErr2X0.

55 { return fErr2X0; }
float fErr2X0
Definition: PndCAGBHit.h:152

◆ Err2X0()

float PndCAGBHit::Err2X0 ( ) const
inline

Definition at line 61 of file PndCAGBHit.h.

References fErr2X0.

61 { return fErr2X0; }
float fErr2X0
Definition: PndCAGBHit.h:152

◆ Err2X1()

float PndCAGBHit::Err2X1 ( ) const
inline

Definition at line 62 of file PndCAGBHit.h.

References fErr2X1.

62 { return fErr2X1; }
float fErr2X1
Definition: PndCAGBHit.h:153

◆ Err2X2()

float PndCAGBHit::Err2X2 ( ) const
inline

Definition at line 64 of file PndCAGBHit.h.

References fErr2X2.

64 { return fErr2X2; }
float fErr2X2
Definition: PndCAGBHit.h:155

◆ Err2Y()

float PndCAGBHit::Err2Y ( ) const
inline

Definition at line 56 of file PndCAGBHit.h.

References fErr2X1.

56 { return fErr2X1; }
float fErr2X1
Definition: PndCAGBHit.h:153

◆ Err2Z()

float PndCAGBHit::Err2Z ( ) const
inline

Definition at line 57 of file PndCAGBHit.h.

References fErr2X2, and GetLocalX0X1X2().

57 { return fErr2X2; }
float fErr2X2
Definition: PndCAGBHit.h:155

◆ ErrX12()

float PndCAGBHit::ErrX12 ( ) const
inline

Definition at line 63 of file PndCAGBHit.h.

References fErrX12.

63 { return fErrX12; }
float fErrX12
Definition: PndCAGBHit.h:154

◆ 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 51 of file PndCAGBHit.h.

References fX.

51 { return fX; }
double fX
Definition: PndCAGBHit.h:148

◆ GlobalY()

float PndCAGBHit::GlobalY ( ) const
inline

Definition at line 52 of file PndCAGBHit.h.

References fY.

52 { return fY; }
double fY
Definition: PndCAGBHit.h:149

◆ ID()

int PndCAGBHit::ID ( ) const
inline

Definition at line 67 of file PndCAGBHit.h.

References fID.

67 { return fID; }

◆ IRow()

int PndCAGBHit::IRow ( ) const
inline

Definition at line 66 of file PndCAGBHit.h.

References fIRow.

66 { return fIRow; }

◆ IsLeft()

bool PndCAGBHit::IsLeft ( ) const
inline

Definition at line 74 of file PndCAGBHit.h.

References fIsLeft.

74 { return fIsLeft; }
bool fIsLeft
Definition: PndCAGBHit.h:165

◆ IsUsed()

bool PndCAGBHit::IsUsed ( ) const
inline

Definition at line 141 of file PndCAGBHit.h.

References fIsUsed.

Referenced by PndCAHit::IsUsed().

141 { return fIsUsed; }
bool fIsUsed
Definition: PndCAGBHit.h:174

◆ PndDetID()

int PndCAGBHit::PndDetID ( ) const
inline

Definition at line 82 of file PndCAGBHit.h.

References fPndDetID.

82 { return fPndDetID; }
int fPndDetID
Definition: PndCAGBHit.h:172

◆ PndHitID()

int PndCAGBHit::PndHitID ( ) const
inline

Definition at line 83 of file PndCAGBHit.h.

References fPndHitID.

83 { return fPndHitID; }
int fPndHitID
Definition: PndCAGBHit.h:173

◆ R()

float PndCAGBHit::R ( ) const
inline

Definition at line 69 of file PndCAGBHit.h.

References fR.

69 { return fR; }
double fR
Definition: PndCAGBHit.h:164

◆ SetAngle()

void PndCAGBHit::SetAngle ( float  v)
inline

Definition at line 99 of file PndCAGBHit.h.

References fPhi, and v.

99 { fPhi = v; }
__m128 v
Definition: P4_F32vec4.h:15
double fPhi
Definition: PndCAGBHit.h:162

◆ SetAsUsed()

void PndCAGBHit::SetAsUsed ( )
inline

Definition at line 142 of file PndCAGBHit.h.

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

Referenced by PndCAHit::SetAsUsed().

142 { fIsUsed = true; }
bool fIsUsed
Definition: PndCAGBHit.h:174

◆ SetC() [1/2]

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

Definition at line 113 of file PndCAGBHit.h.

References fC, and v.

113 { fC[i1][i2] = v; }
double fC[3][3]
Definition: PndCAGBHit.h:157
__m128 v
Definition: P4_F32vec4.h:15

◆ SetC() [2/2]

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

Definition at line 114 of file PndCAGBHit.h.

References fC, and i.

115  {
116  for (int i = 0; i < 3; i++)
117  for (int j = 0; j < 3; j++)
118  fC[i][j] = c[i][j];
119  }
double fC[3][3]
Definition: PndCAGBHit.h:157
unsigned int i
Definition: P4_F32vec4.h:33

◆ SetErr2R()

void PndCAGBHit::SetErr2R ( float  v)
inline

Definition at line 103 of file PndCAGBHit.h.

References fErr2R, and v.

103 { fErr2R = v; }
__m128 v
Definition: P4_F32vec4.h:15
double fErr2R
Definition: PndCAGBHit.h:164

◆ SetErr2X()

void PndCAGBHit::SetErr2X ( float  v)
inline

Definition at line 88 of file PndCAGBHit.h.

References fErr2X0, and v.

88 { fErr2X0 = v; }
__m128 v
Definition: P4_F32vec4.h:15
float fErr2X0
Definition: PndCAGBHit.h:152

◆ SetErr2X0()

void PndCAGBHit::SetErr2X0 ( float  v)
inline

Definition at line 94 of file PndCAGBHit.h.

References fErr2X0, and v.

94 { fErr2X0 = v; }
__m128 v
Definition: P4_F32vec4.h:15
float fErr2X0
Definition: PndCAGBHit.h:152

◆ SetErr2X1()

void PndCAGBHit::SetErr2X1 ( float  v)
inline

Definition at line 95 of file PndCAGBHit.h.

References fErr2X1, and v.

95 { fErr2X1 = v; }
__m128 v
Definition: P4_F32vec4.h:15
float fErr2X1
Definition: PndCAGBHit.h:153

◆ SetErr2X2()

void PndCAGBHit::SetErr2X2 ( float  v)
inline

Definition at line 97 of file PndCAGBHit.h.

References fErr2X2, and v.

97 { fErr2X2 = v; }
__m128 v
Definition: P4_F32vec4.h:15
float fErr2X2
Definition: PndCAGBHit.h:155

◆ SetErr2Y()

void PndCAGBHit::SetErr2Y ( float  v)
inline

Definition at line 89 of file PndCAGBHit.h.

References fErr2X1, and v.

89 { fErr2X1 = v; }
__m128 v
Definition: P4_F32vec4.h:15
float fErr2X1
Definition: PndCAGBHit.h:153

◆ SetErr2Z()

void PndCAGBHit::SetErr2Z ( float  v)
inline

Definition at line 90 of file PndCAGBHit.h.

References fErr2X2, and v.

90 { fErr2X2 = v; }
__m128 v
Definition: P4_F32vec4.h:15
float fErr2X2
Definition: PndCAGBHit.h:155

◆ SetErrX12()

void PndCAGBHit::SetErrX12 ( float  v)
inline

Definition at line 96 of file PndCAGBHit.h.

References fErrX12, and v.

96 { fErrX12 = v; }
float fErrX12
Definition: PndCAGBHit.h:154
__m128 v
Definition: P4_F32vec4.h:15

◆ SetGlobalX()

void PndCAGBHit::SetGlobalX ( float  v)
inline

Definition at line 85 of file PndCAGBHit.h.

References fX, and v.

85 { fX = v; }
double fX
Definition: PndCAGBHit.h:148
__m128 v
Definition: P4_F32vec4.h:15

◆ SetGlobalY()

void PndCAGBHit::SetGlobalY ( float  v)
inline

Definition at line 86 of file PndCAGBHit.h.

References fY, and v.

86 { fY = v; }
double fY
Definition: PndCAGBHit.h:149
__m128 v
Definition: P4_F32vec4.h:15

◆ SetID()

void PndCAGBHit::SetID ( int  v)
inline

Definition at line 92 of file PndCAGBHit.h.

References fID, and v.

92 { fID = v; }
__m128 v
Definition: P4_F32vec4.h:15

◆ SetIRow()

void PndCAGBHit::SetIRow ( int  v)
inline

Definition at line 91 of file PndCAGBHit.h.

References fIRow, and v.

91 { fIRow = v; }
__m128 v
Definition: P4_F32vec4.h:15

◆ SetIsLeft()

void PndCAGBHit::SetIsLeft ( bool  v)
inline

Definition at line 104 of file PndCAGBHit.h.

References fIsLeft, and v.

104 { fIsLeft = v; }
__m128 v
Definition: P4_F32vec4.h:15
bool fIsLeft
Definition: PndCAGBHit.h:165

◆ SetPndDetID()

void PndCAGBHit::SetPndDetID ( int  v)
inline

Definition at line 121 of file PndCAGBHit.h.

References fPndDetID, and v.

121 { fPndDetID = v; }
int fPndDetID
Definition: PndCAGBHit.h:172
__m128 v
Definition: P4_F32vec4.h:15

◆ SetPndHitID()

void PndCAGBHit::SetPndHitID ( int  v)
inline

Definition at line 122 of file PndCAGBHit.h.

References Compare(), fPndHitID, and v.

122 { fPndHitID = v; }
__m128 v
Definition: P4_F32vec4.h:15
int fPndHitID
Definition: PndCAGBHit.h:173

◆ SetR()

void PndCAGBHit::SetR ( float  v)
inline

Definition at line 102 of file PndCAGBHit.h.

References fR, and v.

102 { fR = v; }
__m128 v
Definition: P4_F32vec4.h:15
double fR
Definition: PndCAGBHit.h:164

◆ SetTubeHalfLength()

void PndCAGBHit::SetTubeHalfLength ( float  v)
inline

Definition at line 111 of file PndCAGBHit.h.

References fHalfLength, and v.

111 { fHalfLength = v; }
__m128 v
Definition: P4_F32vec4.h:15
double fHalfLength
Definition: PndCAGBHit.h:170

◆ SetTubeR()

void PndCAGBHit::SetTubeR ( float  v)
inline

Definition at line 110 of file PndCAGBHit.h.

References fTubeR, and v.

110 { fTubeR = v; }
__m128 v
Definition: P4_F32vec4.h:15
double fTubeR
Definition: PndCAGBHit.h:170

◆ SetXW()

void PndCAGBHit::SetXW ( float  v)
inline

Definition at line 106 of file PndCAGBHit.h.

References fXW, and v.

106 { fXW = v; }
__m128 v
Definition: P4_F32vec4.h:15
double fXW
Definition: PndCAGBHit.h:166

◆ SetYW()

void PndCAGBHit::SetYW ( float  v)
inline

Definition at line 107 of file PndCAGBHit.h.

References fYW, and v.

107 { fYW = v; }
__m128 v
Definition: P4_F32vec4.h:15
double fYW
Definition: PndCAGBHit.h:167

◆ SetZ()

void PndCAGBHit::SetZ ( float  v)
inline

Definition at line 87 of file PndCAGBHit.h.

References fZ, and v.

87 { fZ = v; }
__m128 v
Definition: P4_F32vec4.h:15
double fZ
Definition: PndCAGBHit.h:150

◆ SetZW()

void PndCAGBHit::SetZW ( float  v)
inline

Definition at line 108 of file PndCAGBHit.h.

References fZW, and v.

108 { fZW = v; }
__m128 v
Definition: P4_F32vec4.h:15
double fZW
Definition: PndCAGBHit.h:168

◆ XW()

float PndCAGBHit::XW ( ) const
inline

Definition at line 76 of file PndCAGBHit.h.

References fXW.

76 { return fXW; }
double fXW
Definition: PndCAGBHit.h:166

◆ YW()

float PndCAGBHit::YW ( ) const
inline

Definition at line 77 of file PndCAGBHit.h.

References fYW.

77 { return fYW; }
double fYW
Definition: PndCAGBHit.h:167

◆ Z()

float PndCAGBHit::Z ( ) const
inline

Definition at line 53 of file PndCAGBHit.h.

References fZ.

53 { return fZ; }
double fZ
Definition: PndCAGBHit.h:150

◆ ZW()

float PndCAGBHit::ZW ( ) const
inline

Definition at line 78 of file PndCAGBHit.h.

References fZW.

78 { return fZW; }
double fZW
Definition: PndCAGBHit.h:168

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 157 of file PndCAGBHit.h.

Referenced by C(), and SetC().

◆ fErr2R

double PndCAGBHit::fErr2R
protected

Definition at line 164 of file PndCAGBHit.h.

Referenced by Err2R(), and SetErr2R().

◆ fErr2X0

float PndCAGBHit::fErr2X0
protected

Definition at line 152 of file PndCAGBHit.h.

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

◆ fErr2X1

float PndCAGBHit::fErr2X1
protected

Definition at line 153 of file PndCAGBHit.h.

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

◆ fErr2X2

float PndCAGBHit::fErr2X2
protected

Definition at line 155 of file PndCAGBHit.h.

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

◆ fErrX12

float PndCAGBHit::fErrX12
protected

Definition at line 154 of file PndCAGBHit.h.

Referenced by ErrX12(), and SetErrX12().

◆ fHalfLength

double PndCAGBHit::fHalfLength
protected

Definition at line 170 of file PndCAGBHit.h.

Referenced by Err2A(), and SetTubeHalfLength().

◆ fID

int PndCAGBHit::fID
protected

Definition at line 160 of file PndCAGBHit.h.

Referenced by ID(), and SetID().

◆ fIRow

int PndCAGBHit::fIRow
protected

Definition at line 159 of file PndCAGBHit.h.

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

◆ fIsLeft

bool PndCAGBHit::fIsLeft
protected

Definition at line 165 of file PndCAGBHit.h.

Referenced by IsLeft(), and SetIsLeft().

◆ fIsUsed

bool PndCAGBHit::fIsUsed
protected

Definition at line 174 of file PndCAGBHit.h.

Referenced by IsUsed(), and SetAsUsed().

◆ fPhi

double PndCAGBHit::fPhi
protected

Definition at line 162 of file PndCAGBHit.h.

Referenced by Angle(), and SetAngle().

◆ fPndDetID

int PndCAGBHit::fPndDetID
protected

Definition at line 172 of file PndCAGBHit.h.

Referenced by PndDetID(), and SetPndDetID().

◆ fPndHitID

int PndCAGBHit::fPndHitID
protected

Definition at line 173 of file PndCAGBHit.h.

Referenced by PndHitID(), and SetPndHitID().

◆ fR

double PndCAGBHit::fR
protected

Definition at line 164 of file PndCAGBHit.h.

Referenced by R(), and SetR().

◆ fTubeR

double PndCAGBHit::fTubeR
protected

Definition at line 170 of file PndCAGBHit.h.

Referenced by SetTubeR().

◆ fX

double PndCAGBHit::fX
protected

Definition at line 148 of file PndCAGBHit.h.

Referenced by GlobalX(), and SetGlobalX().

◆ fXW

double PndCAGBHit::fXW
protected

Definition at line 166 of file PndCAGBHit.h.

Referenced by SetXW(), and XW().

◆ fY

double PndCAGBHit::fY
protected

Definition at line 149 of file PndCAGBHit.h.

Referenced by GlobalY(), and SetGlobalY().

◆ fYW

double PndCAGBHit::fYW
protected

Definition at line 167 of file PndCAGBHit.h.

Referenced by SetYW(), and YW().

◆ fZ

double PndCAGBHit::fZ
protected

Definition at line 150 of file PndCAGBHit.h.

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

◆ fZW

double PndCAGBHit::fZW
protected

Definition at line 168 of file PndCAGBHit.h.

Referenced by SetZW(), and ZW().


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