BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
AsciiData.hh
Go to the documentation of this file.
1#ifndef _AsciiData_h_
2#define _AsciiData_h_
3
4#include <string>
5#include <iostream>
6#include <vector>
7
8#include "dmplib.hh"
9
10using std::string;
11
12class FRMTVERSION : public Tagged {
13public:
15public:
16 int major;
17 int minor;
18 friend std::istream& operator>>(std::istream&, FRMTVERSION& x);
19 friend std::ostream& operator<<(std::ostream&, const FRMTVERSION& x);
20};
21
22class EVHEAD : public Tagged {
23public:
24 EVHEAD() {};
25public:
26 int runNo;
28 friend std::istream& operator>>(std::istream&, EVHEAD& x);
29 friend std::ostream& operator<<(std::ostream&, const EVHEAD& x);
30};
31
32class DECAYMODE : public Tagged {
33 public:
34 DECAYMODE () {};
35 public:
36 int size;
37 int data[10];
38 friend std::istream& operator>>(std::istream&, DECAYMODE& x);
39 friend std::ostream& operator<<(std::ostream&, const DECAYMODE& x);
40};
41
43public:
45public:
48 float PDGCharge;
51 float px;
52 float py;
53 float pz;
54 float E;
57};
58
59class TRACKTRUTH : public Tagged {
60public:
62public:
63 int nTruth;
64 std::vector<TrackTruthType> truthCol;
65 friend std::istream& operator>>(std::istream&, TRACKTRUTH& x);
66 friend std::ostream& operator<<(std::ostream&, const TRACKTRUTH& x);
67};
68
70public:
72public:
75 float posX;
76 float posY;
77 float posZ;
78 float time;
79};
80
81class VERTEXTRUTH : public Tagged {
82public:
84public:
85 int nTruth;
86 std::vector<VertexTruthType> truthCol;
87 friend std::istream& operator>>(std::istream&, VERTEXTRUTH& x);
88 friend std::ostream& operator<<(std::ostream&, const VERTEXTRUTH& x);
89};
90
91
93public:
95public:
98 int cellNo;
99 float edep;
100 float driftD;
101 float posX;
102 float posY;
103 float posZ;
105 friend std::istream& operator>>(std::istream&, MdcTruthType& x);
106 friend std::ostream& operator<<(std::ostream&, const MdcTruthType& x);
107};
108
109class MDCTRUTH : public Tagged {
110public:
112public:
114 std::vector<MdcTruthType> truthCol;
115 friend std::istream& operator>>(std::istream&, MDCTRUTH& x);
116 friend std::ostream& operator<<(std::ostream&, const MDCTRUTH& x);
117};
118
120public:
122public:
126 float posX;
127 float posY;
128 float posZ;
129 float px;
130 float py;
131 float pz;
132 float trackL;
133 float time;
134 friend std::istream& operator>>(std::istream&, TofTruthType& x);
135 friend std::ostream& operator<<(std::ostream&, const TofTruthType& x);
136};
137
138class TOFTRUTH : public Tagged {
139public:
141public:
143 std::vector<TofTruthType> truthCol;
144 friend std::istream& operator>>(std::istream&, TOFTRUTH& x);
145 friend std::ostream& operator<<(std::ostream&, const TOFTRUTH& x);
146};
147
149public:
151public:
156 float posX;
157 float posY;
158 float posZ;
159 float px;
160 float py;
161 float pz;
163 friend std::istream& operator>>(std::istream&, EmcTruthType& x);
164 friend std::ostream& operator<<(std::ostream&, const EmcTruthType& x);
165};
166
167class EMCTRUTH : public Tagged {
168public:
170public:
172 std::vector<EmcTruthType> truthCol;
173 friend std::istream& operator>>(std::istream&, EMCTRUTH& x);
174 friend std::ostream& operator<<(std::ostream&, const EMCTRUTH& x);
175};
176
178public:
180public:
183 int segId;
184 int gapId;
186 float posX;
187 float posY;
188 float posZ;
189 float px;
190 float py;
191 float pz;
192 friend std::istream& operator>>(std::istream&, MucTruthType& x);
193 friend std::ostream& operator<<(std::ostream&, const MucTruthType& x);
194};
195
196class MUCTRUTH : public Tagged {
197public:
199public:
201 std::vector<MucTruthType> truthCol;
202 friend std::istream& operator>>(std::istream&, MUCTRUTH& x);
203 friend std::ostream& operator<<(std::ostream&, const MUCTRUTH& x);
204};
205
207public:
209public:
215 friend std::istream& operator>>(std::istream&, MdcDigiType& x);
216 friend std::ostream& operator<<(std::ostream&, const MdcDigiType& x);
217};
218
219class MDCDIGI : public Tagged {
220public:
222public:
223 int nDigi;
224 std::vector<MdcDigiType> digiCol;
225 friend std::istream& operator>>(std::istream&, MDCDIGI& x);
226 friend std::ostream& operator<<(std::ostream&, const MDCDIGI& x);
227};
228
230public:
232public:
236 float posX;
237 float posY;
238 float posZ;
241 float globalT;
242 float theta;
244 float posFlag;
245 friend std::istream& operator>>(std::istream&, MdcHitType& x);
246 friend std::ostream& operator<<(std::ostream&, const MdcHitType& x);
247};
248
249class MDCHIT : public Tagged {
250public:
251 MDCHIT() {};
252public:
253 int nHit;
254 std::vector<MdcHitType> hitCol;
255 friend std::istream& operator>>(std::istream&, MDCHIT& x);
256 friend std::ostream& operator<<(std::ostream&, const MDCHIT& x);
257};
258
260public:
262public:
266 float forwADC;
267 float forwTDC;
268 float backADC;
269 float backTDC;
270
271 friend std::istream& operator>>(std::istream&, TofDigiType& x);
272 friend std::ostream& operator<<(std::ostream&, const TofDigiType& x);
273};
274
275class TOFDIGI : public Tagged {
276public:
278public:
279 int nDigi;
280 std::vector<TofDigiType> digiCol;
281 friend std::istream& operator>>(std::istream&, TOFDIGI& x);
282 friend std::ostream& operator<<(std::ostream&, const TOFDIGI& x);
283};
284
286public:
288public:
289
290 friend std::istream& operator>>(std::istream&, TofHitType& x);
291 friend std::ostream& operator<<(std::ostream&, const TofHitType& x);
292};
293
294class TOFHIT : public Tagged {
295public:
296 TOFHIT() {};
297public:
298 int nHit;
299 std::vector<TofHitType> hitCol;
300 friend std::istream& operator>>(std::istream&, TOFHIT& x);
301 friend std::ostream& operator<<(std::ostream&, const TOFHIT& x);
302};
303
305public:
307public:
313 float hitTime;
314 friend std::istream& operator>>(std::istream&, EmcDigiType& x);
315 friend std::ostream& operator<<(std::ostream&, const EmcDigiType& x);
316};
317
318class EMCDIGI : public Tagged {
319public:
321public:
322 int nDigi;
323 std::vector<EmcDigiType> digiCol;
324 friend std::istream& operator>>(std::istream&, EMCDIGI& x);
325 friend std::ostream& operator<<(std::ostream&, const EMCDIGI& x);
326};
327
329public:
331public:
332
333 friend std::istream& operator>>(std::istream&, EmcHitType& x);
334 friend std::ostream& operator<<(std::ostream&, const EmcHitType& x);
335};
336
337class EMCHIT : public Tagged {
338public:
339 EMCHIT() {};
340public:
341 int nHit;
342 std::vector<EmcHitType> hitCol;
343 friend std::istream& operator>>(std::istream&, EMCHIT& x);
344 friend std::ostream& operator<<(std::ostream&, const EMCHIT& x);
345};
346
348public:
350public:
353 int segNo;
354 int gapNo;
356 friend std::istream& operator>>(std::istream&, MucDigiType& x);
357 friend std::ostream& operator<<(std::ostream&, const MucDigiType& x);
358};
359
360class MUCDIGI : public Tagged {
361public:
363public:
364 int nDigi;
365 std::vector<MucDigiType> digiCol;
366 friend std::istream& operator>>(std::istream&, MUCDIGI& x);
367 friend std::ostream& operator<<(std::ostream&, const MUCDIGI& x);
368};
369
371public:
373public:
374
375 friend std::istream& operator>>(std::istream&, MucHitType& x);
376 friend std::ostream& operator<<(std::ostream&, const MucHitType& x);
377};
378
379class MUCHIT : public Tagged {
380public:
381 MUCHIT() {};
382public:
383 int nHit;
384 std::vector<MucHitType> hitCol;
385 friend std::istream& operator>>(std::istream&, MUCHIT& x);
386 friend std::ostream& operator<<(std::ostream&, const MUCHIT& x);
387};
388
389class EVENT : public Tagged {
390public:
391 EVENT() {};
392public:
405 friend std::istream& operator>>(std::istream&, EVENT& x);
406 friend std::ostream& operator<<(std::ostream&, const EVENT& x);
407};
408
409class HitEVENT : public Tagged {
410public:
412public:
425 friend std::istream& operator>>(std::istream&, HitEVENT& x);
426 friend std::ostream& operator<<(std::ostream&, const HitEVENT& x);
427};
428
429#endif // _AsciiData_h_
int size
Definition: AsciiData.hh:36
friend std::istream & operator>>(std::istream &, DECAYMODE &x)
Definition: AsciiData.cc:48
friend std::ostream & operator<<(std::ostream &, const DECAYMODE &x)
Definition: AsciiData.cc:60
int data[10]
Definition: AsciiData.hh:37
friend std::istream & operator>>(std::istream &, EMCDIGI &x)
Definition: AsciiData.cc:636
friend std::ostream & operator<<(std::ostream &, const EMCDIGI &x)
Definition: AsciiData.cc:649
std::vector< EmcDigiType > digiCol
Definition: AsciiData.hh:323
int nDigi
Definition: AsciiData.hh:322
friend std::istream & operator>>(std::istream &, EMCHIT &x)
Definition: AsciiData.cc:674
EMCHIT()
Definition: AsciiData.hh:339
friend std::ostream & operator<<(std::ostream &, const EMCHIT &x)
Definition: AsciiData.cc:687
std::vector< EmcHitType > hitCol
Definition: AsciiData.hh:342
int nHit
Definition: AsciiData.hh:341
friend std::istream & operator>>(std::istream &, EMCTRUTH &x)
Definition: AsciiData.cc:330
friend std::ostream & operator<<(std::ostream &, const EMCTRUTH &x)
Definition: AsciiData.cc:343
int nTruth
Definition: AsciiData.hh:171
std::vector< EmcTruthType > truthCol
Definition: AsciiData.hh:172
friend std::ostream & operator<<(std::ostream &, const EVENT &x)
Definition: AsciiData.cc:866
TRACKTRUTH trackTruth
Definition: AsciiData.hh:395
TOFDIGI tofDigi
Definition: AsciiData.hh:400
MDCTRUTH mdcTruth
Definition: AsciiData.hh:397
EVENT()
Definition: AsciiData.hh:391
MDCDIGI mdcDigi
Definition: AsciiData.hh:398
VERTEXTRUTH vertexTruth
Definition: AsciiData.hh:396
MUCDIGI mucDigi
Definition: AsciiData.hh:404
EMCTRUTH emcTruth
Definition: AsciiData.hh:401
MUCTRUTH mucTruth
Definition: AsciiData.hh:403
friend std::istream & operator>>(std::istream &, EVENT &x)
Definition: AsciiData.cc:786
EVHEAD header
Definition: AsciiData.hh:393
DECAYMODE decayMode
Definition: AsciiData.hh:394
EMCDIGI emcDigi
Definition: AsciiData.hh:402
TOFTRUTH tofTruth
Definition: AsciiData.hh:399
friend std::ostream & operator<<(std::ostream &, const EVHEAD &x)
Definition: AsciiData.cc:37
int runNo
Definition: AsciiData.hh:26
EVHEAD()
Definition: AsciiData.hh:24
int eventNo
Definition: AsciiData.hh:27
friend std::istream & operator>>(std::istream &, EVHEAD &x)
Definition: AsciiData.cc:27
float hitTime
Definition: AsciiData.hh:313
float energyDeposit
Definition: AsciiData.hh:312
friend std::ostream & operator<<(std::ostream &, const EmcDigiType &x)
Definition: AsciiData.cc:624
int trackIndex
Definition: AsciiData.hh:308
friend std::istream & operator>>(std::istream &, EmcDigiType &x)
Definition: AsciiData.cc:613
friend std::ostream & operator<<(std::ostream &, const EmcHitType &x)
Definition: AsciiData.cc:667
friend std::istream & operator>>(std::istream &, EmcHitType &x)
Definition: AsciiData.cc:662
float totalEdep
Definition: AsciiData.hh:162
friend std::istream & operator>>(std::istream &, EmcTruthType &x)
Definition: AsciiData.cc:296
friend std::ostream & operator<<(std::ostream &, const EmcTruthType &x)
Definition: AsciiData.cc:312
friend std::istream & operator>>(std::istream &, FRMTVERSION &x)
Definition: AsciiData.cc:6
friend std::ostream & operator<<(std::ostream &, const FRMTVERSION &x)
Definition: AsciiData.cc:16
TOFTRUTH tofTruth
Definition: AsciiData.hh:419
MDCTRUTH mdcTruth
Definition: AsciiData.hh:417
MUCTRUTH mucTruth
Definition: AsciiData.hh:423
MDCHIT mdcHit
Definition: AsciiData.hh:418
EVHEAD header
Definition: AsciiData.hh:413
friend std::ostream & operator<<(std::ostream &, const HitEVENT &x)
Definition: AsciiData.cc:967
EMCHIT emcHit
Definition: AsciiData.hh:422
VERTEXTRUTH vertexTruth
Definition: AsciiData.hh:416
TOFHIT tofHit
Definition: AsciiData.hh:420
EMCTRUTH emcTruth
Definition: AsciiData.hh:421
TRACKTRUTH trackTruth
Definition: AsciiData.hh:415
DECAYMODE decayMode
Definition: AsciiData.hh:414
friend std::istream & operator>>(std::istream &, HitEVENT &x)
Definition: AsciiData.cc:887
MUCHIT mucHit
Definition: AsciiData.hh:424
friend std::ostream & operator<<(std::ostream &, const MDCDIGI &x)
Definition: AsciiData.cc:449
int nDigi
Definition: AsciiData.hh:223
std::vector< MdcDigiType > digiCol
Definition: AsciiData.hh:224
friend std::istream & operator>>(std::istream &, MDCDIGI &x)
Definition: AsciiData.cc:436
int nHit
Definition: AsciiData.hh:253
friend std::ostream & operator<<(std::ostream &, const MDCHIT &x)
Definition: AsciiData.cc:510
MDCHIT()
Definition: AsciiData.hh:251
std::vector< MdcHitType > hitCol
Definition: AsciiData.hh:254
friend std::istream & operator>>(std::istream &, MDCHIT &x)
Definition: AsciiData.cc:497
friend std::ostream & operator<<(std::ostream &, const MDCTRUTH &x)
Definition: AsciiData.cc:224
int nTruth
Definition: AsciiData.hh:113
friend std::istream & operator>>(std::istream &, MDCTRUTH &x)
Definition: AsciiData.cc:211
std::vector< MdcTruthType > truthCol
Definition: AsciiData.hh:114
int nDigi
Definition: AsciiData.hh:364
std::vector< MucDigiType > digiCol
Definition: AsciiData.hh:365
friend std::istream & operator>>(std::istream &, MUCDIGI &x)
Definition: AsciiData.cc:722
friend std::ostream & operator<<(std::ostream &, const MUCDIGI &x)
Definition: AsciiData.cc:735
std::vector< MucHitType > hitCol
Definition: AsciiData.hh:384
friend std::ostream & operator<<(std::ostream &, const MUCHIT &x)
Definition: AsciiData.cc:773
friend std::istream & operator>>(std::istream &, MUCHIT &x)
Definition: AsciiData.cc:760
MUCHIT()
Definition: AsciiData.hh:381
int nHit
Definition: AsciiData.hh:383
friend std::istream & operator>>(std::istream &, MUCTRUTH &x)
Definition: AsciiData.cc:389
std::vector< MucTruthType > truthCol
Definition: AsciiData.hh:201
int nTruth
Definition: AsciiData.hh:200
friend std::ostream & operator<<(std::ostream &, const MUCTRUTH &x)
Definition: AsciiData.cc:402
float driftTime
Definition: AsciiData.hh:214
friend std::istream & operator>>(std::istream &, MdcDigiType &x)
Definition: AsciiData.cc:415
float energyDeposit
Definition: AsciiData.hh:213
int trackIndex
Definition: AsciiData.hh:210
friend std::ostream & operator<<(std::ostream &, const MdcDigiType &x)
Definition: AsciiData.cc:425
float posFlag
Definition: AsciiData.hh:244
float driftDistance
Definition: AsciiData.hh:240
friend std::ostream & operator<<(std::ostream &, const MdcHitType &x)
Definition: AsciiData.cc:479
float enterAngle
Definition: AsciiData.hh:243
int trackIndex
Definition: AsciiData.hh:233
friend std::istream & operator>>(std::istream &, MdcHitType &x)
Definition: AsciiData.cc:462
float posX
Definition: AsciiData.hh:236
float posY
Definition: AsciiData.hh:237
float posZ
Definition: AsciiData.hh:238
float energyDeposit
Definition: AsciiData.hh:239
float globalT
Definition: AsciiData.hh:241
float theta
Definition: AsciiData.hh:242
friend std::ostream & operator<<(std::ostream &, const MdcTruthType &x)
Definition: AsciiData.cc:196
float driftD
Definition: AsciiData.hh:100
friend std::istream & operator>>(std::istream &, MdcTruthType &x)
Definition: AsciiData.cc:182
float edep
Definition: AsciiData.hh:99
int trackIndex
Definition: AsciiData.hh:96
friend std::ostream & operator<<(std::ostream &, const MucDigiType &x)
Definition: AsciiData.cc:710
int trackIndex
Definition: AsciiData.hh:351
friend std::istream & operator>>(std::istream &, MucDigiType &x)
Definition: AsciiData.cc:700
friend std::istream & operator>>(std::istream &, MucHitType &x)
Definition: AsciiData.cc:748
friend std::ostream & operator<<(std::ostream &, const MucHitType &x)
Definition: AsciiData.cc:753
friend std::ostream & operator<<(std::ostream &, const MucTruthType &x)
Definition: AsciiData.cc:372
friend std::istream & operator>>(std::istream &, MucTruthType &x)
Definition: AsciiData.cc:356
friend std::ostream & operator<<(std::ostream &, const TOFDIGI &x)
Definition: AsciiData.cc:562
friend std::istream & operator>>(std::istream &, TOFDIGI &x)
Definition: AsciiData.cc:549
int nDigi
Definition: AsciiData.hh:279
std::vector< TofDigiType > digiCol
Definition: AsciiData.hh:280
friend std::istream & operator>>(std::istream &, TOFHIT &x)
Definition: AsciiData.cc:587
friend std::ostream & operator<<(std::ostream &, const TOFHIT &x)
Definition: AsciiData.cc:600
std::vector< TofHitType > hitCol
Definition: AsciiData.hh:299
int nHit
Definition: AsciiData.hh:298
TOFHIT()
Definition: AsciiData.hh:296
int nTruth
Definition: AsciiData.hh:142
friend std::ostream & operator<<(std::ostream &, const TOFTRUTH &x)
Definition: AsciiData.cc:283
std::vector< TofTruthType > truthCol
Definition: AsciiData.hh:143
friend std::istream & operator>>(std::istream &, TOFTRUTH &x)
Definition: AsciiData.cc:270
std::vector< TrackTruthType > truthCol
Definition: AsciiData.hh:64
int nTruth
Definition: AsciiData.hh:63
friend std::istream & operator>>(std::istream &, TRACKTRUTH &x)
Definition: AsciiData.cc:106
friend std::ostream & operator<<(std::ostream &, const TRACKTRUTH &x)
Definition: AsciiData.cc:119
Definition: dmplib.hh:45
friend std::ostream & operator<<(std::ostream &, const TofDigiType &x)
Definition: AsciiData.cc:535
float backADC
Definition: AsciiData.hh:268
float backTDC
Definition: AsciiData.hh:269
float forwTDC
Definition: AsciiData.hh:267
int trackIndex
Definition: AsciiData.hh:263
float forwADC
Definition: AsciiData.hh:266
friend std::istream & operator>>(std::istream &, TofDigiType &x)
Definition: AsciiData.cc:523
friend std::ostream & operator<<(std::ostream &, const TofHitType &x)
Definition: AsciiData.cc:580
friend std::istream & operator>>(std::istream &, TofHitType &x)
Definition: AsciiData.cc:575
float trackL
Definition: AsciiData.hh:132
friend std::ostream & operator<<(std::ostream &, const TofTruthType &x)
Definition: AsciiData.cc:253
friend std::istream & operator>>(std::istream &, TofTruthType &x)
Definition: AsciiData.cc:237
int minDaughterIndex
Definition: AsciiData.hh:55
int maxDaughterIndex
Definition: AsciiData.hh:56
float PDGCharge
Definition: AsciiData.hh:48
friend std::istream & operator>>(std::istream &, VERTEXTRUTH &x)
Definition: AsciiData.cc:155
friend std::ostream & operator<<(std::ostream &, const VERTEXTRUTH &x)
Definition: AsciiData.cc:168
std::vector< VertexTruthType > truthCol
Definition: AsciiData.hh:86
int parentTrackIndex
Definition: AsciiData.hh:74