CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
TRecCgemTrack Class Reference

#include <TRecCgemTrack.h>

+ Inheritance diagram for TRecCgemTrack:

Public Member Functions

 TRecCgemTrack ()
 
 ~TRecCgemTrack ()
 
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 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 setVX0 (Double_t vx0)
 
void setVY0 (Double_t vy0)
 
void setVZ0 (Double_t vz0)
 
void setFiTerm (Double_t fiterm)
 
void setTRecCgemTrack (const TRecCgemTrack *cgemTrk)
 

Detailed Description

Definition at line 9 of file TRecCgemTrack.h.

Constructor & Destructor Documentation

◆ TRecCgemTrack()

TRecCgemTrack::TRecCgemTrack ( )

◆ ~TRecCgemTrack()

TRecCgemTrack::~TRecCgemTrack ( )

Definition at line 13 of file TRecCgemTrack.cxx.

13 {
14 Clear();
15 }

Member Function Documentation

◆ charge()

const Int_t TRecCgemTrack::charge ( ) const

Definition at line 18 of file TRecCgemTrack.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(), and RecCgemTrackCnv::TObjectToDataObject().

◆ chi2()

const Double_t TRecCgemTrack::chi2 ( ) const
inline

Definition at line 32 of file TRecCgemTrack.h.

32{ return m_chi2; }

Referenced by setTRecCgemTrack(), and RecCgemTrackCnv::TObjectToDataObject().

◆ err()

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

Definition at line 34 of file TRecCgemTrack.h.

34{ return m_err[i];}

Referenced by setTRecCgemTrack(), and RecCgemTrackCnv::TObjectToDataObject().

◆ fiTerm()

const Double_t TRecCgemTrack::fiTerm ( void ) const
inline

Definition at line 41 of file TRecCgemTrack.h.

41{ return m_fiTerm; }

Referenced by setTRecCgemTrack(), and RecCgemTrackCnv::TObjectToDataObject().

◆ helix()

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

Definition at line 18 of file TRecCgemTrack.h.

18{ return m_helix[i]; }

Referenced by setHelix(), setTRecCgemTrack(), and RecCgemTrackCnv::TObjectToDataObject().

◆ ndof()

const Int_t TRecCgemTrack::ndof ( ) const
inline

Definition at line 33 of file TRecCgemTrack.h.

33{ return m_ndof; }

Referenced by setNdof(), setTRecCgemTrack(), and RecCgemTrackCnv::TObjectToDataObject().

◆ nhits()

const Int_t TRecCgemTrack::nhits ( ) const
inline

Definition at line 35 of file TRecCgemTrack.h.

35{ return m_nhits; }

Referenced by RecCgemTrackCnv::TObjectToDataObject().

◆ p()

const Double_t TRecCgemTrack::p ( ) const

Definition at line 64 of file TRecCgemTrack.cxx.

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

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

◆ phi()

const Double_t TRecCgemTrack::phi ( ) const

Definition at line 72 of file TRecCgemTrack.cxx.

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

Referenced by RecCgemTrackCnv::TObjectToDataObject().

◆ px()

const Double_t TRecCgemTrack::px ( ) const

Definition at line 52 of file TRecCgemTrack.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 RecCgemTrackCnv::DataObjectToTObject(), p(), phi(), and RecCgemTrackCnv::TObjectToDataObject().

◆ pxy()

const Double_t TRecCgemTrack::pxy ( ) const

Definition at line 46 of file TRecCgemTrack.cxx.

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

Referenced by px(), py(), pz(), and RecCgemTrackCnv::TObjectToDataObject().

◆ py()

const Double_t TRecCgemTrack::py ( ) const

Definition at line 56 of file TRecCgemTrack.cxx.

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

Referenced by RecCgemTrackCnv::DataObjectToTObject(), p(), phi(), and RecCgemTrackCnv::TObjectToDataObject().

◆ pz()

const Double_t TRecCgemTrack::pz ( ) const

Definition at line 60 of file TRecCgemTrack.cxx.

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

Referenced by RecCgemTrackCnv::DataObjectToTObject(), p(), theta(), and RecCgemTrackCnv::TObjectToDataObject().

◆ r()

const Double_t TRecCgemTrack::r ( ) const

Definition at line 42 of file TRecCgemTrack.cxx.

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

Referenced by RecCgemTrackCnv::TObjectToDataObject().

◆ setChi2()

void TRecCgemTrack::setChi2 ( const Double_t chi)
inline

Definition at line 49 of file TRecCgemTrack.h.

49{ m_chi2 = chi; }

Referenced by RecCgemTrackCnv::DataObjectToTObject().

◆ setErr()

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

Definition at line 52 of file TRecCgemTrack.h.

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

Referenced by RecCgemTrackCnv::DataObjectToTObject().

◆ setFiTerm()

void TRecCgemTrack::setFiTerm ( Double_t fiterm)
inline

Definition at line 62 of file TRecCgemTrack.h.

62{ m_fiTerm = fiterm;}

Referenced by RecCgemTrackCnv::DataObjectToTObject().

◆ setHelix()

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

Definition at line 45 of file TRecCgemTrack.h.

45 {
46 for(Int_t i=0; i<5; i++) m_helix[i] = helix[i];
47 }
const Double_t helix(Int_t i) const

Referenced by RecCgemTrackCnv::DataObjectToTObject().

◆ setNdof()

void TRecCgemTrack::setNdof ( const Int_t ndof)
inline

Definition at line 50 of file TRecCgemTrack.h.

50{ m_ndof = ndof; }
const Int_t ndof() const

Referenced by RecCgemTrackCnv::DataObjectToTObject().

◆ setNhits()

void TRecCgemTrack::setNhits ( const Int_t nh)
inline

Definition at line 56 of file TRecCgemTrack.h.

56{ m_nhits=nh; }

Referenced by RecCgemTrackCnv::DataObjectToTObject().

◆ setStat()

void TRecCgemTrack::setStat ( const Int_t stat)
inline

Definition at line 48 of file TRecCgemTrack.h.

48{ m_stat = stat; }
const Int_t stat() const

Referenced by RecCgemTrackCnv::DataObjectToTObject().

◆ setTrackId()

void TRecCgemTrack::setTrackId ( const Int_t trackId)
inline

Definition at line 44 of file TRecCgemTrack.h.

44{ m_trackId = trackId; }
const Int_t trackId() const

Referenced by RecCgemTrackCnv::DataObjectToTObject().

◆ setTRecCgemTrack()

void TRecCgemTrack::setTRecCgemTrack ( const TRecCgemTrack * cgemTrk)
inline

Definition at line 63 of file TRecCgemTrack.h.

63 {
64 for(int i=0;i<5;i++){
65 m_helix[i]=cgemTrk->helix(i);
66 }
67 for(int i=0;i<15;i++){
68 m_err[i]=cgemTrk->err(i);
69 }
70 m_trackId=cgemTrk->trackId();
71 m_stat=cgemTrk->stat();
72 m_chi2=cgemTrk->chi2();
73 m_ndof=cgemTrk->ndof();
74 m_vx0=cgemTrk->vx0();
75 m_vy0=cgemTrk->vy0();
76 m_vz0=cgemTrk->vz0();
77 m_fiTerm =cgemTrk->fiTerm();
78 }
const Double_t chi2() const
const Double_t vy0(void) const
const Double_t vx0(void) const
const Double_t vz0(void) const
const Double_t fiTerm(void) const
const Double_t err(Int_t i) const

◆ setVX0()

void TRecCgemTrack::setVX0 ( Double_t vx0)
inline

Definition at line 59 of file TRecCgemTrack.h.

59{ m_vx0 = vx0; }

Referenced by RecCgemTrackCnv::DataObjectToTObject().

◆ setVY0()

void TRecCgemTrack::setVY0 ( Double_t vy0)
inline

Definition at line 60 of file TRecCgemTrack.h.

60{ m_vy0 = vy0; }

Referenced by RecCgemTrackCnv::DataObjectToTObject().

◆ setVZ0()

void TRecCgemTrack::setVZ0 ( Double_t vz0)
inline

Definition at line 61 of file TRecCgemTrack.h.

61{ m_vz0 = vz0; }

Referenced by RecCgemTrackCnv::DataObjectToTObject().

◆ stat()

const Int_t TRecCgemTrack::stat ( ) const
inline

Definition at line 31 of file TRecCgemTrack.h.

31{ return m_stat; }

Referenced by setStat(), setTRecCgemTrack(), and RecCgemTrackCnv::TObjectToDataObject().

◆ theta()

const Double_t TRecCgemTrack::theta ( ) const

Definition at line 68 of file TRecCgemTrack.cxx.

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

Referenced by RecCgemTrackCnv::TObjectToDataObject().

◆ trackId()

const Int_t TRecCgemTrack::trackId ( ) const
inline

Definition at line 17 of file TRecCgemTrack.h.

17{ return m_trackId; }

Referenced by setTrackId(), setTRecCgemTrack(), and RecCgemTrackCnv::TObjectToDataObject().

◆ vx0()

const Double_t TRecCgemTrack::vx0 ( void ) const
inline

Definition at line 38 of file TRecCgemTrack.h.

38{ return m_vx0; }

Referenced by setTRecCgemTrack(), setVX0(), and RecCgemTrackCnv::TObjectToDataObject().

◆ vy0()

const Double_t TRecCgemTrack::vy0 ( void ) const
inline

Definition at line 39 of file TRecCgemTrack.h.

39{ return m_vy0; }

Referenced by setTRecCgemTrack(), setVY0(), and RecCgemTrackCnv::TObjectToDataObject().

◆ vz0()

const Double_t TRecCgemTrack::vz0 ( void ) const
inline

Definition at line 40 of file TRecCgemTrack.h.

40{ return m_vz0; }

Referenced by setTRecCgemTrack(), setVZ0(), and RecCgemTrackCnv::TObjectToDataObject().

◆ x()

const Double_t TRecCgemTrack::x ( ) const

Definition at line 30 of file TRecCgemTrack.cxx.

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

Referenced by r(), and RecCgemTrackCnv::TObjectToDataObject().

◆ y()

const Double_t TRecCgemTrack::y ( ) const

Definition at line 34 of file TRecCgemTrack.cxx.

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

Referenced by r(), and RecCgemTrackCnv::TObjectToDataObject().

◆ z()

const Double_t TRecCgemTrack::z ( ) const

Definition at line 38 of file TRecCgemTrack.cxx.

38 {
39 return m_helix[3];
40 }

Referenced by RecCgemTrackCnv::TObjectToDataObject().


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