CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
TCgemTrack Class Reference

#include <TCgemTrack.h>

+ Inheritance diagram for TCgemTrack:

Public Member Functions

 TCgemTrack ()
 
 ~TCgemTrack ()
 
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 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 setFirstLayer (const Int_t fL)
 
void setLastLayer (const Int_t lL)
 
 TCgemTrack ()
 
 ~TCgemTrack ()
 
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 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 setFirstLayer (const Int_t fL)
 
void setLastLayer (const Int_t lL)
 
 TCgemTrack ()
 
 ~TCgemTrack ()
 
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 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 setFirstLayer (const Int_t fL)
 
void setLastLayer (const Int_t lL)
 

Detailed Description

Constructor & Destructor Documentation

◆ TCgemTrack() [1/3]

TCgemTrack::TCgemTrack ( )

◆ ~TCgemTrack() [1/3]

TCgemTrack::~TCgemTrack ( )

Definition at line 15 of file bak_RootEventData-00-05-12/src/TCgemTrack.cxx.

15 {
16 Clear();
17 }

◆ TCgemTrack() [2/3]

TCgemTrack::TCgemTrack ( )

◆ ~TCgemTrack() [2/3]

TCgemTrack::~TCgemTrack ( )

◆ TCgemTrack() [3/3]

TCgemTrack::TCgemTrack ( )

◆ ~TCgemTrack() [3/3]

TCgemTrack::~TCgemTrack ( )

Member Function Documentation

◆ charge() [1/3]

const Int_t TCgemTrack::charge ( ) const

Definition at line 18 of file bak_RootEventData-00-05-12/src/TCgemTrack.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 }

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

◆ charge() [2/3]

const Int_t TCgemTrack::charge ( ) const

◆ charge() [3/3]

const Int_t TCgemTrack::charge ( ) const

◆ chi2() [1/3]

const Double_t TCgemTrack::chi2 ( ) const
inline

◆ chi2() [2/3]

const Double_t TCgemTrack::chi2 ( ) const
inline

Definition at line 16 of file Event/RootEventData/RootEventData-00-05-13/RootEventData/TCgemTrack.h.

16{ return m_chi2; }

◆ chi2() [3/3]

const Double_t TCgemTrack::chi2 ( ) const
inline

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

16{ return m_chi2; }

◆ err() [1/3]

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

◆ err() [2/3]

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

Definition at line 18 of file Event/RootEventData/RootEventData-00-05-13/RootEventData/TCgemTrack.h.

18{ return m_err[i]; }

◆ err() [3/3]

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

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

18{ return m_err[i]; }

◆ firstLayer() [1/3]

const Int_t TCgemTrack::firstLayer ( ) const
inline

Definition at line 19 of file Event/RootEventData/bak_RootEventData-00-05-12/RootEventData/TCgemTrack.h.

19{ return m_firstLayer;}

◆ firstLayer() [2/3]

const Int_t TCgemTrack::firstLayer ( ) const
inline

Definition at line 19 of file Event/RootEventData/RootEventData-00-05-13/RootEventData/TCgemTrack.h.

19{ return m_firstLayer;}

◆ firstLayer() [3/3]

const Int_t TCgemTrack::firstLayer ( ) const
inline

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

19{ return m_firstLayer;}

◆ helix() [1/3]

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

◆ helix() [2/3]

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

Definition at line 14 of file Event/RootEventData/RootEventData-00-05-13/RootEventData/TCgemTrack.h.

14{ return m_helix[i]; }

◆ helix() [3/3]

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

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

14{ return m_helix[i]; }

◆ lastLayer() [1/3]

const Int_t TCgemTrack::lastLayer ( ) const
inline

Definition at line 20 of file Event/RootEventData/bak_RootEventData-00-05-12/RootEventData/TCgemTrack.h.

20{ return m_lastLayer; }

◆ lastLayer() [2/3]

const Int_t TCgemTrack::lastLayer ( ) const
inline

Definition at line 20 of file Event/RootEventData/RootEventData-00-05-13/RootEventData/TCgemTrack.h.

20{ return m_lastLayer; }

◆ lastLayer() [3/3]

const Int_t TCgemTrack::lastLayer ( ) const
inline

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

20{ return m_lastLayer; }

◆ ndof() [1/3]

const Int_t TCgemTrack::ndof ( ) const
inline

◆ ndof() [2/3]

const Int_t TCgemTrack::ndof ( ) const
inline

Definition at line 17 of file Event/RootEventData/RootEventData-00-05-13/RootEventData/TCgemTrack.h.

17{ return m_ndof; }

◆ ndof() [3/3]

const Int_t TCgemTrack::ndof ( ) const
inline

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

17{ return m_ndof; }

◆ p() [1/3]

const Double_t TCgemTrack::p ( ) const

Definition at line 65 of file bak_RootEventData-00-05-12/src/TCgemTrack.cxx.

65 {
66// return sqrt(px()*px() + py()*py() + pz()*pz());
67 return pxy()*sqrt(1. + m_helix[4]*m_helix[4]);
68 }

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

◆ p() [2/3]

const Double_t TCgemTrack::p ( ) const

◆ p() [3/3]

const Double_t TCgemTrack::p ( ) const

◆ phi() [1/3]

const Double_t TCgemTrack::phi ( ) const

Definition at line 74 of file bak_RootEventData-00-05-12/src/TCgemTrack.cxx.

74 {
75 return atan2(py(),px());
76 }

Referenced by CgemTrackCnv::TObjectToDataObject().

◆ phi() [2/3]

const Double_t TCgemTrack::phi ( ) const

◆ phi() [3/3]

const Double_t TCgemTrack::phi ( ) const

◆ px() [1/3]

const Double_t TCgemTrack::px ( ) const

Definition at line 53 of file bak_RootEventData-00-05-12/src/TCgemTrack.cxx.

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

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

◆ px() [2/3]

const Double_t TCgemTrack::px ( ) const

◆ px() [3/3]

const Double_t TCgemTrack::px ( ) const

◆ pxy() [1/3]

const Double_t TCgemTrack::pxy ( ) const

Definition at line 47 of file bak_RootEventData-00-05-12/src/TCgemTrack.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 CgemTrackCnv::TObjectToDataObject().

◆ pxy() [2/3]

const Double_t TCgemTrack::pxy ( ) const

◆ pxy() [3/3]

const Double_t TCgemTrack::pxy ( ) const

◆ py() [1/3]

const Double_t TCgemTrack::py ( ) const

Definition at line 57 of file bak_RootEventData-00-05-12/src/TCgemTrack.cxx.

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

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

◆ py() [2/3]

const Double_t TCgemTrack::py ( ) const

◆ py() [3/3]

const Double_t TCgemTrack::py ( ) const

◆ pz() [1/3]

const Double_t TCgemTrack::pz ( ) const

Definition at line 61 of file bak_RootEventData-00-05-12/src/TCgemTrack.cxx.

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

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

◆ pz() [2/3]

const Double_t TCgemTrack::pz ( ) const

◆ pz() [3/3]

const Double_t TCgemTrack::pz ( ) const

◆ r() [1/3]

const Double_t TCgemTrack::r ( ) const

Definition at line 42 of file bak_RootEventData-00-05-12/src/TCgemTrack.cxx.

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

Referenced by CgemTrackCnv::TObjectToDataObject().

◆ r() [2/3]

const Double_t TCgemTrack::r ( ) const

◆ r() [3/3]

const Double_t TCgemTrack::r ( ) const

◆ setChi2() [1/3]

void TCgemTrack::setChi2 ( const Double_t  chi)
inline

◆ setChi2() [2/3]

void TCgemTrack::setChi2 ( const Double_t  chi)
inline

Definition at line 41 of file Event/RootEventData/RootEventData-00-05-13/RootEventData/TCgemTrack.h.

41{ m_chi2 = chi; }

◆ setChi2() [3/3]

void TCgemTrack::setChi2 ( const Double_t  chi)
inline

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

41{ m_chi2 = chi; }

◆ setErr() [1/3]

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

Definition at line 84 of file bak_RootEventData-00-05-12/src/TCgemTrack.cxx.

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

Referenced by CgemTrackCnv::DataObjectToTObject().

◆ setErr() [2/3]

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

◆ setErr() [3/3]

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

◆ setFirstLayer() [1/3]

void TCgemTrack::setFirstLayer ( const Int_t  fL)
inline

◆ setFirstLayer() [2/3]

void TCgemTrack::setFirstLayer ( const Int_t  fL)
inline

Definition at line 43 of file Event/RootEventData/RootEventData-00-05-13/RootEventData/TCgemTrack.h.

43{ m_firstLayer = fL; }

◆ setFirstLayer() [3/3]

void TCgemTrack::setFirstLayer ( const Int_t  fL)
inline

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

43{ m_firstLayer = fL; }

◆ setHelix() [1/3]

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

Definition at line 78 of file bak_RootEventData-00-05-12/src/TCgemTrack.cxx.

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

Referenced by CgemTrackCnv::DataObjectToTObject().

◆ setHelix() [2/3]

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

◆ setHelix() [3/3]

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

◆ setLastLayer() [1/3]

void TCgemTrack::setLastLayer ( const Int_t  lL)
inline

◆ setLastLayer() [2/3]

void TCgemTrack::setLastLayer ( const Int_t  lL)
inline

Definition at line 44 of file Event/RootEventData/RootEventData-00-05-13/RootEventData/TCgemTrack.h.

44{ m_lastLayer = lL; }

◆ setLastLayer() [3/3]

void TCgemTrack::setLastLayer ( const Int_t  lL)
inline

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

44{ m_lastLayer = lL; }

◆ setNdof() [1/3]

void TCgemTrack::setNdof ( const Int_t  ndof)
inline

◆ setNdof() [2/3]

void TCgemTrack::setNdof ( const Int_t  ndof)
inline

◆ setNdof() [3/3]

void TCgemTrack::setNdof ( const Int_t  ndof)
inline

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

42{ m_ndof = ndof; }

◆ setStat() [1/3]

void TCgemTrack::setStat ( const Int_t  stat)
inline

◆ setStat() [2/3]

void TCgemTrack::setStat ( const Int_t  stat)
inline

◆ setStat() [3/3]

void TCgemTrack::setStat ( const Int_t  stat)
inline

Definition at line 40 of file InstallArea/include/RootEventData/RootEventData/TCgemTrack.h.

40{ m_stat = stat ; }

◆ setTrackId() [1/3]

void TCgemTrack::setTrackId ( const Int_t  trackId)
inline

◆ setTrackId() [2/3]

void TCgemTrack::setTrackId ( const Int_t  trackId)
inline

◆ setTrackId() [3/3]

void TCgemTrack::setTrackId ( const Int_t  trackId)
inline

Definition at line 39 of file InstallArea/include/RootEventData/RootEventData/TCgemTrack.h.

39{ m_trackId = trackId; }

◆ stat() [1/3]

const Int_t TCgemTrack::stat ( ) const
inline

◆ stat() [2/3]

const Int_t TCgemTrack::stat ( ) const
inline

Definition at line 15 of file Event/RootEventData/RootEventData-00-05-13/RootEventData/TCgemTrack.h.

15{ return m_stat; }

◆ stat() [3/3]

const Int_t TCgemTrack::stat ( ) const
inline

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

15{ return m_stat; }

◆ theta() [1/3]

const Double_t TCgemTrack::theta ( ) const

Definition at line 70 of file bak_RootEventData-00-05-12/src/TCgemTrack.cxx.

70 {
71 return acos(pz()/p());
72 }

Referenced by CgemTrackCnv::TObjectToDataObject().

◆ theta() [2/3]

const Double_t TCgemTrack::theta ( ) const

◆ theta() [3/3]

const Double_t TCgemTrack::theta ( ) const

◆ trackId() [1/3]

const Int_t TCgemTrack::trackId ( ) const
inline

◆ trackId() [2/3]

const Int_t TCgemTrack::trackId ( ) const
inline

Definition at line 13 of file Event/RootEventData/RootEventData-00-05-13/RootEventData/TCgemTrack.h.

13{ return m_trackId; }

◆ trackId() [3/3]

const Int_t TCgemTrack::trackId ( ) const
inline

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

13{ return m_trackId; }

◆ x() [1/3]

const Double_t TCgemTrack::x ( ) const

Definition at line 30 of file bak_RootEventData-00-05-12/src/TCgemTrack.cxx.

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

Referenced by CgemTrackCnv::TObjectToDataObject().

◆ x() [2/3]

const Double_t TCgemTrack::x ( ) const

◆ x() [3/3]

const Double_t TCgemTrack::x ( ) const

◆ y() [1/3]

const Double_t TCgemTrack::y ( ) const

Definition at line 34 of file bak_RootEventData-00-05-12/src/TCgemTrack.cxx.

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

Referenced by CgemTrackCnv::TObjectToDataObject().

◆ y() [2/3]

const Double_t TCgemTrack::y ( ) const

◆ y() [3/3]

const Double_t TCgemTrack::y ( ) const

◆ z() [1/3]

const Double_t TCgemTrack::z ( ) const

Definition at line 38 of file bak_RootEventData-00-05-12/src/TCgemTrack.cxx.

38 {
39 return m_helix[3];
40 }

Referenced by CgemTrackCnv::TObjectToDataObject().

◆ z() [2/3]

const Double_t TCgemTrack::z ( ) const

◆ z() [3/3]

const Double_t TCgemTrack::z ( ) const

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