BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
DstTofTrack Class Reference

#include <DstTofTrack.h>

+ Inheritance diagram for DstTofTrack:

Public Member Functions

 DstTofTrack ()
 
virtual ~DstTofTrack ()
 
virtual const CLID & clID () const
 
int tofTrackID () const
 
int trackID () const
 
int tofID ()
 
int strip ()
 
unsigned int status () const
 
double path () const
 
double zrhit () const
 
double ph () const
 
double tof () const
 
double errtof () const
 
double beta () const
 
double texp (int i) const
 
double texpElectron () const
 
double texpMuon () const
 
double texpPion () const
 
double texpKaon () const
 
double texpProton () const
 
double toffset (int i) const
 
double toffsetElectron () const
 
double toffsetMuon () const
 
double toffsetPion () const
 
double toffsetKaon () const
 
double toffsetProton () const
 
double toffsetAntiProton () const
 
double sigma (int i) const
 
double sigmaElectron () const
 
double sigmaMuon () const
 
double sigmaPion () const
 
double sigmaKaon () const
 
double sigmaProton () const
 
double sigmaAntiProton () const
 
int quality () const
 
double t0 () const
 
double errt0 () const
 
double errz () const
 
double phi () const
 
double errphi () const
 
double energy () const
 
double errenergy () const
 
void setTofTrackID (int tofTrackID)
 
void setTrackID (int trackID)
 
void setTofID (int tofID)
 
void setStatus (unsigned int status)
 
void setPath (double path)
 
void setZrHit (double zrhit)
 
void setPh (double ph)
 
void setTof (double tof)
 
void setErrTof (double etof)
 
void setBeta (double beta)
 
void setTexp (double texp[5])
 
void setTexpElectron (double texpe)
 
void setTexpMuon (double texpmu)
 
void setTexpPion (double texppi)
 
void setTexpKaon (double texpk)
 
void setTexpProton (double texpp)
 
void setToffset (double toffset[6])
 
void setToffsetElectron (double toe)
 
void setToffsetMuon (double tomu)
 
void setToffsetPion (double topi)
 
void setToffsetKaon (double tok)
 
void setToffsetProton (double top)
 
void setToffsetAntiProton (double topb)
 
void setSigma (double sigma[6])
 
void setSigmaElectron (double se)
 
void setSigmaMuon (double smu)
 
void setSigmaPion (double spi)
 
void setSigmaKaon (double sk)
 
void setSigmaProton (double sp)
 
void setSigmaAntiProton (double spb)
 
void setQuality (int quality)
 
void setT0 (double t0)
 
void setErrT0 (double errt0)
 
void setErrZ (double errz)
 
void setPhi (double phi)
 
void setErrPhi (double errphi)
 
void setEnergy (double energy)
 
void setErrEnergy (double errenergy)
 

Static Public Member Functions

static const CLID & classID ()
 

Detailed Description

Definition at line 18 of file DstTofTrack.h.

Constructor & Destructor Documentation

◆ DstTofTrack()

DstTofTrack::DstTofTrack ( )

Definition at line 16 of file DstTofTrack.cxx.

16 {
17
18 m_tofTrackID = -1;
19 m_trackID = -1;
20 m_tofID = -1;
21 m_status = -1;
22 m_path = 9999.0;
23 m_zrhit = 9999.0;
24 m_ph = 9999.0;
25 m_tof = 9999.0;
26 m_beta = 9999.0;
27 for( int i=0; i<6; i++ ) {
28 m_toffset[i] = 9999.0;
29 m_sigma[i] = 9999.0;
30 }
31 m_quality = 10;
32 m_t0 = 0.0;
33 m_errt0 = 0.0;
34
35 m_errz = 9999.0;
36 m_phi = 9999.0;
37 m_errphi = 9999.0;
38 m_energy = 9999.0;
39 m_errenergy = 9999.0;
40
41}

◆ ~DstTofTrack()

virtual DstTofTrack::~DstTofTrack ( )
inlinevirtual

Definition at line 22 of file DstTofTrack.h.

22{}

Member Function Documentation

◆ beta()

double DstTofTrack::beta ( ) const
inline

Definition at line 52 of file DstTofTrack.h.

52{ return m_beta; }

Referenced by TofCheckData::Fill(), and setBeta().

◆ classID()

static const CLID & DstTofTrack::classID ( )
inlinestatic

Definition at line 36 of file DstTofTrack.h.

36{ return CLID_DstTofTrack; }
const CLID & CLID_DstTofTrack

Referenced by clID().

◆ clID()

virtual const CLID & DstTofTrack::clID ( ) const
inlinevirtual

Reimplemented in RecTofTrack.

Definition at line 35 of file DstTofTrack.h.

35{ return DstTofTrack::classID();}
static const CLID & classID()
Definition DstTofTrack.h:36

◆ energy()

double DstTofTrack::energy ( ) const
inline

Definition at line 85 of file DstTofTrack.h.

85{ return m_energy; }

Referenced by TofCheckData::Fill(), and setEnergy().

◆ errenergy()

double DstTofTrack::errenergy ( ) const
inline

Definition at line 86 of file DstTofTrack.h.

86{ return m_errenergy; }

Referenced by TofCheckData::Fill(), and setErrEnergy().

◆ errphi()

double DstTofTrack::errphi ( ) const
inline

Definition at line 84 of file DstTofTrack.h.

84{ return m_errphi; }

Referenced by TofCheckData::Fill(), and setErrPhi().

◆ errt0()

double DstTofTrack::errt0 ( ) const
inline

Definition at line 80 of file DstTofTrack.h.

80{ return m_errt0; }

Referenced by TofCheckData::Fill(), and setErrT0().

◆ errtof()

double DstTofTrack::errtof ( ) const
inline

Definition at line 51 of file DstTofTrack.h.

51{ return m_sigma[0]; }

Referenced by TofCheckData::Fill().

◆ errz()

double DstTofTrack::errz ( ) const
inline

Definition at line 82 of file DstTofTrack.h.

82{ return m_errz; }

Referenced by TofCheckData::Fill(), and setErrZ().

◆ path()

double DstTofTrack::path ( ) const
inline

Definition at line 47 of file DstTofTrack.h.

47{ return m_path; }

Referenced by TofCheckData::Fill(), and setPath().

◆ ph()

double DstTofTrack::ph ( ) const
inline

Definition at line 49 of file DstTofTrack.h.

49{ return m_ph; }

Referenced by TofCheckData::Fill(), and setPh().

◆ phi()

double DstTofTrack::phi ( ) const
inline

Definition at line 83 of file DstTofTrack.h.

83{ return m_phi; }

Referenced by TofCheckData::Fill(), and setPhi().

◆ quality()

int DstTofTrack::quality ( ) const
inline

Definition at line 77 of file DstTofTrack.h.

77{ return m_quality; }

Referenced by TofCheckData::Fill(), and setQuality().

◆ setBeta()

void DstTofTrack::setBeta ( double beta)
inline

◆ setEnergy()

void DstTofTrack::setEnergy ( double energy)
inline

◆ setErrEnergy()

void DstTofTrack::setErrEnergy ( double errenergy)
inline

Definition at line 134 of file DstTofTrack.h.

134{ m_errenergy = errenergy; }
double errenergy() const
Definition DstTofTrack.h:86

Referenced by TofTrack::buildRecTofTrack(), RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setErrPhi()

void DstTofTrack::setErrPhi ( double errphi)
inline

Definition at line 132 of file DstTofTrack.h.

132{ m_errphi = errphi; }
double errphi() const
Definition DstTofTrack.h:84

Referenced by TofTrack::buildRecTofTrack(), RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setErrT0()

void DstTofTrack::setErrT0 ( double errt0)
inline

Definition at line 128 of file DstTofTrack.h.

128{ m_errt0 = errt0; }
double errt0() const
Definition DstTofTrack.h:80

Referenced by TofTrack::buildRecTofTrack(), RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setErrTof()

void DstTofTrack::setErrTof ( double etof)
inline

Definition at line 99 of file DstTofTrack.h.

99{ m_sigma[0] = etof; }

Referenced by TofTrack::buildRecTofTrack(), RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setErrZ()

void DstTofTrack::setErrZ ( double errz)
inline

Definition at line 130 of file DstTofTrack.h.

130{ m_errz = errz; }
double errz() const
Definition DstTofTrack.h:82

Referenced by TofTrack::buildRecTofTrack(), RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setPath()

void DstTofTrack::setPath ( double path)
inline

Definition at line 95 of file DstTofTrack.h.

95{ m_path = path; }
double path() const
Definition DstTofTrack.h:47

Referenced by TofTrack::buildRecTofTrack(), RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setPh()

void DstTofTrack::setPh ( double ph)
inline

Definition at line 97 of file DstTofTrack.h.

97{ m_ph = ph; }
double ph() const
Definition DstTofTrack.h:49

Referenced by TofTrack::setRecTofTrack(), RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setPhi()

void DstTofTrack::setPhi ( double phi)
inline

Definition at line 131 of file DstTofTrack.h.

131{ m_phi = phi; }
double phi() const
Definition DstTofTrack.h:83

Referenced by TofTrack::buildRecTofTrack(), RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setQuality()

void DstTofTrack::setQuality ( int quality)
inline

Definition at line 125 of file DstTofTrack.h.

125{ m_quality = quality; }
int quality() const
Definition DstTofTrack.h:77

Referenced by TofTrack::buildRecTofTrack(), RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setSigma()

void DstTofTrack::setSigma ( double sigma[6])
inline

Definition at line 117 of file DstTofTrack.h.

117{ for(int i=0; i<6; i++) { m_sigma[i]=sigma[i];} }
TTree * sigma

Referenced by TofTrack::buildRecTofTrack().

◆ setSigmaAntiProton()

void DstTofTrack::setSigmaAntiProton ( double spb)
inline

Definition at line 123 of file DstTofTrack.h.

123{ m_sigma[5] = spb; }

Referenced by RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setSigmaElectron()

void DstTofTrack::setSigmaElectron ( double se)
inline

Definition at line 118 of file DstTofTrack.h.

118{ m_sigma[0] = se; }

Referenced by TofTrack::setRecTofTrack(), RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setSigmaKaon()

void DstTofTrack::setSigmaKaon ( double sk)
inline

Definition at line 121 of file DstTofTrack.h.

121{ m_sigma[3] = sk; }

Referenced by RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setSigmaMuon()

void DstTofTrack::setSigmaMuon ( double smu)
inline

Definition at line 119 of file DstTofTrack.h.

119{ m_sigma[1] = smu; }

Referenced by RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setSigmaPion()

void DstTofTrack::setSigmaPion ( double spi)
inline

Definition at line 120 of file DstTofTrack.h.

120{ m_sigma[2] = spi; }

Referenced by RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setSigmaProton()

void DstTofTrack::setSigmaProton ( double sp)
inline

Definition at line 122 of file DstTofTrack.h.

122{ m_sigma[4] = sp; }

Referenced by RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setStatus()

void DstTofTrack::setStatus ( unsigned int status)
inline

◆ setT0()

void DstTofTrack::setT0 ( double t0)
inline

Definition at line 127 of file DstTofTrack.h.

127{ m_t0 = t0; }
double t0() const
Definition DstTofTrack.h:79

Referenced by TofTrack::buildRecTofTrack(), RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setTexp()

void DstTofTrack::setTexp ( double texp[5])
inline

Definition at line 102 of file DstTofTrack.h.

102{ for(int i=0; i<5; i++) { m_texp[i]=texp[i];} }
double texp(int i) const
Definition DstTofTrack.h:54

Referenced by TofTrack::buildRecTofTrack().

◆ setTexpElectron()

void DstTofTrack::setTexpElectron ( double texpe)
inline

Definition at line 103 of file DstTofTrack.h.

103{ m_texp[0] = texpe; }

Referenced by RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setTexpKaon()

void DstTofTrack::setTexpKaon ( double texpk)
inline

Definition at line 106 of file DstTofTrack.h.

106{ m_texp[3] = texpk; }

Referenced by RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setTexpMuon()

void DstTofTrack::setTexpMuon ( double texpmu)
inline

Definition at line 104 of file DstTofTrack.h.

104{ m_texp[1] = texpmu; }

Referenced by RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setTexpPion()

void DstTofTrack::setTexpPion ( double texppi)
inline

Definition at line 105 of file DstTofTrack.h.

105{ m_texp[2] = texppi; }

Referenced by RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setTexpProton()

void DstTofTrack::setTexpProton ( double texpp)
inline

Definition at line 107 of file DstTofTrack.h.

107{ m_texp[4] = texpp; }

Referenced by RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setTof()

void DstTofTrack::setTof ( double tof)
inline

Definition at line 98 of file DstTofTrack.h.

98{ m_tof = tof; }
double tof() const
Definition DstTofTrack.h:50

Referenced by TofTrack::setRecTofTrack(), RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setToffset()

void DstTofTrack::setToffset ( double toffset[6])
inline

Definition at line 109 of file DstTofTrack.h.

109{ for(int i=0; i<6; i++) { m_toffset[i]=toffset[i];} }
double toffset(int i) const
Definition DstTofTrack.h:61

Referenced by TofTrack::setRecTofTrack().

◆ setToffsetAntiProton()

void DstTofTrack::setToffsetAntiProton ( double topb)
inline

Definition at line 115 of file DstTofTrack.h.

115{ m_toffset[5] = topb; }

Referenced by RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setToffsetElectron()

void DstTofTrack::setToffsetElectron ( double toe)
inline

Definition at line 110 of file DstTofTrack.h.

110{ m_toffset[0] = toe; }

Referenced by RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setToffsetKaon()

void DstTofTrack::setToffsetKaon ( double tok)
inline

Definition at line 113 of file DstTofTrack.h.

113{ m_toffset[3] = tok; }

Referenced by RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setToffsetMuon()

void DstTofTrack::setToffsetMuon ( double tomu)
inline

Definition at line 111 of file DstTofTrack.h.

111{ m_toffset[1] = tomu; }

Referenced by RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setToffsetPion()

void DstTofTrack::setToffsetPion ( double topi)
inline

Definition at line 112 of file DstTofTrack.h.

112{ m_toffset[2] = topi; }

Referenced by RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setToffsetProton()

void DstTofTrack::setToffsetProton ( double top)
inline

Definition at line 114 of file DstTofTrack.h.

114{ m_toffset[4] = top; }

Referenced by RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setTofID()

void DstTofTrack::setTofID ( int tofID)
inline

◆ setTofTrackID()

void DstTofTrack::setTofTrackID ( int tofTrackID)
inline

Definition at line 90 of file DstTofTrack.h.

90{ m_tofTrackID = tofTrackID; }
int tofTrackID() const
Definition DstTofTrack.h:40

Referenced by TofTrack::buildRecTofTrack(), RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setTrackID()

void DstTofTrack::setTrackID ( int trackID)
inline

Definition at line 91 of file DstTofTrack.h.

91{ m_trackID = trackID; }
int trackID() const
Definition DstTofTrack.h:41

Referenced by TofTrack::buildRecTofTrack(), RecTofTrackCnv::TObjectToDataObject(), and TofTrackCnv::TObjectToDataObject().

◆ setZrHit()

void DstTofTrack::setZrHit ( double zrhit)
inline

◆ sigma()

double DstTofTrack::sigma ( int i) const
inline

Definition at line 69 of file DstTofTrack.h.

69{ return m_sigma[i]; }

◆ sigmaAntiProton()

double DstTofTrack::sigmaAntiProton ( ) const
inline

Definition at line 75 of file DstTofTrack.h.

75{ return m_sigma[5]; }

◆ sigmaElectron()

double DstTofTrack::sigmaElectron ( ) const
inline

Definition at line 70 of file DstTofTrack.h.

70{ return m_sigma[0]; }

Referenced by TofCheckData::Fill().

◆ sigmaKaon()

double DstTofTrack::sigmaKaon ( ) const
inline

Definition at line 73 of file DstTofTrack.h.

73{ return m_sigma[3]; }

Referenced by TofCheckData::Fill().

◆ sigmaMuon()

double DstTofTrack::sigmaMuon ( ) const
inline

Definition at line 71 of file DstTofTrack.h.

71{ return m_sigma[1]; }

Referenced by TofCheckData::Fill().

◆ sigmaPion()

double DstTofTrack::sigmaPion ( ) const
inline

Definition at line 72 of file DstTofTrack.h.

72{ return m_sigma[2]; }

Referenced by TofCheckData::Fill().

◆ sigmaProton()

double DstTofTrack::sigmaProton ( ) const
inline

Definition at line 74 of file DstTofTrack.h.

74{ return m_sigma[4]; }

Referenced by TofCheckData::Fill().

◆ status()

unsigned int DstTofTrack::status ( ) const
inline

Definition at line 45 of file DstTofTrack.h.

45{ return m_status; }

Referenced by TofCheckData::Fill(), TofHitStatus::operator=(), and setStatus().

◆ strip()

int DstTofTrack::strip ( )

Definition at line 56 of file DstTofTrack.cxx.

56 {
57 if( m_tofID<0 ) return -1;
58 if( TofHitStatus::is_mrpc( m_status ) ) {
59 return static_cast<int>( m_tofID%12 );
60 }
61 return -1;
62}
bool is_mrpc() const

Referenced by TofCheckData::Fill().

◆ t0()

double DstTofTrack::t0 ( ) const
inline

Definition at line 79 of file DstTofTrack.h.

79{ return m_t0; }

Referenced by TofCheckData::Fill(), and setT0().

◆ texp()

double DstTofTrack::texp ( int i) const
inline

Definition at line 54 of file DstTofTrack.h.

54{ return m_texp[i]; }

Referenced by setTexp().

◆ texpElectron()

double DstTofTrack::texpElectron ( ) const
inline

Definition at line 55 of file DstTofTrack.h.

55{ return m_texp[0]; }

Referenced by TofCheckData::Fill().

◆ texpKaon()

double DstTofTrack::texpKaon ( ) const
inline

Definition at line 58 of file DstTofTrack.h.

58{ return m_texp[3]; }

Referenced by TofCheckData::Fill().

◆ texpMuon()

double DstTofTrack::texpMuon ( ) const
inline

Definition at line 56 of file DstTofTrack.h.

56{ return m_texp[1]; }

Referenced by TofCheckData::Fill().

◆ texpPion()

double DstTofTrack::texpPion ( ) const
inline

Definition at line 57 of file DstTofTrack.h.

57{ return m_texp[2]; }

Referenced by TofCheckData::Fill().

◆ texpProton()

double DstTofTrack::texpProton ( ) const
inline

Definition at line 59 of file DstTofTrack.h.

59{ return m_texp[4]; }

Referenced by TofCheckData::Fill().

◆ tof()

double DstTofTrack::tof ( ) const
inline

Definition at line 50 of file DstTofTrack.h.

50{ return m_tof; }

Referenced by TofCheckData::Fill(), and setTof().

◆ toffset()

double DstTofTrack::toffset ( int i) const
inline

Definition at line 61 of file DstTofTrack.h.

61{ return m_toffset[i]; }

Referenced by setToffset().

◆ toffsetAntiProton()

double DstTofTrack::toffsetAntiProton ( ) const
inline

Definition at line 67 of file DstTofTrack.h.

67{ return m_toffset[5]; }

◆ toffsetElectron()

double DstTofTrack::toffsetElectron ( ) const
inline

Definition at line 62 of file DstTofTrack.h.

62{ return m_toffset[0]; }

Referenced by TofCheckData::Fill().

◆ toffsetKaon()

double DstTofTrack::toffsetKaon ( ) const
inline

Definition at line 65 of file DstTofTrack.h.

65{ return m_toffset[3]; }

Referenced by TofCheckData::Fill().

◆ toffsetMuon()

double DstTofTrack::toffsetMuon ( ) const
inline

Definition at line 63 of file DstTofTrack.h.

63{ return m_toffset[1]; }

Referenced by TofCheckData::Fill().

◆ toffsetPion()

double DstTofTrack::toffsetPion ( ) const
inline

Definition at line 64 of file DstTofTrack.h.

64{ return m_toffset[2]; }

Referenced by TofCheckData::Fill().

◆ toffsetProton()

double DstTofTrack::toffsetProton ( ) const
inline

Definition at line 66 of file DstTofTrack.h.

66{ return m_toffset[4]; }

Referenced by TofCheckData::Fill().

◆ tofID()

int DstTofTrack::tofID ( )

Definition at line 44 of file DstTofTrack.cxx.

44 {
45 if( m_tofID < 0 ) return m_tofID;
46 if( TofHitStatus::is_mrpc( m_status ) ) {
47 return static_cast<int>( m_tofID/12 );
48 }
49 else {
50 return m_tofID;
51 }
52 return -1;
53}

Referenced by TofCheckData::Fill(), and setTofID().

◆ tofTrackID()

int DstTofTrack::tofTrackID ( ) const
inline

◆ trackID()

int DstTofTrack::trackID ( ) const
inline

Definition at line 41 of file DstTofTrack.h.

41{ return m_trackID; }

Referenced by TofCheckData::Fill(), and setTrackID().

◆ zrhit()

double DstTofTrack::zrhit ( ) const
inline

Definition at line 48 of file DstTofTrack.h.

48{ return m_zrhit; }

Referenced by TofCheckData::Fill(), and setZrHit().


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