BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
TMdcTrack Class Reference

#include <TMdcTrack.h>

+ Inheritance diagram for TMdcTrack:

Public Member Functions

 TMdcTrack ()
 
 ~TMdcTrack ()
 
const Int_t trackId () const
 
const Double_t helix (Int_t i) const
 
const Int_t stat () const
 
const Double_t chi2 () const
 
const Int_t ndof () const
 
const Double_t err (Int_t i) const
 
const Int_t nster () const
 
const Int_t nlayer () const
 
const Int_t firstLayer () const
 
const Int_t lastLayer () const
 
const Double_t x () const
 
const Double_t y () const
 
const Double_t z () const
 
const Double_t r () const
 
const Int_t charge () const
 
const Double_t pxy () const
 
const Double_t px () const
 
const Double_t py () const
 
const Double_t pz () const
 
const Double_t p () const
 
const Double_t theta () const
 
const Double_t phi () const
 
void setHelix (const Double_t helix[5])
 
void setErr (const Double_t err[15])
 
void setTrackId (const Int_t trackId)
 
void setStat (const Int_t stat)
 
void setChi2 (const Double_t chi)
 
void setNdof (const Int_t ndof)
 
void setNster (const Int_t ns)
 
void setNlayer (const Int_t nlayer)
 
void setFirstLayer (const Int_t fL)
 
void setLastLayer (const Int_t lL)
 
 TMdcTrack ()
 
 ~TMdcTrack ()
 
const Int_t trackId () const
 
const Double_t helix (Int_t i) const
 
const Int_t stat () const
 
const Double_t chi2 () const
 
const Int_t ndof () const
 
const Double_t err (Int_t i) const
 
const Int_t nster () const
 
const Int_t nlayer () const
 
const Int_t firstLayer () const
 
const Int_t lastLayer () const
 
const Double_t x () const
 
const Double_t y () const
 
const Double_t z () const
 
const Double_t r () const
 
const Int_t charge () const
 
const Double_t pxy () const
 
const Double_t px () const
 
const Double_t py () const
 
const Double_t pz () const
 
const Double_t p () const
 
const Double_t theta () const
 
const Double_t phi () const
 
void setHelix (const Double_t helix[5])
 
void setErr (const Double_t err[15])
 
void setTrackId (const Int_t trackId)
 
void setStat (const Int_t stat)
 
void setChi2 (const Double_t chi)
 
void setNdof (const Int_t ndof)
 
void setNster (const Int_t ns)
 
void setNlayer (const Int_t nlayer)
 
void setFirstLayer (const Int_t fL)
 
void setLastLayer (const Int_t lL)
 

Detailed Description

Constructor & Destructor Documentation

◆ TMdcTrack() [1/2]

TMdcTrack::TMdcTrack ( )

◆ ~TMdcTrack() [1/2]

TMdcTrack::~TMdcTrack ( )

Definition at line 15 of file TMdcTrack.cxx.

15 {
16 Clear();
17 }

◆ TMdcTrack() [2/2]

TMdcTrack::TMdcTrack ( )

◆ ~TMdcTrack() [2/2]

TMdcTrack::~TMdcTrack ( )

Member Function Documentation

◆ charge() [1/2]

const Int_t TMdcTrack::charge ( ) const

Definition at line 18 of file TMdcTrack.cxx.

18 {
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 }
const Int_t charge() const
Definition: TMdcTrack.cxx:18

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

◆ charge() [2/2]

const Int_t TMdcTrack::charge ( ) const

◆ chi2() [1/2]

const Double_t TMdcTrack::chi2 ( ) const
inline

◆ chi2() [2/2]

const Double_t TMdcTrack::chi2 ( ) const
inline

Definition at line 16 of file InstallArea/include/RootEventData/RootEventData/TMdcTrack.h.

16{ return m_chi2; }

◆ err() [1/2]

const Double_t TMdcTrack::err ( Int_t  i) const
inline

Definition at line 18 of file Event/RootEventData/RootEventData-00-03-80/RootEventData/TMdcTrack.h.

18{ return m_err[i]; }

Referenced by MdcTrackCnv::TObjectToDataObject().

◆ err() [2/2]

const Double_t TMdcTrack::err ( Int_t  i) const
inline

Definition at line 18 of file InstallArea/include/RootEventData/RootEventData/TMdcTrack.h.

18{ return m_err[i]; }

◆ firstLayer() [1/2]

const Int_t TMdcTrack::firstLayer ( ) const
inline

Definition at line 21 of file Event/RootEventData/RootEventData-00-03-80/RootEventData/TMdcTrack.h.

21{ return m_firstLayer;}

◆ firstLayer() [2/2]

const Int_t TMdcTrack::firstLayer ( ) const
inline

Definition at line 21 of file InstallArea/include/RootEventData/RootEventData/TMdcTrack.h.

21{ return m_firstLayer;}

◆ helix() [1/2]

const Double_t TMdcTrack::helix ( Int_t  i) const
inline

Definition at line 14 of file Event/RootEventData/RootEventData-00-03-80/RootEventData/TMdcTrack.h.

14{ return m_helix[i]; }

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

◆ helix() [2/2]

const Double_t TMdcTrack::helix ( Int_t  i) const
inline

Definition at line 14 of file InstallArea/include/RootEventData/RootEventData/TMdcTrack.h.

14{ return m_helix[i]; }

◆ lastLayer() [1/2]

const Int_t TMdcTrack::lastLayer ( ) const
inline

Definition at line 22 of file Event/RootEventData/RootEventData-00-03-80/RootEventData/TMdcTrack.h.

22{ return m_lastLayer; }

◆ lastLayer() [2/2]

const Int_t TMdcTrack::lastLayer ( ) const
inline

Definition at line 22 of file InstallArea/include/RootEventData/RootEventData/TMdcTrack.h.

22{ return m_lastLayer; }

◆ ndof() [1/2]

const Int_t TMdcTrack::ndof ( ) const
inline

◆ ndof() [2/2]

const Int_t TMdcTrack::ndof ( ) const
inline

Definition at line 17 of file InstallArea/include/RootEventData/RootEventData/TMdcTrack.h.

17{ return m_ndof; }

◆ nlayer() [1/2]

const Int_t TMdcTrack::nlayer ( ) const
inline

◆ nlayer() [2/2]

const Int_t TMdcTrack::nlayer ( ) const
inline

Definition at line 20 of file InstallArea/include/RootEventData/RootEventData/TMdcTrack.h.

20{ return m_nlayer; }

◆ nster() [1/2]

const Int_t TMdcTrack::nster ( ) const
inline

◆ nster() [2/2]

const Int_t TMdcTrack::nster ( ) const
inline

Definition at line 19 of file InstallArea/include/RootEventData/RootEventData/TMdcTrack.h.

19{ return m_nster; }

◆ p() [1/2]

const Double_t TMdcTrack::p ( ) const

Definition at line 65 of file TMdcTrack.cxx.

65 {
66// return sqrt(px()*px() + py()*py() + pz()*pz());
67 return pxy()*sqrt(1. + m_helix[4]*m_helix[4]);
68 }
const Double_t pxy() const
Definition: TMdcTrack.cxx:47

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

◆ p() [2/2]

const Double_t TMdcTrack::p ( ) const

◆ phi() [1/2]

const Double_t TMdcTrack::phi ( ) const

Definition at line 74 of file TMdcTrack.cxx.

74 {
75 return atan2(py(),px());
76 }
const Double_t py() const
Definition: TMdcTrack.cxx:57
const Double_t px() const
Definition: TMdcTrack.cxx:53

Referenced by MdcTrackCnv::TObjectToDataObject().

◆ phi() [2/2]

const Double_t TMdcTrack::phi ( ) const

◆ px() [1/2]

const Double_t TMdcTrack::px ( ) const

Definition at line 53 of file TMdcTrack.cxx.

53 {
54 return pxy()*(-sin(m_helix[1]));
55 }
double sin(const BesAngle a)

Referenced by MdcTrackCnv::DataObjectToTObject(), phi(), and MdcTrackCnv::TObjectToDataObject().

◆ px() [2/2]

const Double_t TMdcTrack::px ( ) const

◆ pxy() [1/2]

const Double_t TMdcTrack::pxy ( ) const

Definition at line 47 of file TMdcTrack.cxx.

47 {
48 if(m_helix[2] != 0)
49 return 1./fabs(m_helix[2]);
50 else return 0.;
51 }

Referenced by p(), px(), py(), pz(), and MdcTrackCnv::TObjectToDataObject().

◆ pxy() [2/2]

const Double_t TMdcTrack::pxy ( ) const

◆ py() [1/2]

const Double_t TMdcTrack::py ( ) const

Definition at line 57 of file TMdcTrack.cxx.

57 {
58 return pxy()*cos(m_helix[1]);
59 }
double cos(const BesAngle a)

Referenced by MdcTrackCnv::DataObjectToTObject(), phi(), and MdcTrackCnv::TObjectToDataObject().

◆ py() [2/2]

const Double_t TMdcTrack::py ( ) const

◆ pz() [1/2]

const Double_t TMdcTrack::pz ( ) const

Definition at line 61 of file TMdcTrack.cxx.

61 {
62 return pxy()*m_helix[4];
63 }

Referenced by MdcTrackCnv::DataObjectToTObject(), theta(), and MdcTrackCnv::TObjectToDataObject().

◆ pz() [2/2]

const Double_t TMdcTrack::pz ( ) const

◆ r() [1/2]

const Double_t TMdcTrack::r ( ) const

Definition at line 42 of file TMdcTrack.cxx.

42 {
43// return sqrt(x()*x()+y()*y());
44 return fabs(m_helix[0]);
45 }

Referenced by MdcTrackCnv::TObjectToDataObject().

◆ r() [2/2]

const Double_t TMdcTrack::r ( ) const

◆ setChi2() [1/2]

void TMdcTrack::setChi2 ( const Double_t  chi)
inline

◆ setChi2() [2/2]

void TMdcTrack::setChi2 ( const Double_t  chi)
inline

Definition at line 43 of file InstallArea/include/RootEventData/RootEventData/TMdcTrack.h.

43{ m_chi2 = chi; }

◆ setErr() [1/2]

void TMdcTrack::setErr ( const Double_t  err[15])

Definition at line 84 of file TMdcTrack.cxx.

84 {
85 for (Int_t i=0;i<15;i++) {
86 m_err[i] = er[i];
87 }
88 }

Referenced by MdcTrackCnv::DataObjectToTObject().

◆ setErr() [2/2]

void TMdcTrack::setErr ( const Double_t  err[15])

◆ setFirstLayer() [1/2]

void TMdcTrack::setFirstLayer ( const Int_t  fL)
inline

Definition at line 47 of file Event/RootEventData/RootEventData-00-03-80/RootEventData/TMdcTrack.h.

47{ m_firstLayer = fL; }

Referenced by MdcTrackCnv::DataObjectToTObject().

◆ setFirstLayer() [2/2]

void TMdcTrack::setFirstLayer ( const Int_t  fL)
inline

Definition at line 47 of file InstallArea/include/RootEventData/RootEventData/TMdcTrack.h.

47{ m_firstLayer = fL; }

◆ setHelix() [1/2]

void TMdcTrack::setHelix ( const Double_t  helix[5])

Definition at line 78 of file TMdcTrack.cxx.

78 {
79 for(Int_t i=0; i<5; i++) {
80 m_helix[i] = helix[i];
81 }
82 }

Referenced by MdcTrackCnv::DataObjectToTObject().

◆ setHelix() [2/2]

void TMdcTrack::setHelix ( const Double_t  helix[5])

◆ setLastLayer() [1/2]

void TMdcTrack::setLastLayer ( const Int_t  lL)
inline

Definition at line 48 of file Event/RootEventData/RootEventData-00-03-80/RootEventData/TMdcTrack.h.

48{ m_lastLayer = lL; }

Referenced by MdcTrackCnv::DataObjectToTObject().

◆ setLastLayer() [2/2]

void TMdcTrack::setLastLayer ( const Int_t  lL)
inline

Definition at line 48 of file InstallArea/include/RootEventData/RootEventData/TMdcTrack.h.

48{ m_lastLayer = lL; }

◆ setNdof() [1/2]

void TMdcTrack::setNdof ( const Int_t  ndof)
inline

◆ setNdof() [2/2]

void TMdcTrack::setNdof ( const Int_t  ndof)
inline

Definition at line 44 of file InstallArea/include/RootEventData/RootEventData/TMdcTrack.h.

44{ m_ndof = ndof; }

◆ setNlayer() [1/2]

void TMdcTrack::setNlayer ( const Int_t  nlayer)
inline

◆ setNlayer() [2/2]

void TMdcTrack::setNlayer ( const Int_t  nlayer)
inline

Definition at line 46 of file InstallArea/include/RootEventData/RootEventData/TMdcTrack.h.

46{ m_nlayer= nlayer; }

◆ setNster() [1/2]

void TMdcTrack::setNster ( const Int_t  ns)
inline

Definition at line 45 of file Event/RootEventData/RootEventData-00-03-80/RootEventData/TMdcTrack.h.

45{ m_nster = ns; }
#define ns(x)
Definition: xmltok.c:1504

Referenced by MdcTrackCnv::DataObjectToTObject().

◆ setNster() [2/2]

void TMdcTrack::setNster ( const Int_t  ns)
inline

Definition at line 45 of file InstallArea/include/RootEventData/RootEventData/TMdcTrack.h.

45{ m_nster = ns; }

◆ setStat() [1/2]

void TMdcTrack::setStat ( const Int_t  stat)
inline

◆ setStat() [2/2]

void TMdcTrack::setStat ( const Int_t  stat)
inline

Definition at line 42 of file InstallArea/include/RootEventData/RootEventData/TMdcTrack.h.

42{ m_stat = stat ; }

◆ setTrackId() [1/2]

void TMdcTrack::setTrackId ( const Int_t  trackId)
inline

◆ setTrackId() [2/2]

void TMdcTrack::setTrackId ( const Int_t  trackId)
inline

Definition at line 41 of file InstallArea/include/RootEventData/RootEventData/TMdcTrack.h.

41{ m_trackId = trackId; }

◆ stat() [1/2]

const Int_t TMdcTrack::stat ( ) const
inline

◆ stat() [2/2]

const Int_t TMdcTrack::stat ( ) const
inline

Definition at line 15 of file InstallArea/include/RootEventData/RootEventData/TMdcTrack.h.

15{ return m_stat; }

◆ theta() [1/2]

const Double_t TMdcTrack::theta ( ) const

Definition at line 70 of file TMdcTrack.cxx.

70 {
71 return acos(pz()/p());
72 }
const Double_t pz() const
Definition: TMdcTrack.cxx:61
const Double_t p() const
Definition: TMdcTrack.cxx:65

Referenced by MdcTrackCnv::TObjectToDataObject().

◆ theta() [2/2]

const Double_t TMdcTrack::theta ( ) const

◆ trackId() [1/2]

const Int_t TMdcTrack::trackId ( ) const
inline

◆ trackId() [2/2]

const Int_t TMdcTrack::trackId ( ) const
inline

Definition at line 13 of file InstallArea/include/RootEventData/RootEventData/TMdcTrack.h.

13{ return m_trackId; }

◆ x() [1/2]

const Double_t TMdcTrack::x ( ) const

Definition at line 30 of file TMdcTrack.cxx.

30 {
31 return m_helix[0]*cos(m_helix[1]);
32 }

Referenced by MdcTrackCnv::TObjectToDataObject().

◆ x() [2/2]

const Double_t TMdcTrack::x ( ) const

◆ y() [1/2]

const Double_t TMdcTrack::y ( ) const

Definition at line 34 of file TMdcTrack.cxx.

34 {
35 return m_helix[0]*sin(m_helix[1]);
36 }

Referenced by MdcTrackCnv::TObjectToDataObject().

◆ y() [2/2]

const Double_t TMdcTrack::y ( ) const

◆ z() [1/2]

const Double_t TMdcTrack::z ( ) const

Definition at line 38 of file TMdcTrack.cxx.

38 {
39 return m_helix[3];
40 }

Referenced by MdcTrackCnv::TObjectToDataObject().

◆ z() [2/2]

const Double_t TMdcTrack::z ( ) const

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