BOSS 7.0.4
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
 
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 setVX0 (Double_t vx0)
 
void setVY0 (Double_t vy0)
 
void setVZ0 (Double_t vz0)
 
void setFiTerm (Double_t fiterm)
 
void setTRecMdcTrack (const TRecMdcTrack *mdcTrk)
 
 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
 
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 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

Constructor & Destructor Documentation

◆ TRecMdcTrack() [1/2]

TRecMdcTrack::TRecMdcTrack ( )

◆ ~TRecMdcTrack() [1/2]

TRecMdcTrack::~TRecMdcTrack ( )

Definition at line 13 of file TRecMdcTrack.cxx.

13 {
14 Clear();
15 }

◆ TRecMdcTrack() [2/2]

TRecMdcTrack::TRecMdcTrack ( )

◆ ~TRecMdcTrack() [2/2]

TRecMdcTrack::~TRecMdcTrack ( )

Member Function Documentation

◆ charge() [1/2]

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

◆ charge() [2/2]

const Int_t TRecMdcTrack::charge ( ) const

◆ chi2() [1/2]

const Double_t TRecMdcTrack::chi2 ( ) const
inline

◆ chi2() [2/2]

const Double_t TRecMdcTrack::chi2 ( ) const
inline

Definition at line 32 of file InstallArea/include/RootEventData/RootEventData/TRecMdcTrack.h.

32{ return m_chi2; }

◆ err() [1/2]

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

◆ err() [2/2]

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

Definition at line 34 of file InstallArea/include/RootEventData/RootEventData/TRecMdcTrack.h.

34{ return m_err[i];}

◆ fiTerm() [1/2]

const Double_t TRecMdcTrack::fiTerm ( void  ) const
inline

◆ fiTerm() [2/2]

const Double_t TRecMdcTrack::fiTerm ( void  ) const
inline

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

43{ return m_fiTerm; }

◆ helix() [1/2]

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

◆ helix() [2/2]

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

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

18{ return m_helix[i]; }

◆ ndof() [1/2]

const Int_t TRecMdcTrack::ndof ( ) const
inline

◆ ndof() [2/2]

const Int_t TRecMdcTrack::ndof ( ) const
inline

Definition at line 33 of file InstallArea/include/RootEventData/RootEventData/TRecMdcTrack.h.

33{ return m_ndof; }

◆ nhits() [1/2]

const Int_t TRecMdcTrack::nhits ( ) const
inline

◆ nhits() [2/2]

const Int_t TRecMdcTrack::nhits ( ) const
inline

Definition at line 35 of file InstallArea/include/RootEventData/RootEventData/TRecMdcTrack.h.

35{ return m_nhits; }

◆ nlayer() [1/2]

const Int_t TRecMdcTrack::nlayer ( ) const
inline

◆ nlayer() [2/2]

const Int_t TRecMdcTrack::nlayer ( ) const
inline

Definition at line 37 of file InstallArea/include/RootEventData/RootEventData/TRecMdcTrack.h.

37{ return m_nlayer; }

◆ nster() [1/2]

const Int_t TRecMdcTrack::nster ( ) const
inline

◆ nster() [2/2]

const Int_t TRecMdcTrack::nster ( ) const
inline

Definition at line 36 of file InstallArea/include/RootEventData/RootEventData/TRecMdcTrack.h.

36{ return m_nster; }

◆ p() [1/2]

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

◆ p() [2/2]

const Double_t TRecMdcTrack::p ( ) const

◆ phi() [1/2]

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

◆ phi() [2/2]

const Double_t TRecMdcTrack::phi ( ) const

◆ px() [1/2]

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)
const Double_t pxy() const

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

◆ px() [2/2]

const Double_t TRecMdcTrack::px ( ) const

◆ pxy() [1/2]

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

◆ pxy() [2/2]

const Double_t TRecMdcTrack::pxy ( ) const

◆ py() [1/2]

const Double_t TRecMdcTrack::py ( ) const

◆ py() [2/2]

const Double_t TRecMdcTrack::py ( ) const

◆ pz() [1/2]

const Double_t TRecMdcTrack::pz ( ) const

◆ pz() [2/2]

const Double_t TRecMdcTrack::pz ( ) const

◆ r() [1/2]

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

◆ r() [2/2]

const Double_t TRecMdcTrack::r ( ) const

◆ setChi2() [1/2]

void TRecMdcTrack::setChi2 ( const Double_t  chi)
inline

◆ setChi2() [2/2]

void TRecMdcTrack::setChi2 ( const Double_t  chi)
inline

Definition at line 51 of file InstallArea/include/RootEventData/RootEventData/TRecMdcTrack.h.

51{ m_chi2 = chi; }

◆ setErr() [1/2]

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

Definition at line 54 of file Event/RootEventData/RootEventData-00-03-80/RootEventData/TRecMdcTrack.h.

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

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

◆ setErr() [2/2]

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

Definition at line 54 of file InstallArea/include/RootEventData/RootEventData/TRecMdcTrack.h.

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

◆ setFiTerm() [1/2]

void TRecMdcTrack::setFiTerm ( Double_t  fiterm)
inline

◆ setFiTerm() [2/2]

void TRecMdcTrack::setFiTerm ( Double_t  fiterm)
inline

Definition at line 66 of file InstallArea/include/RootEventData/RootEventData/TRecMdcTrack.h.

66{ m_fiTerm = fiterm;}

◆ setHelix() [1/2]

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

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

47 {
48 for(Int_t i=0; i<5; i++) m_helix[i] = helix[i];
49 }

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

◆ setHelix() [2/2]

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

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

47 {
48 for(Int_t i=0; i<5; i++) m_helix[i] = helix[i];
49 }

◆ setNdof() [1/2]

void TRecMdcTrack::setNdof ( const Int_t  ndof)
inline

◆ setNdof() [2/2]

void TRecMdcTrack::setNdof ( const Int_t  ndof)
inline

Definition at line 52 of file InstallArea/include/RootEventData/RootEventData/TRecMdcTrack.h.

52{ m_ndof = ndof; }

◆ setNhits() [1/2]

void TRecMdcTrack::setNhits ( const Int_t  nh)
inline

◆ setNhits() [2/2]

void TRecMdcTrack::setNhits ( const Int_t  nh)
inline

Definition at line 58 of file InstallArea/include/RootEventData/RootEventData/TRecMdcTrack.h.

58{ m_nhits=nh; }

◆ setNlayer() [1/2]

void TRecMdcTrack::setNlayer ( const Int_t  nlayer)
inline

◆ setNlayer() [2/2]

void TRecMdcTrack::setNlayer ( const Int_t  nlayer)
inline

Definition at line 60 of file InstallArea/include/RootEventData/RootEventData/TRecMdcTrack.h.

60{ m_nlayer = nlayer; }

◆ setNster() [1/2]

void TRecMdcTrack::setNster ( const Int_t  ns)
inline

◆ setNster() [2/2]

void TRecMdcTrack::setNster ( const Int_t  ns)
inline

Definition at line 59 of file InstallArea/include/RootEventData/RootEventData/TRecMdcTrack.h.

59{ m_nster=ns; }

◆ setStat() [1/2]

void TRecMdcTrack::setStat ( const Int_t  stat)
inline

◆ setStat() [2/2]

void TRecMdcTrack::setStat ( const Int_t  stat)
inline

Definition at line 50 of file InstallArea/include/RootEventData/RootEventData/TRecMdcTrack.h.

50{ m_stat = stat; }

◆ setTrackId() [1/2]

void TRecMdcTrack::setTrackId ( const Int_t  trackId)
inline

◆ setTrackId() [2/2]

void TRecMdcTrack::setTrackId ( const Int_t  trackId)
inline

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

46{ m_trackId = trackId; }

◆ setTRecMdcTrack() [1/2]

void TRecMdcTrack::setTRecMdcTrack ( const TRecMdcTrack mdcTrk)
inline

Definition at line 67 of file Event/RootEventData/RootEventData-00-03-80/RootEventData/TRecMdcTrack.h.

67 {
68 for(int i=0;i<5;i++){
69 m_helix[i]=mdcTrk->helix(i);
70 }
71 for(int i=0;i<15;i++){
72 m_err[i]=mdcTrk->err(i);
73 }
74 m_trackId=mdcTrk->trackId();
75 m_stat=mdcTrk->stat();
76 m_chi2=mdcTrk->chi2();
77 m_ndof=mdcTrk->ndof();
78 m_nster=mdcTrk->nster();
79 m_nlayer=mdcTrk->nlayer();
80 m_vx0=mdcTrk->vx0();
81 m_vy0=mdcTrk->vy0();
82 m_vz0=mdcTrk->vz0();
83 m_fiTerm =mdcTrk->fiTerm();
84 }

Referenced by BesClient::GetEvent().

◆ setTRecMdcTrack() [2/2]

void TRecMdcTrack::setTRecMdcTrack ( const TRecMdcTrack mdcTrk)
inline

Definition at line 67 of file InstallArea/include/RootEventData/RootEventData/TRecMdcTrack.h.

67 {
68 for(int i=0;i<5;i++){
69 m_helix[i]=mdcTrk->helix(i);
70 }
71 for(int i=0;i<15;i++){
72 m_err[i]=mdcTrk->err(i);
73 }
74 m_trackId=mdcTrk->trackId();
75 m_stat=mdcTrk->stat();
76 m_chi2=mdcTrk->chi2();
77 m_ndof=mdcTrk->ndof();
78 m_nster=mdcTrk->nster();
79 m_nlayer=mdcTrk->nlayer();
80 m_vx0=mdcTrk->vx0();
81 m_vy0=mdcTrk->vy0();
82 m_vz0=mdcTrk->vz0();
83 m_fiTerm =mdcTrk->fiTerm();
84 }

◆ setVX0() [1/2]

void TRecMdcTrack::setVX0 ( Double_t  vx0)
inline

◆ setVX0() [2/2]

void TRecMdcTrack::setVX0 ( Double_t  vx0)
inline

Definition at line 63 of file InstallArea/include/RootEventData/RootEventData/TRecMdcTrack.h.

63{ m_vx0 = vx0; }

◆ setVY0() [1/2]

void TRecMdcTrack::setVY0 ( Double_t  vy0)
inline

◆ setVY0() [2/2]

void TRecMdcTrack::setVY0 ( Double_t  vy0)
inline

Definition at line 64 of file InstallArea/include/RootEventData/RootEventData/TRecMdcTrack.h.

64{ m_vy0 = vy0; }

◆ setVZ0() [1/2]

void TRecMdcTrack::setVZ0 ( Double_t  vz0)
inline

◆ setVZ0() [2/2]

void TRecMdcTrack::setVZ0 ( Double_t  vz0)
inline

Definition at line 65 of file InstallArea/include/RootEventData/RootEventData/TRecMdcTrack.h.

65{ m_vz0 = vz0; }

◆ stat() [1/2]

const Int_t TRecMdcTrack::stat ( ) const
inline

◆ stat() [2/2]

const Int_t TRecMdcTrack::stat ( ) const
inline

Definition at line 31 of file InstallArea/include/RootEventData/RootEventData/TRecMdcTrack.h.

31{ return m_stat; }

◆ theta() [1/2]

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

◆ theta() [2/2]

const Double_t TRecMdcTrack::theta ( ) const

◆ trackId() [1/2]

const Int_t TRecMdcTrack::trackId ( ) const
inline

◆ trackId() [2/2]

const Int_t TRecMdcTrack::trackId ( ) const
inline

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

17{ return m_trackId; }

◆ vx0() [1/2]

const Double_t TRecMdcTrack::vx0 ( void  ) const
inline

◆ vx0() [2/2]

const Double_t TRecMdcTrack::vx0 ( void  ) const
inline

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

40{ return m_vx0; }

◆ vy0() [1/2]

const Double_t TRecMdcTrack::vy0 ( void  ) const
inline

◆ vy0() [2/2]

const Double_t TRecMdcTrack::vy0 ( void  ) const
inline

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

41{ return m_vy0; }

◆ vz0() [1/2]

const Double_t TRecMdcTrack::vz0 ( void  ) const
inline

◆ vz0() [2/2]

const Double_t TRecMdcTrack::vz0 ( void  ) const
inline

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

42{ return m_vz0; }

◆ x() [1/2]

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

◆ x() [2/2]

const Double_t TRecMdcTrack::x ( ) const

◆ y() [1/2]

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

◆ y() [2/2]

const Double_t TRecMdcTrack::y ( ) const

◆ z() [1/2]

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

◆ z() [2/2]

const Double_t TRecMdcTrack::z ( ) const

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