CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
TTofTrack.h
Go to the documentation of this file.
1#ifndef RootEventData_TTofTrack_H
2#define RootEventData_TTofTrack_H 1
3
4#include "TObject.h"
5#include <vector>
6
7using namespace std;
8
9
10class TTofTrack : public TObject {
11
12public:
13
15 ~TTofTrack ();
16
17 void setTofTrackID(Int_t tofTrackID) { m_tofTrackID = tofTrackID; }
18 void setTrackID(Int_t trackID) { m_trackID = trackID; }
19 void setTofID(Int_t tofID) { m_tofID = tofID; }
20 void setStatus(UInt_t status) { m_status = status; }
21 void setPath(Double_t path) { m_path = path; }
22 void setZrHit(Double_t zrhit) { m_zrhit = zrhit; }
23 void setPh(Double_t ph) { m_ph = ph; }
24 void setTof(Double_t tof) { m_tof = tof; }
25 void setErrTof(Double_t etof) { m_sigma[0] = etof; }
26 void setBeta(Double_t beta) { m_beta = beta; }
27 void setTexp(Double_t texp[5]) { for(Int_t i=0; i<5; i++) { m_texp[i]=texp[i];} }
28 void setTexpElectron(Double_t texpe) { m_texp[0] = texpe; }
29 void setTexpMuon(Double_t texpmu) { m_texp[1] = texpmu; }
30 void setTexpPion(Double_t texppi) { m_texp[2] = texppi; }
31 void setTexpKaon(Double_t texpk) { m_texp[3] = texpk; }
32 void setTexpProton(Double_t texpp) { m_texp[4] = texpp; }
33 void setToffset(Double_t toffset[6]) { for(Int_t i=0; i<6; i++) { m_toffset[i]=toffset[i];} }
34 void setToffsetElectron(Double_t toe) { m_toffset[0] = toe; }
35 void setToffsetMuon(Double_t tomu) { m_toffset[1] = tomu; }
36 void setToffsetPion(Double_t topi) { m_toffset[2] = topi; }
37 void setToffsetKaon(Double_t tok) { m_toffset[3] = tok; }
38 void setToffsetProton(Double_t top) { m_toffset[4] = top; }
39 void setToffsetAntiProton(Double_t topb){ m_toffset[5] = topb; }
40 void setSigma(Double_t sigma[6]) { for(Int_t i=0; i<6; i++) { m_sigma[i]=sigma[i];} }
41 void setSigmaElectron(Double_t se) { m_sigma[0] = se; }
42 void setSigmaMuon(Double_t smu) { m_sigma[1] = smu; }
43 void setSigmaPion(Double_t spi) { m_sigma[2] = spi; }
44 void setSigmaKaon(Double_t sk) { m_sigma[3] = sk; }
45 void setSigmaProton(Double_t sp) { m_sigma[4] = sp; }
46 void setSigmaAntiProton(Double_t spb) { m_sigma[5] = spb; }
47
48 void setQuality(Int_t quality) { m_quality = quality; }
49
50 void setT0(Double_t t0) { m_t0 = t0; }
51 void setErrT0(Double_t errt0) { m_errt0 = errt0; }
52
53 void setErrZ(Double_t errz) { m_errz = errz; }
54 void setPhi(Double_t phi) { m_phi = phi; }
55 void setErrPhi(Double_t errphi) { m_errphi = errphi; }
56 void setEnergy(Double_t energy) { m_energy = energy; }
57 void setErrEnergy(Double_t errenergy) { m_errenergy = errenergy; }
58
59 Int_t tofTrackID() const { return m_tofTrackID; }
60 Int_t trackID() const { return m_trackID; }
61 Int_t tofID() const { return m_tofID; }
62
63 UInt_t status() const { return m_status; }
64
65 Double_t path() const { return m_path; }
66 Double_t zrhit() const { return m_zrhit; }
67 Double_t ph() const { return m_ph; }
68 Double_t tof() const { return m_tof; }
69 Double_t errtof() const { return m_sigma[0]; }
70 Double_t beta() const { return m_beta; }
71
72 Double_t texp(Int_t i) const { return m_texp[i]; }
73 Double_t texpElectron() const { return m_texp[0]; }
74 Double_t texpMuon() const { return m_texp[1]; }
75 Double_t texpPion() const { return m_texp[2]; }
76 Double_t texpKaon() const { return m_texp[3]; }
77 Double_t texpProton() const { return m_texp[4]; }
78
79 Double_t toffset(Int_t i) const { return m_toffset[i]; }
80 Double_t toffsetElectron() const { return m_toffset[0]; }
81 Double_t toffsetMuon() const { return m_toffset[1]; }
82 Double_t toffsetPion() const { return m_toffset[2]; }
83 Double_t toffsetKaon() const { return m_toffset[3]; }
84 Double_t toffsetProton() const { return m_toffset[4]; }
85 Double_t toffsetAntiProton() const { return m_toffset[5]; }
86
87 Double_t sigma(Int_t i) const { return m_sigma[i]; }
88 Double_t sigmaElectron() const { return m_sigma[0]; }
89 Double_t sigmaMuon() const { return m_sigma[1]; }
90 Double_t sigmaPion() const { return m_sigma[2]; }
91 Double_t sigmaKaon() const { return m_sigma[3]; }
92 Double_t sigmaProton() const { return m_sigma[4]; }
93 Double_t sigmaAntiProton() const { return m_sigma[5]; }
94
95 Int_t quality() const { return m_quality; }
96
97 Double_t t0() const { return m_t0; }
98 Double_t errt0() const { return m_errt0; }
99
100 Double_t errz() const { return m_errz; }
101 Double_t phi() const { return m_phi; }
102 Double_t errphi() const { return m_errphi; }
103 Double_t energy() const { return m_energy; }
104 Double_t errenergy() const { return m_errenergy; }
105
106 private:
107
108 Int_t m_tofTrackID; // The ID of Tof Cluster reconstruction
109 Int_t m_trackID; // Track ID from MDC / Shower ID from EMC.
110 Int_t m_tofID; // Tof Counter ID.
111 UInt_t m_status; // Status.
112 // 0x0000 0000
113 // 0 0 0 0 0 0 0 0
114 // | | | BR / 1 EC | | | raw
115 // | | East / 1 West | | ReadOut Unit
116 // No Hit | Counter
117 // 01 1st Layer Cluster
118 // 10 2nd Layer / 11 both Layers
119 // 0x 00 00 00 00 00(used)
120 // | | counter number
121 // | east readout number
122 // west readout number
123
124 Double_t m_path; // Distance of flight.
125 Double_t m_zrhit; // Track extrapolate Z or R Hit position.
126 Double_t m_ph; // Pulse height.
127 Double_t m_tof; // Time of flight.
128 Double_t m_beta; // Beta value of the track.
129 Double_t m_texp[5]; // Expected time of flight of 5 sorts of particle.
130 Double_t m_toffset[6]; // Time offset of e, mu, pi, k and p and pbar.
131 Double_t m_sigma[6]; // Time resolution of 5+1 sorts of particle.
132 Int_t m_quality; // Data quality of reconstruction.
133 // 1: good charged track
134 // 2: neutral track with good hit
135 // 0: ZT-ZTDC didnot match
136 // 3: no hit in counter
137 // 4: two hits in counter
138 // 5: more than two hits in counter
139 // 6: only single end output of one layer
140 // 7: two hits in counter with bad match with ZTDC
141 // 10: initialize
142 // ......
143 Double_t m_t0; // t0 from data set calibration.
144 Double_t m_errt0; // t0 sigma from tof calibration.
145
146 Double_t m_errz; // Error of zTDC(m_zrhit) for neutral track.
147 Double_t m_phi; // Angle of phi used for neutral track.
148 Double_t m_errphi; // Error of angle of phi.
149 Double_t m_energy; // Energy deposit for neutral track.
150 Double_t m_errenergy; // Error of energy deposit for neutral track.
151
152 ClassDef(TTofTrack,2)
153};
154
155#endif
Double_t errt0() const
Definition TTofTrack.h:98
Double_t ph() const
Definition TTofTrack.h:67
Double_t toffsetPion() const
Definition TTofTrack.h:82
void setSigmaElectron(Double_t se)
Definition TTofTrack.h:41
void setSigmaKaon(Double_t sk)
Definition TTofTrack.h:44
Double_t energy() const
Definition TTofTrack.h:103
void setSigmaMuon(Double_t smu)
Definition TTofTrack.h:42
void setToffsetMuon(Double_t tomu)
Definition TTofTrack.h:35
Double_t sigmaMuon() const
Definition TTofTrack.h:89
void setToffsetPion(Double_t topi)
Definition TTofTrack.h:36
Double_t toffsetMuon() const
Definition TTofTrack.h:81
void setPhi(Double_t phi)
Definition TTofTrack.h:54
void setPh(Double_t ph)
Definition TTofTrack.h:23
Double_t texpKaon() const
Definition TTofTrack.h:76
Double_t phi() const
Definition TTofTrack.h:101
void setEnergy(Double_t energy)
Definition TTofTrack.h:56
void setT0(Double_t t0)
Definition TTofTrack.h:50
Double_t sigmaElectron() const
Definition TTofTrack.h:88
void setToffsetProton(Double_t top)
Definition TTofTrack.h:38
void setToffsetAntiProton(Double_t topb)
Definition TTofTrack.h:39
void setTexpKaon(Double_t texpk)
Definition TTofTrack.h:31
Double_t toffsetAntiProton() const
Definition TTofTrack.h:85
Double_t sigmaPion() const
Definition TTofTrack.h:90
void setTof(Double_t tof)
Definition TTofTrack.h:24
void setBeta(Double_t beta)
Definition TTofTrack.h:26
void setToffsetKaon(Double_t tok)
Definition TTofTrack.h:37
void setTexpProton(Double_t texpp)
Definition TTofTrack.h:32
Int_t tofID() const
Definition TTofTrack.h:61
Double_t errenergy() const
Definition TTofTrack.h:104
Double_t sigmaAntiProton() const
Definition TTofTrack.h:93
Double_t path() const
Definition TTofTrack.h:65
Double_t sigmaKaon() const
Definition TTofTrack.h:91
void setSigmaPion(Double_t spi)
Definition TTofTrack.h:43
void setTexpMuon(Double_t texpmu)
Definition TTofTrack.h:29
Double_t beta() const
Definition TTofTrack.h:70
void setSigmaProton(Double_t sp)
Definition TTofTrack.h:45
void setZrHit(Double_t zrhit)
Definition TTofTrack.h:22
void setTofTrackID(Int_t tofTrackID)
Definition TTofTrack.h:17
void setErrT0(Double_t errt0)
Definition TTofTrack.h:51
void setSigma(Double_t sigma[6])
Definition TTofTrack.h:40
void setErrZ(Double_t errz)
Definition TTofTrack.h:53
Double_t texp(Int_t i) const
Definition TTofTrack.h:72
Double_t errphi() const
Definition TTofTrack.h:102
void setToffset(Double_t toffset[6])
Definition TTofTrack.h:33
void setQuality(Int_t quality)
Definition TTofTrack.h:48
Double_t texpProton() const
Definition TTofTrack.h:77
void setStatus(UInt_t status)
Definition TTofTrack.h:20
void setTrackID(Int_t trackID)
Definition TTofTrack.h:18
Double_t zrhit() const
Definition TTofTrack.h:66
Double_t toffset(Int_t i) const
Definition TTofTrack.h:79
void setTexpPion(Double_t texppi)
Definition TTofTrack.h:30
Double_t toffsetProton() const
Definition TTofTrack.h:84
Int_t quality() const
Definition TTofTrack.h:95
void setToffsetElectron(Double_t toe)
Definition TTofTrack.h:34
Double_t texpPion() const
Definition TTofTrack.h:75
Int_t tofTrackID() const
Definition TTofTrack.h:59
void setTofID(Int_t tofID)
Definition TTofTrack.h:19
Double_t texpElectron() const
Definition TTofTrack.h:73
Double_t t0() const
Definition TTofTrack.h:97
Double_t sigmaProton() const
Definition TTofTrack.h:92
void setTexpElectron(Double_t texpe)
Definition TTofTrack.h:28
Double_t tof() const
Definition TTofTrack.h:68
void setSigmaAntiProton(Double_t spb)
Definition TTofTrack.h:46
void setTexp(Double_t texp[5])
Definition TTofTrack.h:27
void setErrPhi(Double_t errphi)
Definition TTofTrack.h:55
void setErrTof(Double_t etof)
Definition TTofTrack.h:25
Double_t errz() const
Definition TTofTrack.h:100
UInt_t status() const
Definition TTofTrack.h:63
Double_t toffsetElectron() const
Definition TTofTrack.h:80
Double_t texpMuon() const
Definition TTofTrack.h:74
void setPath(Double_t path)
Definition TTofTrack.h:21
Double_t toffsetKaon() const
Definition TTofTrack.h:83
Double_t sigma(Int_t i) const
Definition TTofTrack.h:87
Double_t errtof() const
Definition TTofTrack.h:69
Int_t trackID() const
Definition TTofTrack.h:60
void setErrEnergy(Double_t errenergy)
Definition TTofTrack.h:57