CGEM BOSS 6.6.5.g
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
 
const int nCgemXCluster () const
 
const int nCgemVCluster () 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)
 
void setNCgemXCluster (const int n)
 
void setNCgemVCluster (const int n)
 

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_nCgemXClusters
 
int m_nCgemVClusters
 
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),
16 m_nlayer(0),
17 m_firstLayer(-1),
18 m_lastLayer(-1),
19 m_pxy(0),
20 m_px(0),
21 m_py(0),
22 m_pz(0),
23 m_p(0),
24 m_theta(0),
25 m_phi(0),
26 m_x(0),
27 m_y(0),
28 m_z(0),
29 m_r(0)
30 {
31 for(int i=0;i<5;i++) m_helix[i] = 0;
32 for(int j=0;j<15;j++) m_err[j] = 999;
33 for(int k=0;k<3;k++) m_poca[k] = 0;
34 }
double m_theta
Definition: DstMdcTrack.h:131
double m_x
Definition: DstMdcTrack.h:133
double m_helix[5]
Definition: DstMdcTrack.h:111
double m_y
Definition: DstMdcTrack.h:134
HepVector m_a
Definition: DstMdcTrack.h:115
double m_z
Definition: DstMdcTrack.h:135
double m_px
Definition: DstMdcTrack.h:127
HepPoint3D m_poca3D
Definition: DstMdcTrack.h:114
double m_r
Definition: DstMdcTrack.h:136
double m_chi2
Definition: DstMdcTrack.h:118
HepSymMatrix m_Ea
Definition: DstMdcTrack.h:116
double m_pz
Definition: DstMdcTrack.h:129
int m_firstLayer
Definition: DstMdcTrack.h:123
double m_pxy
Definition: DstMdcTrack.h:126
double m_p
Definition: DstMdcTrack.h:130
int m_nCgemXClusters
Definition: DstMdcTrack.h:121
double m_err[15]
Definition: DstMdcTrack.h:112
double m_phi
Definition: DstMdcTrack.h:132
int m_nCgemVClusters
Definition: DstMdcTrack.h:122
double m_poca[3]
Definition: DstMdcTrack.h:113
double m_py
Definition: DstMdcTrack.h:128

◆ DstMdcTrack() [2/2]

DstMdcTrack::DstMdcTrack ( const DstMdcTrack other)

Definition at line 36 of file DstMdcTrack.cxx.

37 : m_trackId(other.m_trackId),
38 m_charge(other.m_charge),
39 m_poca3D(other.m_poca3D),
40 m_a(other.m_a),
41 m_Ea(other.m_Ea),
42 m_stat(other.m_stat),
43 m_chi2(other.m_chi2),
44 m_ndof(other.m_ndof),
45 m_nster(other.m_nster),
46 m_nCgemXClusters(other.m_nCgemXClusters),
47 m_nCgemVClusters(other.m_nCgemVClusters),
48 m_nlayer(other.m_nlayer),
49 m_firstLayer(other.m_firstLayer),
50 m_lastLayer(other.m_lastLayer),
51 m_pxy(other.m_pxy),
52 m_px(other.m_px),
53 m_py(other.m_py),
54 m_pz(other.m_pz),
55 m_p(other.m_p),
56 m_theta(other.m_theta),
57 m_phi(other.m_phi),
58 m_x(other.m_x),
59 m_y(other.m_y),
60 m_z(other.m_z),
61 m_r(other.m_r)
62 {
63 for(int i=0;i<5;i++) m_helix[i] = (other.m_helix)[i];
64 for(int j=0;j<15;j++) m_err[j] = (other.m_err)[j];
65 for(int k=0;k<3;k++) m_poca[k] = (other.m_poca)[k];
66 }
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:283

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 161 of file DstMdcTrack.cxx.

161 {
162 /*
163 HepSymMatrix ea(5);
164 for(int i = 0, k = 0; i < 5; i++) {
165 for(int j = 0; j <= i; j++) {
166 ea[i][j] = m_err[k++];
167 ea[j][i] = ea[i][j];
168 }
169 }
170 return ea;
171 */
172 return m_Ea;
173 }

Referenced by TrackPool::AddTrack(), MdcTrkRecon::dumpTdsTrack(), Gam4pikp::execute(), Rhopi::execute(), DQAKsKpi::execute(), DQASelHadron::execute(), SD0Tag::execute(), BFieldCorr::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; }

◆ nCgemVCluster()

const int DstMdcTrack::nCgemVCluster ( ) const
inline

Definition at line 73 of file DstMdcTrack.h.

73{ return m_nCgemVClusters; }

◆ nCgemXCluster()

const int DstMdcTrack::nCgemXCluster ( ) const
inline

Definition at line 72 of file DstMdcTrack.h.

72{ return m_nCgemXClusters; }

◆ 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 69 of file DstMdcTrack.cxx.

69 {
70 if( &h != this ){
74 m_a = h.m_a;
75 m_Ea = h.m_Ea;
76 m_stat = h.m_stat;
77 m_chi2 = h.m_chi2;
78 m_ndof = h.m_ndof;
79 m_nster = h.m_nster;
85 m_pxy = h.m_pxy;
86 m_px = h.m_px;
87 m_py = h.m_py;
88 m_pz = h.m_pz;
89 m_p = h.m_p;
90 m_theta = h.m_theta;
91 m_phi = h.m_phi;
92 m_x = h.m_x;
93 m_y = h.m_y;
94 m_z = h.m_z;
95 m_r = h.m_r;
96
97 for(int i=0;i<5;i++) m_helix[i] = (h.m_helix)[i];
98 for(int j=0;j<15;j++) m_err[j] = (h.m_err)[j];
99 for(int k=0;k<3;k++) m_poca[k] = (h.m_poca)[k];
100 }
101 return *this;
102 }

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 175 of file DstMdcTrack.cxx.

175 {
176 return HepLorentzVector(p3(),sqrt(p3()*p3()+mass*mass));
177 }
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()

◆ setChi2()

◆ setError() [1/2]

void DstMdcTrack::setError ( const HepSymMatrix &  Ea)

Definition at line 145 of file DstMdcTrack.cxx.

145 {
146 int k = 0;
147 for (int i=0; i<5; i++){
148 for (int j=i; j<5; j++)
149 {
150 m_err[k] = err[i][j];
151 k++;
152 }
153 }
154 m_Ea = err;
155 }
const HepSymMatrix err() const

◆ setError() [2/2]

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

Definition at line 118 of file DstMdcTrack.cxx.

118 {
119 for (int i1=0; i1<15; i1++) {
120 m_err[i1] = err[i1];
121 }
122 for(int i=0, k=0; i<5; i++) {
123 for(int j=i; j<5; j++) {
124 m_Ea[i][j] = m_err[k++];
125 m_Ea[j][i] = m_Ea[i][j];
126 }
127 }
128 }

Referenced by BFieldCorr::execute(), TTrackManager::makeTds(), CgemLineFit::Store_Trk(), HoughFinder::storeRecTracks(), MdcTrack::storeTrack(), HoughFinder::storeTracks(), MdcTrackCnv::TObjectToDataObject(), RecMdcTrackCnv::TObjectToDataObject(), and CgemMdcFitAlg::updateTracks().

◆ setFirstLayer()

void DstMdcTrack::setFirstLayer ( const int  id)
inline

◆ setHelix() [1/2]

void DstMdcTrack::setHelix ( const HepVector &  a)

Definition at line 131 of file DstMdcTrack.cxx.

131 {
132 for(int i=0; i<5; i++){
133 m_helix[i] = helix[i];
134 }
135 m_a = helix;
136 }
const HepVector helix() const
......

◆ setHelix() [2/2]

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

◆ setLastLayer()

void DstMdcTrack::setLastLayer ( const int  id)
inline

◆ setNCgemVCluster()

void DstMdcTrack::setNCgemVCluster ( const int  n)
inline

Definition at line 105 of file DstMdcTrack.h.

const Int_t n

Referenced by MdcTrackCnv::TObjectToDataObject(), and RecMdcTrack::updateStatistics().

◆ setNCgemXCluster()

void DstMdcTrack::setNCgemXCluster ( const int  n)
inline

◆ setNdof()

void DstMdcTrack::setNdof ( const int  ndof)
inline

◆ setNlayer()

void DstMdcTrack::setNlayer ( const int  nlayer)
inline

◆ setNster()

void DstMdcTrack::setNster ( const int  ns)
inline

◆ setP()

◆ setPhi()

◆ setPoca() [1/2]

void DstMdcTrack::setPoca ( const HepPoint3D poca)

Definition at line 138 of file DstMdcTrack.cxx.

138 {
139 for(int i=0; i<3; i++){
140 m_poca[i] = poca[i];
141 }
142 m_poca3D = poca;
143 }
const HepPoint3D poca() const
Definition: DstMdcTrack.h:40

◆ setPoca() [2/2]

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

Definition at line 111 of file DstMdcTrack.cxx.

111 {
112 for(int i=0; i<3; i++){
113 m_poca[i] = poca[i];
114 m_poca3D[i] = poca[i];
115 }
116 }

Referenced by TTrackManager::makeTds(), HoughFinder::storeRecTracks(), MdcTrack::storeTrack(), HoughFinder::storeTracks(), MdcTrackCnv::TObjectToDataObject(), and CgemMdcFitAlg::updateTracks().

◆ setPx()

◆ setPxy()

◆ setPy()

◆ setPz()

◆ setR()

◆ setStat()

◆ setTheta()

◆ setTrackId()

◆ setX()

◆ setY()

◆ setZ()

◆ 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 115 of file DstMdcTrack.h.

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

◆ m_charge

int DstMdcTrack::m_charge
protected

Definition at line 110 of file DstMdcTrack.h.

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

◆ m_chi2

double DstMdcTrack::m_chi2
protected

Definition at line 118 of file DstMdcTrack.h.

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

◆ m_Ea

HepSymMatrix DstMdcTrack::m_Ea
protected

Definition at line 116 of file DstMdcTrack.h.

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

◆ m_err

double DstMdcTrack::m_err[15]
protected

Definition at line 112 of file DstMdcTrack.h.

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

◆ m_firstLayer

int DstMdcTrack::m_firstLayer
protected

Definition at line 123 of file DstMdcTrack.h.

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

◆ m_helix

double DstMdcTrack::m_helix[5]
protected

Definition at line 111 of file DstMdcTrack.h.

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

◆ m_lastLayer

int DstMdcTrack::m_lastLayer
protected

Definition at line 124 of file DstMdcTrack.h.

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

◆ m_nCgemVClusters

int DstMdcTrack::m_nCgemVClusters
protected

Definition at line 122 of file DstMdcTrack.h.

Referenced by nCgemVCluster(), operator=(), and setNCgemVCluster().

◆ m_nCgemXClusters

int DstMdcTrack::m_nCgemXClusters
protected

Definition at line 121 of file DstMdcTrack.h.

Referenced by nCgemXCluster(), operator=(), and setNCgemXCluster().

◆ m_ndof

int DstMdcTrack::m_ndof
protected

Definition at line 119 of file DstMdcTrack.h.

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

◆ m_nlayer

int DstMdcTrack::m_nlayer
protected

Definition at line 125 of file DstMdcTrack.h.

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

◆ m_nster

int DstMdcTrack::m_nster
protected

Definition at line 120 of file DstMdcTrack.h.

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

◆ m_p

double DstMdcTrack::m_p
protected

Definition at line 130 of file DstMdcTrack.h.

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

◆ m_phi

double DstMdcTrack::m_phi
protected

Definition at line 132 of file DstMdcTrack.h.

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

◆ m_poca

double DstMdcTrack::m_poca[3]
protected

Definition at line 113 of file DstMdcTrack.h.

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

◆ m_poca3D

HepPoint3D DstMdcTrack::m_poca3D
protected

Definition at line 114 of file DstMdcTrack.h.

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

◆ m_px

double DstMdcTrack::m_px
protected

Definition at line 127 of file DstMdcTrack.h.

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

◆ m_pxy

double DstMdcTrack::m_pxy
protected

Definition at line 126 of file DstMdcTrack.h.

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

◆ m_py

double DstMdcTrack::m_py
protected

Definition at line 128 of file DstMdcTrack.h.

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

◆ m_pz

double DstMdcTrack::m_pz
protected

Definition at line 129 of file DstMdcTrack.h.

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

◆ m_r

double DstMdcTrack::m_r
protected

Definition at line 136 of file DstMdcTrack.h.

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

◆ m_stat

int DstMdcTrack::m_stat
protected

Definition at line 117 of file DstMdcTrack.h.

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

◆ m_theta

double DstMdcTrack::m_theta
protected

Definition at line 131 of file DstMdcTrack.h.

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

◆ m_trackId

int DstMdcTrack::m_trackId
protected

Definition at line 109 of file DstMdcTrack.h.

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

◆ m_x

double DstMdcTrack::m_x
protected

Definition at line 133 of file DstMdcTrack.h.

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

◆ m_y

double DstMdcTrack::m_y
protected

Definition at line 134 of file DstMdcTrack.h.

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

◆ m_z

double DstMdcTrack::m_z
protected

Definition at line 135 of file DstMdcTrack.h.

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


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