BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RootEventData/RootEventData-00-03-81/RootEventData/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
TTree * sigma