BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
DstMdcTrack Class Reference

#include <DstMdcTrack.h>

+ Inheritance diagram for DstMdcTrack:

Public Member Functions

 DstMdcTrack ()
 
 DstMdcTrack (const DstMdcTrack &)
 
DstMdcTrackoperator= (const DstMdcTrack &)
 
virtual ~DstMdcTrack ()
 
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 nster () const
 
const int firstLayer () const
 
const int lastLayer () const
 
const int nlayer () 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 setNster (const int ns)
 
void setFirstLayer (const int id)
 
void setLastLayer (const int id)
 
void setNlayer (const int nlayer)
 

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_nster
 
int m_firstLayer
 
int m_lastLayer
 
int m_nlayer
 
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 DstMdcTrack.h.

Constructor & Destructor Documentation

◆ DstMdcTrack() [1/2]

DstMdcTrack::DstMdcTrack ( )

Definition at line 4 of file DstMdcTrack.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_nster(0),
14 m_nlayer(0),
15 m_firstLayer(0),
16 m_lastLayer(42),
17 m_pxy(0),
18 m_px(0),
19 m_py(0),
20 m_pz(0),
21 m_p(0),
22 m_theta(0),
23 m_phi(0),
24 m_x(0),
25 m_y(0),
26 m_z(0),
27 m_r(0)
28 {
29 for(int i=0;i<5;i++) m_helix[i] = 0;
30 for(int j=0;j<15;j++) m_err[j] = 999;
31 for(int k=0;k<3;k++) m_poca[k] = 0;
32 }
double m_theta
Definition: DstMdcTrack.h:125
double m_x
Definition: DstMdcTrack.h:127
double m_helix[5]
Definition: DstMdcTrack.h:107
double m_y
Definition: DstMdcTrack.h:128
HepVector m_a
Definition: DstMdcTrack.h:111
double m_z
Definition: DstMdcTrack.h:129
double m_px
Definition: DstMdcTrack.h:121
HepPoint3D m_poca3D
Definition: DstMdcTrack.h:110
double m_r
Definition: DstMdcTrack.h:130
double m_chi2
Definition: DstMdcTrack.h:114
HepSymMatrix m_Ea
Definition: DstMdcTrack.h:112
double m_pz
Definition: DstMdcTrack.h:123
int m_firstLayer
Definition: DstMdcTrack.h:117
double m_pxy
Definition: DstMdcTrack.h:120
double m_p
Definition: DstMdcTrack.h:124
double m_err[15]
Definition: DstMdcTrack.h:108
double m_phi
Definition: DstMdcTrack.h:126
double m_poca[3]
Definition: DstMdcTrack.h:109
double m_py
Definition: DstMdcTrack.h:122

◆ DstMdcTrack() [2/2]

DstMdcTrack::DstMdcTrack ( const DstMdcTrack other)

Definition at line 34 of file DstMdcTrack.cxx.

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

◆ ~DstMdcTrack()

virtual DstMdcTrack::~DstMdcTrack ( )
inlinevirtual

Definition at line 30 of file DstMdcTrack.h.

30{}

Member Function Documentation

◆ charge()

◆ chi2()

◆ classID()

static const CLID & DstMdcTrack::classID ( )
inlinestatic

Definition at line 32 of file DstMdcTrack.h.

32{ return CLID_DstMdcTrack; }
const CLID & CLID_DstMdcTrack
Definition: EventModel.cxx:248

Referenced by clID().

◆ clID()

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

Reimplemented in RecMdcTrack.

Definition at line 31 of file DstMdcTrack.h.

31{ return DstMdcTrack::classID();}
static const CLID & classID()
Definition: DstMdcTrack.h:32

◆ err() [1/2]

const HepSymMatrix DstMdcTrack::err ( ) const

Definition at line 155 of file DstMdcTrack.cxx.

155 {
156 /*
157 HepSymMatrix ea(5);
158 for(int i = 0, k = 0; i < 5; i++) {
159 for(int j = 0; j <= i; j++) {
160 ea[i][j] = m_err[k++];
161 ea[j][i] = ea[i][j];
162 }
163 }
164 return ea;
165 */
166 return m_Ea;
167 }

Referenced by TrackPool::AddTrack(), MdcTrkRecon::dumpTdsTrack(), Gam4pikp::execute(), Rhopi::execute(), DQAKsKpi::execute(), DQASelHadron::execute(), SD0Tag::execute(), DedxCalibEvent::genNtuple(), TTrackManager::makeTds(), MdcPrintSvc::printRecMdcTrack(), ExtMdcTrack::ReadTrk(), and setError().

◆ err() [2/2]

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

Definition at line 51 of file DstMdcTrack.h.

51{ return m_err[i]; }

◆ firstLayer()

const int DstMdcTrack::firstLayer ( ) const
inline

Definition at line 69 of file DstMdcTrack.h.

69{ return m_firstLayer;}

◆ helix() [1/2]

◆ helix() [2/2]

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

Definition at line 50 of file DstMdcTrack.h.

50{ return m_helix[i]; }

◆ lastLayer()

const int DstMdcTrack::lastLayer ( ) const
inline

Definition at line 70 of file DstMdcTrack.h.

70{ return m_lastLayer; }

◆ ndof()

◆ nlayer()

const int DstMdcTrack::nlayer ( ) const
inline

Definition at line 71 of file DstMdcTrack.h.

71{ return m_nlayer; }

Referenced by setNlayer().

◆ nster()

◆ operator=()

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

Definition at line 65 of file DstMdcTrack.cxx.

65 {
66 if( &h != this ){
70 m_a = h.m_a;
71 m_Ea = h.m_Ea;
72 m_stat = h.m_stat;
73 m_chi2 = h.m_chi2;
74 m_ndof = h.m_ndof;
75 m_nster = h.m_nster;
79 m_pxy = h.m_pxy;
80 m_px = h.m_px;
81 m_py = h.m_py;
82 m_pz = h.m_pz;
83 m_p = h.m_p;
84 m_theta = h.m_theta;
85 m_phi = h.m_phi;
86 m_x = h.m_x;
87 m_y = h.m_y;
88 m_z = h.m_z;
89 m_r = h.m_r;
90
91 for(int i=0;i<5;i++) m_helix[i] = (h.m_helix)[i];
92 for(int j=0;j<15;j++) m_err[j] = (h.m_err)[j];
93 for(int k=0;k<3;k++) m_poca[k] = (h.m_poca)[k];
94 }
95 return *this;
96 }

Referenced by RecMdcTrack::operator=().

◆ p()

◆ p3()

const Hep3Vector DstMdcTrack::p3 ( ) const
inline

Definition at line 43 of file DstMdcTrack.h.

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

Referenced by CDChargedVisible< H >::defaultKinematicData(), and p4().

◆ p4()

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

Definition at line 169 of file DstMdcTrack.cxx.

169 {
170 return HepLorentzVector(p3(),sqrt(p3()*p3()+mass*mass));
171 }
double mass
const Hep3Vector p3() const
Definition: DstMdcTrack.h:43

◆ phi()

◆ poca()

const HepPoint3D DstMdcTrack::poca ( ) const
inline

Definition at line 40 of file DstMdcTrack.h.

40 {
41 return m_poca3D;
42 }

Referenced by setPoca().

◆ px()

◆ pxy()

◆ py()

◆ pz()

◆ r()

◆ setCharge()

void DstMdcTrack::setCharge ( const int  charge)
inline

◆ setChi2()

void DstMdcTrack::setChi2 ( const double  chi)
inline

◆ setError() [1/2]

void DstMdcTrack::setError ( const HepSymMatrix &  Ea)

Definition at line 139 of file DstMdcTrack.cxx.

139 {
140 int k = 0;
141 for (int i=0; i<5; i++){
142 for (int j=i; j<5; j++)
143 {
144 m_err[k] = err[i][j];
145 k++;
146 }
147 }
148 m_Ea = err;
149 }
const HepSymMatrix err() const

◆ setError() [2/2]

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

Definition at line 112 of file DstMdcTrack.cxx.

112 {
113 for (int i1=0; i1<15; i1++) {
114 m_err[i1] = err[i1];
115 }
116 for(int i=0, k=0; i<5; i++) {
117 for(int j=i; j<5; j++) {
118 m_Ea[i][j] = m_err[k++];
119 m_Ea[j][i] = m_Ea[i][j];
120 }
121 }
122 }

Referenced by TTrackManager::makeTds(), MdcTrack::storeTrack(), MdcTrackCnv::TObjectToDataObject(), and RecMdcTrackCnv::TObjectToDataObject().

◆ setFirstLayer()

void DstMdcTrack::setFirstLayer ( const int  id)
inline

Definition at line 99 of file DstMdcTrack.h.

99{ m_firstLayer = id;}

Referenced by TTrackManager::makeTds(), and MdcTrack::storeTrack().

◆ setHelix() [1/2]

void DstMdcTrack::setHelix ( const HepVector &  a)

Definition at line 125 of file DstMdcTrack.cxx.

125 {
126 for(int i=0; i<5; i++){
127 m_helix[i] = helix[i];
128 }
129 m_a = helix;
130 }
const HepVector helix() const
......

◆ setHelix() [2/2]

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

Definition at line 98 of file DstMdcTrack.cxx.

98 {
99 for(int i=0; i<5; i++){
100 m_helix[i] = helix[i];
101 m_a[i] = helix[i];
102 }
103 }

Referenced by TTrackManager::makeTds(), MdcTrack::storeTrack(), MdcTrackCnv::TObjectToDataObject(), and RecMdcTrackCnv::TObjectToDataObject().

◆ setLastLayer()

void DstMdcTrack::setLastLayer ( const int  id)
inline

Definition at line 100 of file DstMdcTrack.h.

100{ m_lastLayer = id;}

Referenced by TTrackManager::makeTds(), and MdcTrack::storeTrack().

◆ setNdof()

void DstMdcTrack::setNdof ( const int  ndof)
inline

◆ setNlayer()

void DstMdcTrack::setNlayer ( const int  nlayer)
inline

Definition at line 101 of file DstMdcTrack.h.

101{ m_nlayer = nlayer;}
const int nlayer() const
Definition: DstMdcTrack.h:71

Referenced by MdcTrackCnv::TObjectToDataObject(), and RecMdcTrackCnv::TObjectToDataObject().

◆ setNster()

void DstMdcTrack::setNster ( const int  ns)
inline

◆ setP()

void DstMdcTrack::setP ( const double  p)
inline

◆ setPhi()

void DstMdcTrack::setPhi ( const double  phi)
inline

◆ setPoca() [1/2]

void DstMdcTrack::setPoca ( const HepPoint3D poca)

Definition at line 132 of file DstMdcTrack.cxx.

132 {
133 for(int i=0; i<3; i++){
134 m_poca[i] = poca[i];
135 }
136 m_poca3D = poca;
137 }
const HepPoint3D poca() const
Definition: DstMdcTrack.h:40

◆ setPoca() [2/2]

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

Definition at line 105 of file DstMdcTrack.cxx.

105 {
106 for(int i=0; i<3; i++){
107 m_poca[i] = poca[i];
108 m_poca3D[i] = poca[i];
109 }
110 }

Referenced by TTrackManager::makeTds(), MdcTrack::storeTrack(), and MdcTrackCnv::TObjectToDataObject().

◆ setPx()

void DstMdcTrack::setPx ( const double  px)
inline

◆ setPxy()

void DstMdcTrack::setPxy ( const double  pxy)
inline

◆ setPy()

void DstMdcTrack::setPy ( const double  py)
inline

◆ setPz()

void DstMdcTrack::setPz ( const double  pz)
inline

◆ setR()

void DstMdcTrack::setR ( const double  r)
inline

◆ setStat()

void DstMdcTrack::setStat ( const int  stat)
inline

◆ setTheta()

void DstMdcTrack::setTheta ( const double  theta)
inline

◆ setTrackId()

void DstMdcTrack::setTrackId ( const int  trackId)
inline

◆ setX()

void DstMdcTrack::setX ( const double  x)
inline

◆ setY()

void DstMdcTrack::setY ( const double  y)
inline

◆ setZ()

void DstMdcTrack::setZ ( const double  z)
inline

◆ stat()

◆ theta()

◆ trackId()

◆ x()

◆ x3()

const HepPoint3D DstMdcTrack::x3 ( ) const
inline

Definition at line 46 of file DstMdcTrack.h.

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

◆ y()

◆ z()

Member Data Documentation

◆ m_a

HepVector DstMdcTrack::m_a
protected

Definition at line 111 of file DstMdcTrack.h.

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

◆ m_charge

int DstMdcTrack::m_charge
protected

Definition at line 106 of file DstMdcTrack.h.

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

◆ m_chi2

double DstMdcTrack::m_chi2
protected

Definition at line 114 of file DstMdcTrack.h.

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

◆ m_Ea

HepSymMatrix DstMdcTrack::m_Ea
protected

Definition at line 112 of file DstMdcTrack.h.

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

◆ m_err

double DstMdcTrack::m_err[15]
protected

Definition at line 108 of file DstMdcTrack.h.

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

◆ m_firstLayer

int DstMdcTrack::m_firstLayer
protected

Definition at line 117 of file DstMdcTrack.h.

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

◆ m_helix

double DstMdcTrack::m_helix[5]
protected

Definition at line 107 of file DstMdcTrack.h.

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

◆ m_lastLayer

int DstMdcTrack::m_lastLayer
protected

Definition at line 118 of file DstMdcTrack.h.

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

◆ m_ndof

int DstMdcTrack::m_ndof
protected

Definition at line 115 of file DstMdcTrack.h.

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

◆ m_nlayer

int DstMdcTrack::m_nlayer
protected

Definition at line 119 of file DstMdcTrack.h.

Referenced by nlayer(), operator=(), and setNlayer().

◆ m_nster

int DstMdcTrack::m_nster
protected

Definition at line 116 of file DstMdcTrack.h.

Referenced by nster(), operator=(), and setNster().

◆ m_p

double DstMdcTrack::m_p
protected

Definition at line 124 of file DstMdcTrack.h.

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

◆ m_phi

double DstMdcTrack::m_phi
protected

Definition at line 126 of file DstMdcTrack.h.

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

◆ m_poca

double DstMdcTrack::m_poca[3]
protected

Definition at line 109 of file DstMdcTrack.h.

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

◆ m_poca3D

HepPoint3D DstMdcTrack::m_poca3D
protected

Definition at line 110 of file DstMdcTrack.h.

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

◆ m_px

double DstMdcTrack::m_px
protected

Definition at line 121 of file DstMdcTrack.h.

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

◆ m_pxy

double DstMdcTrack::m_pxy
protected

Definition at line 120 of file DstMdcTrack.h.

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

◆ m_py

double DstMdcTrack::m_py
protected

Definition at line 122 of file DstMdcTrack.h.

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

◆ m_pz

double DstMdcTrack::m_pz
protected

Definition at line 123 of file DstMdcTrack.h.

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

◆ m_r

double DstMdcTrack::m_r
protected

Definition at line 130 of file DstMdcTrack.h.

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

◆ m_stat

int DstMdcTrack::m_stat
protected

Definition at line 113 of file DstMdcTrack.h.

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

◆ m_theta

double DstMdcTrack::m_theta
protected

Definition at line 125 of file DstMdcTrack.h.

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

◆ m_trackId

int DstMdcTrack::m_trackId
protected

Definition at line 105 of file DstMdcTrack.h.

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

◆ m_x

double DstMdcTrack::m_x
protected

Definition at line 127 of file DstMdcTrack.h.

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

◆ m_y

double DstMdcTrack::m_y
protected

Definition at line 128 of file DstMdcTrack.h.

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

◆ m_z

double DstMdcTrack::m_z
protected

Definition at line 129 of file DstMdcTrack.h.

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


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