BOSS
8.0.0
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
() { Clear(); }
9
//************************************************
10
//
11
TRecMdcTrack::~TRecMdcTrack
() { Clear(); }
12
13
Int_t
TRecMdcTrack::charge
()
const
{
14
Int_t
charge
;
15
Double_t temp = m_helix[2];
16
if
( temp > 0.0000000001 )
charge
= 1;
17
else
if
( temp < -0.0000000001 )
charge
= -1;
18
else
charge
= 0;
19
return
charge
;
20
}
21
22
Double_t
TRecMdcTrack::x
()
const
{
return
m_helix[0] *
cos
( m_helix[1] ); }
23
24
Double_t
TRecMdcTrack::y
()
const
{
return
m_helix[0] *
sin
( m_helix[1] ); }
25
26
Double_t
TRecMdcTrack::z
()
const
{
return
m_helix[3]; }
27
28
Double_t
TRecMdcTrack::r
()
const
{
return
sqrt(
x
() *
x
() +
y
() *
y
() ); }
29
30
Double_t
TRecMdcTrack::pxy
()
const
{
31
if
( m_helix[2] != 0 )
return
1. / fabs( m_helix[2] );
32
else
return
0.;
33
}
34
35
Double_t
TRecMdcTrack::px
()
const
{
return
pxy
() * ( -
sin
( m_helix[1] ) ); }
36
37
Double_t
TRecMdcTrack::py
()
const
{
return
pxy
() *
cos
( m_helix[1] ); }
38
39
Double_t
TRecMdcTrack::pz
()
const
{
return
pxy
() * m_helix[4]; }
40
41
Double_t
TRecMdcTrack::p
()
const
{
return
sqrt(
px
() *
px
() +
py
() *
py
() +
pz
() *
pz
() ); }
42
43
Double_t
TRecMdcTrack::theta
()
const
{
return
acos(
pz
() /
p
() ); }
44
45
Double_t
TRecMdcTrack::phi
()
const
{
return
atan2(
py
(),
px
() ); }
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(TRecMdcTrack)
TRecMdcTrack
Definition
Event/RootEventData/include/RootEventData/TRecMdcTrack.h:9
TRecMdcTrack::y
Double_t y() const
Definition
TRecMdcTrack.cxx:24
TRecMdcTrack::theta
Double_t theta() const
Definition
TRecMdcTrack.cxx:43
TRecMdcTrack::p
Double_t p() const
Definition
TRecMdcTrack.cxx:41
TRecMdcTrack::px
Double_t px() const
Definition
TRecMdcTrack.cxx:35
TRecMdcTrack::x
Double_t x() const
Definition
TRecMdcTrack.cxx:22
TRecMdcTrack::py
Double_t py() const
Definition
TRecMdcTrack.cxx:37
TRecMdcTrack::z
Double_t z() const
Definition
TRecMdcTrack.cxx:26
TRecMdcTrack::TRecMdcTrack
TRecMdcTrack()
Definition
TRecMdcTrack.cxx:8
TRecMdcTrack::pz
Double_t pz() const
Definition
TRecMdcTrack.cxx:39
TRecMdcTrack::pxy
Double_t pxy() const
Definition
TRecMdcTrack.cxx:30
TRecMdcTrack::phi
Double_t phi() const
Definition
TRecMdcTrack.cxx:45
TRecMdcTrack::r
Double_t r() const
Definition
TRecMdcTrack.cxx:28
TRecMdcTrack::~TRecMdcTrack
~TRecMdcTrack()
Definition
TRecMdcTrack.cxx:11
TRecMdcTrack::charge
Int_t charge() const
Definition
TRecMdcTrack.cxx:13
8.0.0
BOSS_Source
Event
RootEventData
src
TRecMdcTrack.cxx
Generated by
1.16.1