CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
TRecMdcTrack Class Reference

#include <TRecMdcTrack.h>

+ Inheritance diagram for TRecMdcTrack:

Public Member Functions

 TRecMdcTrack ()
 
 ~TRecMdcTrack ()
 
const Int_t trackId () const
 
const Double_t helix (Int_t i) 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
 
const Double_t x () const
 
const Double_t y () const
 
const Double_t z () const
 
const Double_t r () 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 nhits () const
 
const Int_t nster () const
 
const Int_t nlayer () const
 
vector< Int_t > vecClusterId () const
 
const Double_t vx0 (void) const
 
const Double_t vy0 (void) const
 
const Double_t vz0 (void) const
 
const Double_t fiTerm (void) const
 
void setTrackId (const Int_t trackId)
 
void setHelix (const Double_t helix[5])
 
void setStat (const Int_t stat)
 
void setChi2 (const Double_t chi)
 
void setNdof (const Int_t ndof)
 
void setErr (const Double_t er[15])
 
void setNhits (const Int_t nh)
 
void setNster (const Int_t ns)
 
void setNlayer (const Int_t nlayer)
 
void setVecClusterId (vector< Int_t > &vecCluId)
 
void setVX0 (Double_t vx0)
 
void setVY0 (Double_t vy0)
 
void setVZ0 (Double_t vz0)
 
void setFiTerm (Double_t fiterm)
 
void setTRecMdcTrack (const TRecMdcTrack *mdcTrk)
 

Detailed Description

Definition at line 9 of file TRecMdcTrack.h.

Constructor & Destructor Documentation

◆ TRecMdcTrack()

TRecMdcTrack::TRecMdcTrack ( )

◆ ~TRecMdcTrack()

TRecMdcTrack::~TRecMdcTrack ( )

Definition at line 13 of file TRecMdcTrack.cxx.

13 {
14 Clear();
15 }

Member Function Documentation

◆ charge()

const Int_t TRecMdcTrack::charge ( ) const

Definition at line 18 of file TRecMdcTrack.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

Referenced by charge(), BesEvent::ConstructMdcTrackFromRec(), and RecMdcTrackCnv::TObjectToDataObject().

◆ chi2()

const Double_t TRecMdcTrack::chi2 ( ) const
inline

Definition at line 32 of file TRecMdcTrack.h.

32{ return m_chi2; }

Referenced by BesEvent::ConstructMdcTrackFromRec(), setTRecMdcTrack(), and RecMdcTrackCnv::TObjectToDataObject().

◆ err()

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

Definition at line 34 of file TRecMdcTrack.h.

34{ return m_err[i];}

Referenced by setTRecMdcTrack(), and RecMdcTrackCnv::TObjectToDataObject().

◆ fiTerm()

const Double_t TRecMdcTrack::fiTerm ( void  ) const
inline

Definition at line 44 of file TRecMdcTrack.h.

44{ return m_fiTerm; }

Referenced by setTRecMdcTrack(), and RecMdcTrackCnv::TObjectToDataObject().

◆ helix()

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

Definition at line 18 of file TRecMdcTrack.h.

18{ return m_helix[i]; }

Referenced by BesEvent::ConstructMdcTrackFromRec(), setHelix(), setTRecMdcTrack(), and RecMdcTrackCnv::TObjectToDataObject().

◆ ndof()

const Int_t TRecMdcTrack::ndof ( ) const
inline

Definition at line 33 of file TRecMdcTrack.h.

33{ return m_ndof; }

Referenced by BesEvent::ConstructMdcTrackFromRec(), setNdof(), setTRecMdcTrack(), and RecMdcTrackCnv::TObjectToDataObject().

◆ nhits()

const Int_t TRecMdcTrack::nhits ( ) const
inline

Definition at line 35 of file TRecMdcTrack.h.

35{ return m_nhits; }

Referenced by RecMdcTrackCnv::TObjectToDataObject().

◆ nlayer()

const Int_t TRecMdcTrack::nlayer ( ) const
inline

Definition at line 37 of file TRecMdcTrack.h.

37{ return m_nlayer; }

Referenced by setNlayer(), setTRecMdcTrack(), and RecMdcTrackCnv::TObjectToDataObject().

◆ nster()

const Int_t TRecMdcTrack::nster ( ) const
inline

Definition at line 36 of file TRecMdcTrack.h.

36{ return m_nster; }

Referenced by setTRecMdcTrack(), and RecMdcTrackCnv::TObjectToDataObject().

◆ p()

const Double_t TRecMdcTrack::p ( ) const

Definition at line 64 of file TRecMdcTrack.cxx.

64 {
65 return sqrt(px()*px() + py()*py() + pz()*pz());
66 }
const Double_t pz() const
const Double_t px() const
const Double_t py() const

Referenced by BesEvent::ConstructMdcTrackFromRec(), BesEvent::SetEvent(), theta(), and RecMdcTrackCnv::TObjectToDataObject().

◆ phi()

const Double_t TRecMdcTrack::phi ( ) const

Definition at line 72 of file TRecMdcTrack.cxx.

72 {
73 return atan2(py(),px());
74 }

Referenced by BesEvent::ConstructMdcTrackFromRec(), and RecMdcTrackCnv::TObjectToDataObject().

◆ px()

const Double_t TRecMdcTrack::px ( ) const

Definition at line 52 of file TRecMdcTrack.cxx.

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

Referenced by BesEvent::ConstructMdcTrackFromRec(), RecMdcTrackCnv::DataObjectToTObject(), p(), phi(), BesEvent::SetEvent(), and RecMdcTrackCnv::TObjectToDataObject().

◆ pxy()

const Double_t TRecMdcTrack::pxy ( ) const

Definition at line 46 of file TRecMdcTrack.cxx.

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

Referenced by BesEvent::ConstructMdcTrackFromRec(), px(), py(), pz(), BesEvent::SetEvent(), and RecMdcTrackCnv::TObjectToDataObject().

◆ py()

const Double_t TRecMdcTrack::py ( ) const

Definition at line 56 of file TRecMdcTrack.cxx.

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

Referenced by BesEvent::ConstructMdcTrackFromRec(), RecMdcTrackCnv::DataObjectToTObject(), p(), phi(), BesEvent::SetEvent(), and RecMdcTrackCnv::TObjectToDataObject().

◆ pz()

const Double_t TRecMdcTrack::pz ( ) const

◆ r()

const Double_t TRecMdcTrack::r ( ) const

Definition at line 42 of file TRecMdcTrack.cxx.

42 {
43 return sqrt(x()*x()+y()*y());
44 }
const Double_t x() const
const Double_t y() const

Referenced by RecMdcTrackCnv::TObjectToDataObject().

◆ setChi2()

void TRecMdcTrack::setChi2 ( const Double_t  chi)
inline

Definition at line 52 of file TRecMdcTrack.h.

52{ m_chi2 = chi; }

Referenced by cvtMdcDst2MdcRec(), and RecMdcTrackCnv::DataObjectToTObject().

◆ setErr()

void TRecMdcTrack::setErr ( const Double_t  er[15])
inline

Definition at line 55 of file TRecMdcTrack.h.

55 {
56 for (Int_t i=0;i<15;i++) m_err[i] = er[i];
57 }

Referenced by cvtMdcDst2MdcRec(), and RecMdcTrackCnv::DataObjectToTObject().

◆ setFiTerm()

void TRecMdcTrack::setFiTerm ( Double_t  fiterm)
inline

Definition at line 68 of file TRecMdcTrack.h.

68{ m_fiTerm = fiterm;}

Referenced by RecMdcTrackCnv::DataObjectToTObject().

◆ setHelix()

void TRecMdcTrack::setHelix ( const Double_t  helix[5])
inline

Definition at line 48 of file TRecMdcTrack.h.

48 {
49 for(Int_t i=0; i<5; i++) m_helix[i] = helix[i];
50 }
const Double_t helix(Int_t i) const
Definition: TRecMdcTrack.h:18

Referenced by cvtMdcDst2MdcRec(), and RecMdcTrackCnv::DataObjectToTObject().

◆ setNdof()

void TRecMdcTrack::setNdof ( const Int_t  ndof)
inline

Definition at line 53 of file TRecMdcTrack.h.

53{ m_ndof = ndof; }
const Int_t ndof() const
Definition: TRecMdcTrack.h:33

Referenced by cvtMdcDst2MdcRec(), and RecMdcTrackCnv::DataObjectToTObject().

◆ setNhits()

void TRecMdcTrack::setNhits ( const Int_t  nh)
inline

Definition at line 59 of file TRecMdcTrack.h.

59{ m_nhits=nh; }

Referenced by RecMdcTrackCnv::DataObjectToTObject().

◆ setNlayer()

void TRecMdcTrack::setNlayer ( const Int_t  nlayer)
inline

Definition at line 61 of file TRecMdcTrack.h.

61{ m_nlayer = nlayer; }
const Int_t nlayer() const
Definition: TRecMdcTrack.h:37

Referenced by cvtMdcDst2MdcRec(), and RecMdcTrackCnv::DataObjectToTObject().

◆ setNster()

void TRecMdcTrack::setNster ( const Int_t  ns)
inline

Definition at line 60 of file TRecMdcTrack.h.

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

Referenced by cvtMdcDst2MdcRec(), and RecMdcTrackCnv::DataObjectToTObject().

◆ setStat()

void TRecMdcTrack::setStat ( const Int_t  stat)
inline

Definition at line 51 of file TRecMdcTrack.h.

51{ m_stat = stat; }
const Int_t stat() const
Definition: TRecMdcTrack.h:31

Referenced by cvtMdcDst2MdcRec(), and RecMdcTrackCnv::DataObjectToTObject().

◆ setTrackId()

void TRecMdcTrack::setTrackId ( const Int_t  trackId)
inline

Definition at line 47 of file TRecMdcTrack.h.

47{ m_trackId = trackId; }
const Int_t trackId() const
Definition: TRecMdcTrack.h:17

Referenced by cvtMdcDst2MdcRec(), and RecMdcTrackCnv::DataObjectToTObject().

◆ setTRecMdcTrack()

void TRecMdcTrack::setTRecMdcTrack ( const TRecMdcTrack mdcTrk)
inline

Definition at line 70 of file TRecMdcTrack.h.

70 {
71 for(int i=0;i<5;i++){
72 m_helix[i]=mdcTrk->helix(i);
73 }
74 for(int i=0;i<15;i++){
75 m_err[i]=mdcTrk->err(i);
76 }
77 m_trackId=mdcTrk->trackId();
78 m_stat=mdcTrk->stat();
79 m_chi2=mdcTrk->chi2();
80 m_ndof=mdcTrk->ndof();
81 m_nster=mdcTrk->nster();
82 m_nlayer=mdcTrk->nlayer();
83 m_vx0=mdcTrk->vx0();
84 m_vy0=mdcTrk->vy0();
85 m_vz0=mdcTrk->vz0();
86 m_fiTerm =mdcTrk->fiTerm();
87 m_vecClusterId=mdcTrk->vecClusterId();
88 }
const Int_t nster() const
Definition: TRecMdcTrack.h:36
const Double_t vz0(void) const
Definition: TRecMdcTrack.h:43
const Double_t chi2() const
Definition: TRecMdcTrack.h:32
const Double_t vy0(void) const
Definition: TRecMdcTrack.h:42
const Double_t fiTerm(void) const
Definition: TRecMdcTrack.h:44
const Double_t err(Int_t i) const
Definition: TRecMdcTrack.h:34
vector< Int_t > vecClusterId() const
Definition: TRecMdcTrack.h:39
const Double_t vx0(void) const
Definition: TRecMdcTrack.h:41

Referenced by BesClient::GetEvent().

◆ setVecClusterId()

void TRecMdcTrack::setVecClusterId ( vector< Int_t > &  vecCluId)
inline

Definition at line 63 of file TRecMdcTrack.h.

63{ m_vecClusterId = vecCluId; }

Referenced by RecMdcTrackCnv::DataObjectToTObject().

◆ setVX0()

void TRecMdcTrack::setVX0 ( Double_t  vx0)
inline

Definition at line 65 of file TRecMdcTrack.h.

65{ m_vx0 = vx0; }

Referenced by RecMdcTrackCnv::DataObjectToTObject().

◆ setVY0()

void TRecMdcTrack::setVY0 ( Double_t  vy0)
inline

Definition at line 66 of file TRecMdcTrack.h.

66{ m_vy0 = vy0; }

Referenced by RecMdcTrackCnv::DataObjectToTObject().

◆ setVZ0()

void TRecMdcTrack::setVZ0 ( Double_t  vz0)
inline

Definition at line 67 of file TRecMdcTrack.h.

67{ m_vz0 = vz0; }

Referenced by RecMdcTrackCnv::DataObjectToTObject().

◆ stat()

const Int_t TRecMdcTrack::stat ( ) const
inline

◆ theta()

const Double_t TRecMdcTrack::theta ( ) const

Definition at line 68 of file TRecMdcTrack.cxx.

68 {
69 return acos(pz()/p());
70 }
const Double_t p() const

Referenced by BesEvent::ConstructMdcTrackFromRec(), and RecMdcTrackCnv::TObjectToDataObject().

◆ trackId()

const Int_t TRecMdcTrack::trackId ( ) const
inline

◆ vecClusterId()

vector< Int_t > TRecMdcTrack::vecClusterId ( ) const
inline

Definition at line 39 of file TRecMdcTrack.h.

39{ return m_vecClusterId; }

Referenced by BesEvent::ConstructMdcTrackFromRec(), setTRecMdcTrack(), and RecMdcTrackCnv::TObjectToDataObject().

◆ vx0()

const Double_t TRecMdcTrack::vx0 ( void  ) const
inline

Definition at line 41 of file TRecMdcTrack.h.

41{ return m_vx0; }

Referenced by setTRecMdcTrack(), setVX0(), and RecMdcTrackCnv::TObjectToDataObject().

◆ vy0()

const Double_t TRecMdcTrack::vy0 ( void  ) const
inline

Definition at line 42 of file TRecMdcTrack.h.

42{ return m_vy0; }

Referenced by setTRecMdcTrack(), setVY0(), and RecMdcTrackCnv::TObjectToDataObject().

◆ vz0()

const Double_t TRecMdcTrack::vz0 ( void  ) const
inline

Definition at line 43 of file TRecMdcTrack.h.

43{ return m_vz0; }

Referenced by setTRecMdcTrack(), setVZ0(), and RecMdcTrackCnv::TObjectToDataObject().

◆ x()

const Double_t TRecMdcTrack::x ( ) const

Definition at line 30 of file TRecMdcTrack.cxx.

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

Referenced by BesEvent::ConstructMdcTrackFromRec(), r(), and RecMdcTrackCnv::TObjectToDataObject().

◆ y()

const Double_t TRecMdcTrack::y ( ) const

Definition at line 34 of file TRecMdcTrack.cxx.

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

Referenced by BesEvent::ConstructMdcTrackFromRec(), r(), and RecMdcTrackCnv::TObjectToDataObject().

◆ z()

const Double_t TRecMdcTrack::z ( ) const

Definition at line 38 of file TRecMdcTrack.cxx.

38 {
39 return m_helix[3];
40 }

Referenced by BesEvent::ConstructMdcTrackFromRec(), and RecMdcTrackCnv::TObjectToDataObject().


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