CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
DstCgemTrack Class Reference

#include <DstCgemTrack.h>

+ Inheritance diagram for DstCgemTrack:

Public Member Functions

 DstCgemTrack ()
 
 DstCgemTrack (const DstCgemTrack &)
 
DstCgemTrackoperator= (const DstCgemTrack &)
 
virtual ~DstCgemTrack ()
 
virtual const CLID & clID () const
 
const HepVector helix () const
 ......
 
const HepSymMatrix err () const
 
const HepLorentzVector p4 (const double mass) const
 
const HepPoint3D poca () const
 
const Hep3Vector p3 () const
 
const HepPoint3D x3 () const
 
const double helix (const int i) const
 
const double err (const int i) const
 
const int trackId () const
 
const int charge () const
 
const double pxy () const
 
const double px () const
 
const double py () const
 
const double pz () const
 
const double p () const
 
const double theta () const
 
const double phi () const
 
const double x () const
 
const double y () const
 
const double z () const
 
const double r () const
 
const int stat () const
 
const double chi2 () const
 
const int ndof () const
 
const int firstLayer () const
 
const int lastLayer () const
 
void setHelix (double helix[5])
 
void setPoca (double poca[3])
 
void setError (double err[15])
 
void setHelix (const HepVector &a)
 
void setPoca (const HepPoint3D &poca)
 
void setError (const HepSymMatrix &Ea)
 
void setTrackId (const int trackId)
 
void setCharge (const int charge)
 
void setPxy (const double pxy)
 
void setPx (const double px)
 
void setPy (const double py)
 
void setPz (const double pz)
 
void setP (const double p)
 
void setTheta (const double theta)
 
void setPhi (const double phi)
 
void setX (const double x)
 
void setY (const double y)
 
void setZ (const double z)
 
void setR (const double r)
 
void setStat (const int stat)
 
void setChi2 (const double chi)
 
void setNdof (const int ndof)
 
void setFirstLayer (const int id)
 
void setLastLayer (const int id)
 

Static Public Member Functions

static const CLID & classID ()
 

Protected Attributes

int m_trackId
 
int m_charge
 
double m_helix [5]
 
double m_err [15]
 
double m_poca [3]
 
HepPoint3D m_poca3D
 
HepVector m_a
 
HepSymMatrix m_Ea
 
int m_stat
 
double m_chi2
 
int m_ndof
 
int m_firstLayer
 
int m_lastLayer
 
double m_pxy
 
double m_px
 
double m_py
 
double m_pz
 
double m_p
 
double m_theta
 
double m_phi
 
double m_x
 
double m_y
 
double m_z
 
double m_r
 

Detailed Description

Definition at line 24 of file DstCgemTrack.h.

Constructor & Destructor Documentation

◆ DstCgemTrack() [1/2]

DstCgemTrack::DstCgemTrack ( )

Definition at line 4 of file DstCgemTrack.cxx.

5 : m_trackId(0),
6 m_charge(0),
7 m_poca3D(0,0,0),
8 m_a(5,0),
9 m_Ea(5,0),
10 m_stat(0),
11 m_chi2(0),
12 m_ndof(0),
13 m_firstLayer(0),
14 m_lastLayer(42),
15 m_pxy(0),
16 m_px(0),
17 m_py(0),
18 m_pz(0),
19 m_p(0),
20 m_theta(0),
21 m_phi(0),
22 m_x(0),
23 m_y(0),
24 m_z(0),
25 m_r(0)
26 {
27 for(int i=0;i<5;i++) m_helix[i] = 0;
28 for(int j=0;j<15;j++) m_err[j] = 999;
29 for(int k=0;k<3;k++) m_poca[k] = 0;
30 }
double m_helix[5]
HepSymMatrix m_Ea
HepVector m_a
double m_poca[3]
HepPoint3D m_poca3D
double m_err[15]

◆ DstCgemTrack() [2/2]

DstCgemTrack::DstCgemTrack ( const DstCgemTrack & other)

Definition at line 32 of file DstCgemTrack.cxx.

33 : m_trackId(other.m_trackId),
34 m_charge(other.m_charge),
35 m_poca3D(other.m_poca3D),
36 m_a(other.m_a),
37 m_Ea(other.m_Ea),
38 m_stat(other.m_stat),
39 m_chi2(other.m_chi2),
40 m_ndof(other.m_ndof),
41 m_firstLayer(other.m_firstLayer),
42 m_lastLayer(other.m_lastLayer),
43 m_pxy(other.m_pxy),
44 m_px(other.m_px),
45 m_py(other.m_py),
46 m_pz(other.m_pz),
47 m_p(other.m_p),
48 m_theta(other.m_theta),
49 m_phi(other.m_phi),
50 m_x(other.m_x),
51 m_y(other.m_y),
52 m_z(other.m_z),
53 m_r(other.m_r)
54 {
55 for(int i=0;i<5;i++) m_helix[i] = (other.m_helix)[i];
56 for(int j=0;j<15;j++) m_err[j] = (other.m_err)[j];
57 for(int k=0;k<3;k++) m_poca[k] = (other.m_poca)[k];
58 }
Index other(Index i, Index j)

◆ ~DstCgemTrack()

virtual DstCgemTrack::~DstCgemTrack ( )
inlinevirtual

Definition at line 30 of file DstCgemTrack.h.

30{}

Member Function Documentation

◆ charge()

const int DstCgemTrack::charge ( ) const
inline

Definition at line 53 of file DstCgemTrack.h.

53{ return m_charge; }

Referenced by setCharge().

◆ chi2()

const double DstCgemTrack::chi2 ( ) const
inline

Definition at line 66 of file DstCgemTrack.h.

66{ return m_chi2; }

◆ classID()

static const CLID & DstCgemTrack::classID ( )
inlinestatic

Definition at line 32 of file DstCgemTrack.h.

32{ return CLID_DstCgemTrack; }
const CLID & CLID_DstCgemTrack

Referenced by clID().

◆ clID()

virtual const CLID & DstCgemTrack::clID ( ) const
inlinevirtual

Reimplemented in RecCgemTrack.

Definition at line 31 of file DstCgemTrack.h.

31{ return DstCgemTrack::classID();}
static const CLID & classID()

◆ err() [1/2]

const HepSymMatrix DstCgemTrack::err ( ) const

Definition at line 149 of file DstCgemTrack.cxx.

149 {
150 /*
151 HepSymMatrix ea(5);
152 for(int i = 0, k = 0; i < 5; i++) {
153 for(int j = 0; j <= i; j++) {
154 ea[i][j] = m_err[k++];
155 ea[j][i] = ea[i][j];
156 }
157 }
158 return ea;
159 */
160 return m_Ea;
161 }

Referenced by setError(), and setError().

◆ err() [2/2]

const double DstCgemTrack::err ( const int i) const
inline

Definition at line 51 of file DstCgemTrack.h.

51{ return m_err[i]; }

◆ firstLayer()

const int DstCgemTrack::firstLayer ( ) const
inline

Definition at line 68 of file DstCgemTrack.h.

68{ return m_firstLayer;}

◆ helix() [1/2]

const HepVector DstCgemTrack::helix ( ) const

......

Definition at line 145 of file DstCgemTrack.cxx.

145 {
146 return m_a;
147 }

Referenced by setHelix(), setHelix(), and CgemTrackCnv::TObjectToDataObject().

◆ helix() [2/2]

const double DstCgemTrack::helix ( const int i) const
inline

Definition at line 50 of file DstCgemTrack.h.

50{ return m_helix[i]; }

◆ lastLayer()

const int DstCgemTrack::lastLayer ( ) const
inline

Definition at line 69 of file DstCgemTrack.h.

69{ return m_lastLayer; }

◆ ndof()

const int DstCgemTrack::ndof ( ) const
inline

Definition at line 67 of file DstCgemTrack.h.

67{ return m_ndof; }

Referenced by setNdof().

◆ operator=()

DstCgemTrack & DstCgemTrack::operator= ( const DstCgemTrack & h)

Definition at line 61 of file DstCgemTrack.cxx.

61 {
62 if( &h != this ){
66 m_a = h.m_a;
67 m_Ea = h.m_Ea;
68 m_stat = h.m_stat;
69 m_chi2 = h.m_chi2;
70 m_ndof = h.m_ndof;
73 m_pxy = h.m_pxy;
74 m_px = h.m_px;
75 m_py = h.m_py;
76 m_pz = h.m_pz;
77 m_p = h.m_p;
78 m_theta = h.m_theta;
79 m_phi = h.m_phi;
80 m_x = h.m_x;
81 m_y = h.m_y;
82 m_z = h.m_z;
83 m_r = h.m_r;
84
85 for(int i=0;i<5;i++) m_helix[i] = (h.m_helix)[i];
86 for(int j=0;j<15;j++) m_err[j] = (h.m_err)[j];
87 for(int k=0;k<3;k++) m_poca[k] = (h.m_poca)[k];
88 }
89 return *this;
90 }

Referenced by RecCgemTrack::operator=(), and RecCgemTrack::operator=().

◆ p()

const double DstCgemTrack::p ( ) const
inline

Definition at line 58 of file DstCgemTrack.h.

58{ return m_p; }

Referenced by setP().

◆ p3()

const Hep3Vector DstCgemTrack::p3 ( ) const
inline

Definition at line 43 of file DstCgemTrack.h.

43 {
44 return Hep3Vector(m_px,m_py,m_pz);
45 }

Referenced by p4().

◆ p4()

const HepLorentzVector DstCgemTrack::p4 ( const double mass) const

Definition at line 163 of file DstCgemTrack.cxx.

163 {
164 return HepLorentzVector(p3(),sqrt(p3()*p3()+mass*mass));
165 }
double mass
const Hep3Vector p3() const

◆ phi()

const double DstCgemTrack::phi ( ) const
inline

Definition at line 60 of file DstCgemTrack.h.

60{ return m_phi; }

Referenced by setPhi().

◆ poca()

const HepPoint3D DstCgemTrack::poca ( ) const
inline

Definition at line 40 of file DstCgemTrack.h.

40 {
41 return m_poca3D;
42 }

Referenced by setPoca(), and setPoca().

◆ px()

const double DstCgemTrack::px ( ) const
inline

Definition at line 55 of file DstCgemTrack.h.

55{ return m_px; }

Referenced by setPx().

◆ pxy()

const double DstCgemTrack::pxy ( ) const
inline

Definition at line 54 of file DstCgemTrack.h.

54{ return m_pxy; }

Referenced by setPxy().

◆ py()

const double DstCgemTrack::py ( ) const
inline

Definition at line 56 of file DstCgemTrack.h.

56{ return m_py; }

Referenced by setPy().

◆ pz()

const double DstCgemTrack::pz ( ) const
inline

Definition at line 57 of file DstCgemTrack.h.

57{ return m_pz; }

Referenced by setPz().

◆ r()

const double DstCgemTrack::r ( ) const
inline

Definition at line 64 of file DstCgemTrack.h.

64{ return m_r; }

Referenced by setR().

◆ setCharge()

void DstCgemTrack::setCharge ( const int charge)
inline

Definition at line 81 of file DstCgemTrack.h.

81{ m_charge = charge;}
const int charge() const

Referenced by CgemTrackCnv::TObjectToDataObject(), and RecCgemTrackCnv::TObjectToDataObject().

◆ setChi2()

void DstCgemTrack::setChi2 ( const double chi)
inline

Definition at line 94 of file DstCgemTrack.h.

94{ m_chi2 = chi;}

Referenced by CgemTrackCnv::TObjectToDataObject(), and RecCgemTrackCnv::TObjectToDataObject().

◆ setError() [1/2]

void DstCgemTrack::setError ( const HepSymMatrix & Ea)

Definition at line 133 of file DstCgemTrack.cxx.

133 {
134 int k = 0;
135 for (int i=0; i<5; i++){
136 for (int j=i; j<5; j++)
137 {
138 m_err[k] = err[i][j];
139 k++;
140 }
141 }
142 m_Ea = err;
143 }
const HepSymMatrix err() const

◆ setError() [2/2]

void DstCgemTrack::setError ( double err[15])

Definition at line 106 of file DstCgemTrack.cxx.

106 {
107 for (int i1=0; i1<15; i1++) {
108 m_err[i1] = err[i1];
109 }
110 for(int i=0, k=0; i<5; i++) {
111 for(int j=i; j<5; j++) {
112 m_Ea[i][j] = m_err[k++];
113 m_Ea[j][i] = m_Ea[i][j];
114 }
115 }
116 }

Referenced by CgemTrackCnv::TObjectToDataObject(), and RecCgemTrackCnv::TObjectToDataObject().

◆ setFirstLayer()

void DstCgemTrack::setFirstLayer ( const int id)
inline

Definition at line 96 of file DstCgemTrack.h.

96{ m_firstLayer = id;}

◆ setHelix() [1/2]

void DstCgemTrack::setHelix ( const HepVector & a)

Definition at line 119 of file DstCgemTrack.cxx.

119 {
120 for(int i=0; i<5; i++){
121 m_helix[i] = helix[i];
122 }
123 m_a = helix;
124 }
const HepVector helix() const
......

◆ setHelix() [2/2]

void DstCgemTrack::setHelix ( double helix[5])

Definition at line 92 of file DstCgemTrack.cxx.

92 {
93 for(int i=0; i<5; i++){
94 m_helix[i] = helix[i];
95 m_a[i] = helix[i];
96 }
97 }

Referenced by CgemTrackCnv::TObjectToDataObject(), and RecCgemTrackCnv::TObjectToDataObject().

◆ setLastLayer()

void DstCgemTrack::setLastLayer ( const int id)
inline

Definition at line 97 of file DstCgemTrack.h.

97{ m_lastLayer = id;}

◆ setNdof()

void DstCgemTrack::setNdof ( const int ndof)
inline

Definition at line 95 of file DstCgemTrack.h.

95{ m_ndof = ndof;}
const int ndof() const

Referenced by CgemTrackCnv::TObjectToDataObject(), and RecCgemTrackCnv::TObjectToDataObject().

◆ setP()

void DstCgemTrack::setP ( const double p)
inline

Definition at line 86 of file DstCgemTrack.h.

86{ m_p = p; }
const double p() const

Referenced by CgemTrackCnv::TObjectToDataObject(), and RecCgemTrackCnv::TObjectToDataObject().

◆ setPhi()

void DstCgemTrack::setPhi ( const double phi)
inline

Definition at line 88 of file DstCgemTrack.h.

88{ m_phi = phi; }
const double phi() const

Referenced by CgemTrackCnv::TObjectToDataObject(), and RecCgemTrackCnv::TObjectToDataObject().

◆ setPoca() [1/2]

void DstCgemTrack::setPoca ( const HepPoint3D & poca)

Definition at line 126 of file DstCgemTrack.cxx.

126 {
127 for(int i=0; i<3; i++){
128 m_poca[i] = poca[i];
129 }
130 m_poca3D = poca;
131 }
const HepPoint3D poca() const

◆ setPoca() [2/2]

void DstCgemTrack::setPoca ( double poca[3])

Definition at line 99 of file DstCgemTrack.cxx.

99 {
100 for(int i=0; i<3; i++){
101 m_poca[i] = poca[i];
102 m_poca3D[i] = poca[i];
103 }
104 }

Referenced by CgemTrackCnv::TObjectToDataObject().

◆ setPx()

void DstCgemTrack::setPx ( const double px)
inline

Definition at line 83 of file DstCgemTrack.h.

83{ m_px = px; }
const double px() const

Referenced by CgemTrackCnv::TObjectToDataObject(), and RecCgemTrackCnv::TObjectToDataObject().

◆ setPxy()

void DstCgemTrack::setPxy ( const double pxy)
inline

Definition at line 82 of file DstCgemTrack.h.

82{ m_pxy = pxy; }
const double pxy() const

Referenced by CgemTrackCnv::TObjectToDataObject(), and RecCgemTrackCnv::TObjectToDataObject().

◆ setPy()

void DstCgemTrack::setPy ( const double py)
inline

Definition at line 84 of file DstCgemTrack.h.

84{ m_py = py; }
const double py() const

Referenced by CgemTrackCnv::TObjectToDataObject(), and RecCgemTrackCnv::TObjectToDataObject().

◆ setPz()

void DstCgemTrack::setPz ( const double pz)
inline

Definition at line 85 of file DstCgemTrack.h.

85{ m_pz = pz; }
const double pz() const

Referenced by CgemTrackCnv::TObjectToDataObject(), and RecCgemTrackCnv::TObjectToDataObject().

◆ setR()

void DstCgemTrack::setR ( const double r)
inline

Definition at line 92 of file DstCgemTrack.h.

92{ m_r = r; }
const double r() const

Referenced by CgemTrackCnv::TObjectToDataObject(), and RecCgemTrackCnv::TObjectToDataObject().

◆ setStat()

void DstCgemTrack::setStat ( const int stat)
inline

Definition at line 93 of file DstCgemTrack.h.

93{ m_stat = stat;}
const int stat() const

Referenced by CgemTrackCnv::TObjectToDataObject(), and RecCgemTrackCnv::TObjectToDataObject().

◆ setTheta()

void DstCgemTrack::setTheta ( const double theta)
inline

Definition at line 87 of file DstCgemTrack.h.

87{ m_theta = theta; }
const double theta() const

Referenced by CgemTrackCnv::TObjectToDataObject(), and RecCgemTrackCnv::TObjectToDataObject().

◆ setTrackId()

void DstCgemTrack::setTrackId ( const int trackId)
inline

Definition at line 80 of file DstCgemTrack.h.

80{ m_trackId = trackId; }
const int trackId() const

Referenced by CgemTrackCnv::TObjectToDataObject(), and RecCgemTrackCnv::TObjectToDataObject().

◆ setX()

void DstCgemTrack::setX ( const double x)
inline

Definition at line 89 of file DstCgemTrack.h.

89{ m_x = x; }
const double x() const

Referenced by CgemTrackCnv::TObjectToDataObject(), and RecCgemTrackCnv::TObjectToDataObject().

◆ setY()

void DstCgemTrack::setY ( const double y)
inline

Definition at line 90 of file DstCgemTrack.h.

90{ m_y = y; }
const double y() const

Referenced by CgemTrackCnv::TObjectToDataObject(), and RecCgemTrackCnv::TObjectToDataObject().

◆ setZ()

void DstCgemTrack::setZ ( const double z)
inline

Definition at line 91 of file DstCgemTrack.h.

91{ m_z = z; }
const double z() const

Referenced by CgemTrackCnv::TObjectToDataObject(), and RecCgemTrackCnv::TObjectToDataObject().

◆ stat()

const int DstCgemTrack::stat ( ) const
inline

Definition at line 65 of file DstCgemTrack.h.

65{ return m_stat; }

Referenced by setStat().

◆ theta()

const double DstCgemTrack::theta ( ) const
inline

Definition at line 59 of file DstCgemTrack.h.

59{ return m_theta;}

Referenced by setTheta().

◆ trackId()

const int DstCgemTrack::trackId ( ) const
inline

Definition at line 52 of file DstCgemTrack.h.

52{ return m_trackId; }

Referenced by setTrackId(), and CgemTrackCnv::TObjectToDataObject().

◆ x()

const double DstCgemTrack::x ( ) const
inline

Definition at line 61 of file DstCgemTrack.h.

61{ return m_x; }

Referenced by setX().

◆ x3()

const HepPoint3D DstCgemTrack::x3 ( ) const
inline

Definition at line 46 of file DstCgemTrack.h.

46 {
47 return HepPoint3D(m_x,m_y,m_z);
48 }
HepGeom::Point3D< double > HepPoint3D

◆ y()

const double DstCgemTrack::y ( ) const
inline

Definition at line 62 of file DstCgemTrack.h.

62{ return m_y; }

Referenced by setY().

◆ z()

const double DstCgemTrack::z ( ) const
inline

Definition at line 63 of file DstCgemTrack.h.

63{ return m_z; }

Referenced by setZ().

Member Data Documentation

◆ m_a

HepVector DstCgemTrack::m_a
protected

Definition at line 107 of file DstCgemTrack.h.

Referenced by helix(), operator=(), setHelix(), and setHelix().

◆ m_charge

int DstCgemTrack::m_charge
protected

Definition at line 102 of file DstCgemTrack.h.

Referenced by charge(), operator=(), and setCharge().

◆ m_chi2

double DstCgemTrack::m_chi2
protected

Definition at line 110 of file DstCgemTrack.h.

Referenced by chi2(), operator=(), and setChi2().

◆ m_Ea

HepSymMatrix DstCgemTrack::m_Ea
protected

Definition at line 108 of file DstCgemTrack.h.

Referenced by err(), operator=(), setError(), and setError().

◆ m_err

double DstCgemTrack::m_err[15]
protected

Definition at line 104 of file DstCgemTrack.h.

Referenced by DstCgemTrack(), DstCgemTrack(), err(), operator=(), setError(), and setError().

◆ m_firstLayer

int DstCgemTrack::m_firstLayer
protected

Definition at line 112 of file DstCgemTrack.h.

Referenced by firstLayer(), operator=(), and setFirstLayer().

◆ m_helix

double DstCgemTrack::m_helix[5]
protected

Definition at line 103 of file DstCgemTrack.h.

Referenced by DstCgemTrack(), DstCgemTrack(), helix(), operator=(), setHelix(), and setHelix().

◆ m_lastLayer

int DstCgemTrack::m_lastLayer
protected

Definition at line 113 of file DstCgemTrack.h.

Referenced by lastLayer(), operator=(), and setLastLayer().

◆ m_ndof

int DstCgemTrack::m_ndof
protected

Definition at line 111 of file DstCgemTrack.h.

Referenced by ndof(), operator=(), and setNdof().

◆ m_p

double DstCgemTrack::m_p
protected

Definition at line 118 of file DstCgemTrack.h.

Referenced by operator=(), p(), and setP().

◆ m_phi

double DstCgemTrack::m_phi
protected

Definition at line 120 of file DstCgemTrack.h.

Referenced by operator=(), phi(), and setPhi().

◆ m_poca

double DstCgemTrack::m_poca[3]
protected

Definition at line 105 of file DstCgemTrack.h.

Referenced by DstCgemTrack(), DstCgemTrack(), operator=(), setPoca(), and setPoca().

◆ m_poca3D

HepPoint3D DstCgemTrack::m_poca3D
protected

Definition at line 106 of file DstCgemTrack.h.

Referenced by operator=(), poca(), setPoca(), and setPoca().

◆ m_px

double DstCgemTrack::m_px
protected

Definition at line 115 of file DstCgemTrack.h.

Referenced by operator=(), p3(), px(), and setPx().

◆ m_pxy

double DstCgemTrack::m_pxy
protected

Definition at line 114 of file DstCgemTrack.h.

Referenced by operator=(), pxy(), and setPxy().

◆ m_py

double DstCgemTrack::m_py
protected

Definition at line 116 of file DstCgemTrack.h.

Referenced by operator=(), p3(), py(), and setPy().

◆ m_pz

double DstCgemTrack::m_pz
protected

Definition at line 117 of file DstCgemTrack.h.

Referenced by operator=(), p3(), pz(), and setPz().

◆ m_r

double DstCgemTrack::m_r
protected

Definition at line 124 of file DstCgemTrack.h.

Referenced by operator=(), r(), and setR().

◆ m_stat

int DstCgemTrack::m_stat
protected

Definition at line 109 of file DstCgemTrack.h.

Referenced by operator=(), setStat(), and stat().

◆ m_theta

double DstCgemTrack::m_theta
protected

Definition at line 119 of file DstCgemTrack.h.

Referenced by operator=(), setTheta(), and theta().

◆ m_trackId

int DstCgemTrack::m_trackId
protected

Definition at line 101 of file DstCgemTrack.h.

Referenced by operator=(), setTrackId(), and trackId().

◆ m_x

double DstCgemTrack::m_x
protected

Definition at line 121 of file DstCgemTrack.h.

Referenced by operator=(), setX(), x(), and x3().

◆ m_y

double DstCgemTrack::m_y
protected

Definition at line 122 of file DstCgemTrack.h.

Referenced by operator=(), setY(), x3(), and y().

◆ m_z

double DstCgemTrack::m_z
protected

Definition at line 123 of file DstCgemTrack.h.

Referenced by operator=(), setZ(), x3(), and z().


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