BOSS
7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
TRecMdcTrack.cxx
Go to the documentation of this file.
1
#include "
RootEventData/TRecMdcTrack.h
"
2
#include <cmath>
3
4
ClassImp
(
TRecMdcTrack
)
5
6
//************************************************
7
//
8
TRecMdcTrack::TRecMdcTrack
() {
9
Clear();
10
}
11
//************************************************
12
//
13
TRecMdcTrack::~TRecMdcTrack
(){
14
Clear();
15
}
16
17
18
Int_t
TRecMdcTrack::charge
()
const
{
19
Int_t
charge
;
20
Double_t temp = m_helix[2];
21
if
(temp >0.0000000001)
22
charge
= 1 ;
23
else
if
(temp < -0.0000000001)
24
charge
= -1;
25
else
26
charge
= 0;
27
return
charge
;
28
}
29
30
Double_t
TRecMdcTrack::x
()
const
{
31
return
m_helix[0]*
cos
(m_helix[1]);
32
}
33
34
Double_t
TRecMdcTrack::y
()
const
{
35
return
m_helix[0]*
sin
(m_helix[1]);
36
}
37
38
Double_t
TRecMdcTrack::z
()
const
{
39
return
m_helix[3];
40
}
41
42
Double_t
TRecMdcTrack::r
()
const
{
43
return
sqrt(
x
()*
x
()+
y
()*
y
());
44
}
45
46
Double_t
TRecMdcTrack::pxy
()
const
{
47
if
(m_helix[2] != 0)
48
return
1./fabs(m_helix[2]);
49
else
return
0.;
50
}
51
52
Double_t
TRecMdcTrack::px
()
const
{
53
return
pxy
()*(-
sin
(m_helix[1]));
54
}
55
56
Double_t
TRecMdcTrack::py
()
const
{
57
return
pxy
()*
cos
(m_helix[1]);
58
}
59
60
Double_t
TRecMdcTrack::pz
()
const
{
61
return
pxy
()*m_helix[4];
62
}
63
64
Double_t
TRecMdcTrack::p
()
const
{
65
return
sqrt(
px
()*
px
() +
py
()*
py
() +
pz
()*
pz
());
66
}
67
68
Double_t
TRecMdcTrack::theta
()
const
{
69
return
acos(
pz
()/
p
());
70
}
71
72
Double_t
TRecMdcTrack::phi
()
const
{
73
return
atan2(
py
(),
px
());
74
}
75
sin
double sin(const BesAngle a)
Definition
BesAngle.h:210
cos
double cos(const BesAngle a)
Definition
BesAngle.h:213
ClassImp
ClassImp(TRecMdcTrack) TRecMdcTrack
Definition
TRecMdcTrack.cxx:4
TRecMdcTrack.h
TRecMdcTrack
Definition
TRecMdcTrack.h:9
TRecMdcTrack::y
Double_t y() const
Definition
TRecMdcTrack.cxx:34
TRecMdcTrack::theta
Double_t theta() const
Definition
TRecMdcTrack.cxx:68
TRecMdcTrack::p
Double_t p() const
Definition
TRecMdcTrack.cxx:64
TRecMdcTrack::px
Double_t px() const
Definition
TRecMdcTrack.cxx:52
TRecMdcTrack::x
Double_t x() const
Definition
TRecMdcTrack.cxx:30
TRecMdcTrack::py
Double_t py() const
Definition
TRecMdcTrack.cxx:56
TRecMdcTrack::z
Double_t z() const
Definition
TRecMdcTrack.cxx:38
TRecMdcTrack::TRecMdcTrack
TRecMdcTrack()
TRecMdcTrack::pz
Double_t pz() const
Definition
TRecMdcTrack.cxx:60
TRecMdcTrack::pxy
Double_t pxy() const
Definition
TRecMdcTrack.cxx:46
TRecMdcTrack::phi
Double_t phi() const
Definition
TRecMdcTrack.cxx:72
TRecMdcTrack::r
Double_t r() const
Definition
TRecMdcTrack.cxx:42
TRecMdcTrack::~TRecMdcTrack
~TRecMdcTrack()
Definition
TRecMdcTrack.cxx:13
TRecMdcTrack::charge
Int_t charge() const
Definition
TRecMdcTrack.cxx:18
7.1.1
Event
RootEventData
RootEventData-00-04-01
src
TRecMdcTrack.cxx
Generated by
1.12.0