CGEM BOSS 6.6.5.g
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)
 

Detailed Description

Definition at line 6 of file TCgemTrack.h.

Constructor & Destructor Documentation

◆ TCgemTrack()

TCgemTrack::TCgemTrack ( )

◆ ~TCgemTrack()

TCgemTrack::~TCgemTrack ( )

Definition at line 15 of file TCgemTrack.cxx.

15 {
16 Clear();
17 }

Member Function Documentation

◆ charge()

const Int_t TCgemTrack::charge ( ) const

Definition at line 18 of file 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 }
const Int_t charge() const
Definition: TCgemTrack.cxx:18

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

◆ chi2()

const Double_t TCgemTrack::chi2 ( ) const
inline

Definition at line 16 of file TCgemTrack.h.

16{ return m_chi2; }

Referenced by CgemTrackCnv::TObjectToDataObject().

◆ err()

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

Definition at line 18 of file TCgemTrack.h.

18{ return m_err[i]; }

Referenced by CgemTrackCnv::TObjectToDataObject().

◆ firstLayer()

const Int_t TCgemTrack::firstLayer ( ) const
inline

Definition at line 19 of file TCgemTrack.h.

19{ return m_firstLayer;}

◆ helix()

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

Definition at line 14 of file TCgemTrack.h.

14{ return m_helix[i]; }

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

◆ lastLayer()

const Int_t TCgemTrack::lastLayer ( ) const
inline

Definition at line 20 of file TCgemTrack.h.

20{ return m_lastLayer; }

◆ ndof()

const Int_t TCgemTrack::ndof ( ) const
inline

Definition at line 17 of file TCgemTrack.h.

17{ return m_ndof; }

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

◆ p()

const Double_t TCgemTrack::p ( ) const

Definition at line 65 of file TCgemTrack.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: TCgemTrack.cxx:47

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

◆ phi()

const Double_t TCgemTrack::phi ( ) const

Definition at line 74 of file TCgemTrack.cxx.

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

Referenced by CgemTrackCnv::TObjectToDataObject().

◆ px()

const Double_t TCgemTrack::px ( ) const

Definition at line 53 of file TCgemTrack.cxx.

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

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

◆ pxy()

const Double_t TCgemTrack::pxy ( ) const

Definition at line 47 of file 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().

◆ py()

const Double_t TCgemTrack::py ( ) const

Definition at line 57 of file TCgemTrack.cxx.

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

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

◆ pz()

const Double_t TCgemTrack::pz ( ) const

Definition at line 61 of file TCgemTrack.cxx.

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

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

◆ r()

const Double_t TCgemTrack::r ( ) const

Definition at line 42 of file TCgemTrack.cxx.

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

Referenced by CgemTrackCnv::TObjectToDataObject().

◆ setChi2()

void TCgemTrack::setChi2 ( const Double_t  chi)
inline

Definition at line 41 of file TCgemTrack.h.

41{ m_chi2 = chi; }

Referenced by CgemTrackCnv::DataObjectToTObject().

◆ setErr()

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

Definition at line 84 of file TCgemTrack.cxx.

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

Referenced by CgemTrackCnv::DataObjectToTObject().

◆ setFirstLayer()

void TCgemTrack::setFirstLayer ( const Int_t  fL)
inline

Definition at line 43 of file TCgemTrack.h.

43{ m_firstLayer = fL; }

Referenced by CgemTrackCnv::DataObjectToTObject().

◆ setHelix()

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

Definition at line 78 of file TCgemTrack.cxx.

78 {
79 for(Int_t i=0; i<5; i++) {
80 m_helix[i] = helix[i];
81 }
82 }
const Double_t helix(Int_t i) const
Definition: TCgemTrack.h:14

Referenced by CgemTrackCnv::DataObjectToTObject().

◆ setLastLayer()

void TCgemTrack::setLastLayer ( const Int_t  lL)
inline

Definition at line 44 of file TCgemTrack.h.

44{ m_lastLayer = lL; }

Referenced by CgemTrackCnv::DataObjectToTObject().

◆ setNdof()

void TCgemTrack::setNdof ( const Int_t  ndof)
inline

Definition at line 42 of file TCgemTrack.h.

42{ m_ndof = ndof; }
const Int_t ndof() const
Definition: TCgemTrack.h:17

Referenced by CgemTrackCnv::DataObjectToTObject().

◆ setStat()

void TCgemTrack::setStat ( const Int_t  stat)
inline

Definition at line 40 of file TCgemTrack.h.

40{ m_stat = stat ; }
const Int_t stat() const
Definition: TCgemTrack.h:15

Referenced by CgemTrackCnv::DataObjectToTObject().

◆ setTrackId()

void TCgemTrack::setTrackId ( const Int_t  trackId)
inline

Definition at line 39 of file TCgemTrack.h.

39{ m_trackId = trackId; }
const Int_t trackId() const
Definition: TCgemTrack.h:13

Referenced by CgemTrackCnv::DataObjectToTObject().

◆ stat()

const Int_t TCgemTrack::stat ( ) const
inline

Definition at line 15 of file TCgemTrack.h.

15{ return m_stat; }

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

◆ theta()

const Double_t TCgemTrack::theta ( ) const

Definition at line 70 of file TCgemTrack.cxx.

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

Referenced by CgemTrackCnv::TObjectToDataObject().

◆ trackId()

const Int_t TCgemTrack::trackId ( ) const
inline

Definition at line 13 of file TCgemTrack.h.

13{ return m_trackId; }

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

◆ x()

const Double_t TCgemTrack::x ( ) const

Definition at line 30 of file TCgemTrack.cxx.

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

Referenced by CgemTrackCnv::TObjectToDataObject().

◆ y()

const Double_t TCgemTrack::y ( ) const

Definition at line 34 of file TCgemTrack.cxx.

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

Referenced by CgemTrackCnv::TObjectToDataObject().

◆ z()

const Double_t TCgemTrack::z ( ) const

Definition at line 38 of file TCgemTrack.cxx.

38 {
39 return m_helix[3];
40 }

Referenced by CgemTrackCnv::TObjectToDataObject().


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