BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/AsciiDmp/AsciiDmp/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;
27 int eventNo;
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
42class TrackTruthType {
43public:
45public:
46 int trackIndex;
47 int PDGCode;
48 float PDGCharge;
49 int v0Index;
50 int v1Index;
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
69class VertexTruthType {
70public:
72public:
73 int vertexIndex;
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
92class MdcTruthType {
93public:
95public:
96 int trackIndex;
97 int layerNo;
98 int cellNo;
99 float edep;
100 float driftD;
101 float posX;
102 float posY;
103 float posZ;
104 int posFlag;
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:
113 int nTruth;
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
119class TofTruthType {
120public:
122public:
123 int trackIndex;
124 int partId;
125 int scinNb;
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:
142 int nTruth;
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
148class EmcTruthType {
149public:
151public:
152 int trackIndex;
153 int partId;
154 int numTheta;
155 int numPhi;
156 float posX;
157 float posY;
158 float posZ;
159 float px;
160 float py;
161 float pz;
162 float totalEdep;
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:
171 int nTruth;
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
177class MucTruthType {
178public:
180public:
181 int trackIndex;
182 int partId;
183 int segId;
184 int gapId;
185 int stripId;
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:
200 int nTruth;
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
206class MdcDigiType {
207public:
209public:
210 int trackIndex;
211 int layerNo;
212 int cellNo;
213 float energyDeposit;
214 float driftTime;
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
229class MdcHitType {
230public:
232public:
233 int trackIndex;
234 int layerNo;
235 int cellNo;
236 float posX;
237 float posY;
238 float posZ;
239 float energyDeposit;
240 float driftDistance;
241 float globalT;
242 float theta;
243 float enterAngle;
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
259class TofDigiType {
260public:
262public:
263 int trackIndex;
264 int partId;
265 int scinNb;
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
285class TofHitType {
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
304class EmcDigiType {
305public:
307public:
308 int trackIndex;
309 int partId;
310 int numTheta;
311 int numPhi;
312 float energyDeposit;
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
328class EmcHitType {
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
347class MucDigiType {
348public:
350public:
351 int trackIndex;
352 int partNo;
353 int segNo;
354 int gapNo;
355 int stripNo;
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
370class MucHitType {
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_
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
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
friend std::istream & operator>>(std::istream &, EMCHIT &x)
Definition: AsciiData.cc:674
friend std::ostream & operator<<(std::ostream &, const EMCHIT &x)
Definition: AsciiData.cc:687
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
friend std::ostream & operator<<(std::ostream &, const EVENT &x)
Definition: AsciiData.cc:866
friend std::istream & operator>>(std::istream &, EVENT &x)
Definition: AsciiData.cc:786
friend std::ostream & operator<<(std::ostream &, const EVHEAD &x)
Definition: AsciiData.cc:37
friend std::istream & operator>>(std::istream &, EVHEAD &x)
Definition: AsciiData.cc:27
friend std::ostream & operator<<(std::ostream &, const EmcDigiType &x)
Definition: AsciiData.cc:624
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
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
friend std::ostream & operator<<(std::ostream &, const HitEVENT &x)
Definition: AsciiData.cc:967
friend std::istream & operator>>(std::istream &, HitEVENT &x)
Definition: AsciiData.cc:887
friend std::ostream & operator<<(std::ostream &, const MDCDIGI &x)
Definition: AsciiData.cc:449
friend std::istream & operator>>(std::istream &, MDCDIGI &x)
Definition: AsciiData.cc:436
friend std::ostream & operator<<(std::ostream &, const MDCHIT &x)
Definition: AsciiData.cc:510
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
friend std::istream & operator>>(std::istream &, MDCTRUTH &x)
Definition: AsciiData.cc:211
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
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
friend std::istream & operator>>(std::istream &, MUCTRUTH &x)
Definition: AsciiData.cc:389
friend std::ostream & operator<<(std::ostream &, const MUCTRUTH &x)
Definition: AsciiData.cc:402
friend std::istream & operator>>(std::istream &, MdcDigiType &x)
Definition: AsciiData.cc:415
friend std::ostream & operator<<(std::ostream &, const MdcDigiType &x)
Definition: AsciiData.cc:425
friend std::ostream & operator<<(std::ostream &, const MdcHitType &x)
Definition: AsciiData.cc:479
friend std::istream & operator>>(std::istream &, MdcHitType &x)
Definition: AsciiData.cc:462
friend std::ostream & operator<<(std::ostream &, const MdcTruthType &x)
Definition: AsciiData.cc:196
friend std::istream & operator>>(std::istream &, MdcTruthType &x)
Definition: AsciiData.cc:182
friend std::ostream & operator<<(std::ostream &, const MucDigiType &x)
Definition: AsciiData.cc:710
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
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
friend std::ostream & operator<<(std::ostream &, const TOFTRUTH &x)
Definition: AsciiData.cc:283
friend std::istream & operator>>(std::istream &, TOFTRUTH &x)
Definition: AsciiData.cc:270
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
friend std::ostream & operator<<(std::ostream &, const TofDigiType &x)
Definition: AsciiData.cc:535
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
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
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