BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TMdcTrack.cxx
Go to the documentation of this file.
1
#include "RootEventData/TMdcTrack.h"
2
#include <cmath>
3
4
using namespace
std
;
5
6
ClassImp
(
TMdcTrack
);
7
8
//************************************************
9
//
10
TMdcTrack::TMdcTrack
() { Clear(); }
11
//************************************************
12
//
13
TMdcTrack::~TMdcTrack
() { Clear(); }
14
Int_t
TMdcTrack::charge
()
const
{
15
Int_t
charge
;
16
Double_t temp = m_helix[2];
17
if
( temp > 0.0000000001 )
charge
= 1;
18
else
if
( temp < -0.0000000001 )
charge
= -1;
19
else
charge
= 0;
20
return
charge
;
21
}
22
23
Double_t
TMdcTrack::x
()
const
{
return
m_helix[0] *
cos
( m_helix[1] ); }
24
25
Double_t
TMdcTrack::y
()
const
{
return
m_helix[0] *
sin
( m_helix[1] ); }
26
27
Double_t
TMdcTrack::z
()
const
{
return
m_helix[3]; }
28
29
Double_t
TMdcTrack::r
()
const
{
30
// return sqrt(x()*x()+y()*y());
31
return
fabs( m_helix[0] );
32
}
33
34
Double_t
TMdcTrack::pxy
()
const
{
35
if
( m_helix[2] != 0 )
return
1. / fabs( m_helix[2] );
36
else
return
0.;
37
}
38
39
Double_t
TMdcTrack::px
()
const
{
return
pxy
() * ( -
sin
( m_helix[1] ) ); }
40
41
Double_t
TMdcTrack::py
()
const
{
return
pxy
() *
cos
( m_helix[1] ); }
42
43
Double_t
TMdcTrack::pz
()
const
{
return
pxy
() * m_helix[4]; }
44
45
Double_t
TMdcTrack::p
()
const
{
46
// return sqrt(px()*px() + py()*py() + pz()*pz());
47
return
pxy
() * sqrt( 1. + m_helix[4] * m_helix[4] );
48
}
49
50
Double_t
TMdcTrack::theta
()
const
{
return
acos(
pz
() /
p
() ); }
51
52
Double_t
TMdcTrack::phi
()
const
{
return
atan2(
py
(),
px
() ); }
53
54
void
TMdcTrack::setHelix
(
const
Double_t
helix
[5] ) {
55
for
( Int_t i = 0; i < 5; i++ ) { m_helix[i] =
helix
[i]; }
56
}
57
58
void
TMdcTrack::setErr
(
const
Double_t er[15] ) {
59
for
( Int_t i = 0; i < 15; i++ ) { m_err[i] = er[i]; }
60
}
sin
double sin(const BesAngle a)
Definition
InstallArea/x86_64-el9-gcc13-dbg/include/MdcGeom/BesAngle.h:185
cos
double cos(const BesAngle a)
Definition
InstallArea/x86_64-el9-gcc13-dbg/include/MdcGeom/BesAngle.h:187
ClassImp
ClassImp(TMdcTrack)
TMdcTrack
Definition
Event/RootEventData/include/RootEventData/TMdcTrack.h:6
TMdcTrack::~TMdcTrack
~TMdcTrack()
Definition
TMdcTrack.cxx:13
TMdcTrack::pxy
Double_t pxy() const
Definition
TMdcTrack.cxx:34
TMdcTrack::charge
Int_t charge() const
Definition
TMdcTrack.cxx:14
TMdcTrack::pz
Double_t pz() const
Definition
TMdcTrack.cxx:43
TMdcTrack::phi
Double_t phi() const
Definition
TMdcTrack.cxx:52
TMdcTrack::x
Double_t x() const
Definition
TMdcTrack.cxx:23
TMdcTrack::py
Double_t py() const
Definition
TMdcTrack.cxx:41
TMdcTrack::px
Double_t px() const
Definition
TMdcTrack.cxx:39
TMdcTrack::z
Double_t z() const
Definition
TMdcTrack.cxx:27
TMdcTrack::p
Double_t p() const
Definition
TMdcTrack.cxx:45
TMdcTrack::helix
Double_t helix(Int_t i) const
Definition
Event/RootEventData/include/RootEventData/TMdcTrack.h:14
TMdcTrack::y
Double_t y() const
Definition
TMdcTrack.cxx:25
TMdcTrack::TMdcTrack
TMdcTrack()
Definition
TMdcTrack.cxx:10
TMdcTrack::theta
Double_t theta() const
Definition
TMdcTrack.cxx:50
TMdcTrack::setErr
void setErr(const Double_t err[15])
Definition
TMdcTrack.cxx:58
TMdcTrack::setHelix
void setHelix(const Double_t helix[5])
Definition
TMdcTrack.cxx:54
TMdcTrack::r
Double_t r() const
Definition
TMdcTrack.cxx:29
std
Definition
x86_64-el9-gcc13-dbg/Event/RootEventData/RootEventDataDict.cxx:101
8.0.0
BOSS_Source
Event
RootEventData
src
TMdcTrack.cxx
Generated by
1.16.1