CGEM BOSS 6.6.5.i
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
 
Int_t nCgemXClusters () const
 
Int_t nCgemVClusters () 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)
 
void setNCgemXClusters (const Int_t n)
 
void setNCgemVClusters (const Int_t n)
 

Detailed Description

Definition at line 6 of file TMdcTrack.h.

Constructor & Destructor Documentation

◆ TMdcTrack()

TMdcTrack::TMdcTrack ( )

◆ ~TMdcTrack()

TMdcTrack::~TMdcTrack ( )

Definition at line 15 of file TMdcTrack.cxx.

15 {
16 Clear();
17 }

Member Function Documentation

◆ charge()

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().

◆ chi2()

const Double_t TMdcTrack::chi2 ( ) const
inline

Definition at line 16 of file TMdcTrack.h.

16{ return m_chi2; }

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

◆ err()

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

Definition at line 18 of file TMdcTrack.h.

18{ return m_err[i]; }

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

◆ firstLayer()

const Int_t TMdcTrack::firstLayer ( ) const
inline

Definition at line 21 of file TMdcTrack.h.

21{ return m_firstLayer;}

◆ helix()

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

Definition at line 14 of file TMdcTrack.h.

14{ return m_helix[i]; }

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

◆ lastLayer()

const Int_t TMdcTrack::lastLayer ( ) const
inline

Definition at line 22 of file TMdcTrack.h.

22{ return m_lastLayer; }

◆ nCgemVClusters()

Int_t TMdcTrack::nCgemVClusters ( ) const
inline

Definition at line 24 of file TMdcTrack.h.

24{ return m_nCgemVClusters; }

Referenced by MdcTrackCnv::TObjectToDataObject().

◆ nCgemXClusters()

Int_t TMdcTrack::nCgemXClusters ( ) const
inline

Definition at line 23 of file TMdcTrack.h.

23{ return m_nCgemXClusters; }

Referenced by MdcTrackCnv::TObjectToDataObject().

◆ ndof()

const Int_t TMdcTrack::ndof ( ) const
inline

Definition at line 17 of file TMdcTrack.h.

17{ return m_ndof; }

Referenced by cvtMdcDst2MdcRec(), setNdof(), and MdcTrackCnv::TObjectToDataObject().

◆ nlayer()

const Int_t TMdcTrack::nlayer ( ) const
inline

Definition at line 20 of file TMdcTrack.h.

20{ return m_nlayer; }

Referenced by cvtMdcDst2MdcRec(), setNlayer(), and MdcTrackCnv::TObjectToDataObject().

◆ nster()

const Int_t TMdcTrack::nster ( ) const
inline

Definition at line 19 of file TMdcTrack.h.

19{ return m_nster; }

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

◆ p()

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().

◆ phi()

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().

◆ px()

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)
Definition BesAngle.h:210

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

◆ pxy()

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().

◆ py()

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)
Definition BesAngle.h:213

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

◆ pz()

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().

◆ r()

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().

◆ setChi2()

void TMdcTrack::setChi2 ( const Double_t chi)
inline

Definition at line 45 of file TMdcTrack.h.

45{ m_chi2 = chi; }

Referenced by MdcTrackCnv::DataObjectToTObject().

◆ setErr()

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().

◆ setFirstLayer()

void TMdcTrack::setFirstLayer ( const Int_t fL)
inline

Definition at line 49 of file TMdcTrack.h.

49{ m_firstLayer = fL; }

Referenced by MdcTrackCnv::DataObjectToTObject().

◆ setHelix()

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 }
const Double_t helix(Int_t i) const
Definition TMdcTrack.h:14

Referenced by MdcTrackCnv::DataObjectToTObject().

◆ setLastLayer()

void TMdcTrack::setLastLayer ( const Int_t lL)
inline

Definition at line 50 of file TMdcTrack.h.

50{ m_lastLayer = lL; }

Referenced by MdcTrackCnv::DataObjectToTObject().

◆ setNCgemVClusters()

void TMdcTrack::setNCgemVClusters ( const Int_t n)
inline

Definition at line 52 of file TMdcTrack.h.

52{ m_nCgemVClusters = n; }
const Int_t n

Referenced by MdcTrackCnv::DataObjectToTObject().

◆ setNCgemXClusters()

void TMdcTrack::setNCgemXClusters ( const Int_t n)
inline

Definition at line 51 of file TMdcTrack.h.

51{ m_nCgemXClusters = n; }

Referenced by MdcTrackCnv::DataObjectToTObject().

◆ setNdof()

void TMdcTrack::setNdof ( const Int_t ndof)
inline

Definition at line 46 of file TMdcTrack.h.

46{ m_ndof = ndof; }
const Int_t ndof() const
Definition TMdcTrack.h:17

Referenced by MdcTrackCnv::DataObjectToTObject().

◆ setNlayer()

void TMdcTrack::setNlayer ( const Int_t nlayer)
inline

Definition at line 48 of file TMdcTrack.h.

48{ m_nlayer= nlayer; }
const Int_t nlayer() const
Definition TMdcTrack.h:20

Referenced by MdcTrackCnv::DataObjectToTObject().

◆ setNster()

void TMdcTrack::setNster ( const Int_t ns)
inline

Definition at line 47 of file TMdcTrack.h.

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

Referenced by MdcTrackCnv::DataObjectToTObject().

◆ setStat()

void TMdcTrack::setStat ( const Int_t stat)
inline

Definition at line 44 of file TMdcTrack.h.

44{ m_stat = stat ; }
const Int_t stat() const
Definition TMdcTrack.h:15

Referenced by MdcTrackCnv::DataObjectToTObject().

◆ setTrackId()

void TMdcTrack::setTrackId ( const Int_t trackId)
inline

Definition at line 43 of file TMdcTrack.h.

43{ m_trackId = trackId; }
const Int_t trackId() const
Definition TMdcTrack.h:13

Referenced by MdcTrackCnv::DataObjectToTObject().

◆ stat()

const Int_t TMdcTrack::stat ( ) const
inline

Definition at line 15 of file TMdcTrack.h.

15{ return m_stat; }

Referenced by cvtMdcDst2MdcRec(), setStat(), and MdcTrackCnv::TObjectToDataObject().

◆ theta()

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().

◆ trackId()

const Int_t TMdcTrack::trackId ( ) const
inline

Definition at line 13 of file TMdcTrack.h.

13{ return m_trackId; }

Referenced by cvtMdcDst2MdcRec(), MdcTrackCnv::DataObjectToTObject(), setTrackId(), and MdcTrackCnv::TObjectToDataObject().

◆ x()

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().

◆ y()

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().

◆ z()

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().


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