BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
AsciiData.cc
Go to the documentation of this file.
1
2
#include "AsciiDmp/AsciiData.hh"
3
4
// std::string Tagged::s_saved_tag;
5
6
std::istream&
operator>>
( std::istream& is,
FRMTVERSION
& x ) {
7
x.check_start_tag( is,
"VERSION"
);
8
if
( !x.initialized() )
return
is;
9
is >> x.major;
10
is >> x.minor;
11
x.check_end_tag( is,
"VERSION"
);
12
return
is;
13
}
14
15
std::ostream&
operator<<
( std::ostream& os,
const
FRMTVERSION
& x ) {
16
os << std::endl <<
"{ VERSION"
<< std::endl;
17
if
( x.initialized() )
18
{
19
os <<
" "
<< x.major;
20
os <<
" "
<< x.minor;
21
}
22
os << std::endl <<
"} VERSION"
<< std::endl;
23
return
os;
24
}
25
26
std::istream&
operator>>
( std::istream& is,
EVHEAD
& x ) {
27
x.check_start_tag( is,
"EVHEAD"
);
28
if
( !x.initialized() )
return
is;
29
is >> x.runNo;
30
is >> x.eventNo;
31
x.check_end_tag( is,
"EVHEAD"
);
32
return
is;
33
}
34
35
std::ostream&
operator<<
( std::ostream& os,
const
EVHEAD
& x ) {
36
os << std::endl <<
"{ EVHEAD"
<< std::endl;
37
if
( x.initialized() )
38
{
39
os <<
" "
<< x.runNo;
40
os <<
" "
<< x.eventNo;
41
}
42
os << std::endl <<
"} EVHEAD"
<< std::endl;
43
return
os;
44
}
45
46
std::istream&
operator>>
( std::istream& is,
DECAYMODE
& x ) {
47
x.check_start_tag( is,
"DECAYMODE"
);
48
if
( !x.initialized() )
return
is;
49
is >> x.size;
50
for
(
int
index = 0; index < x.size; index++ ) { is >> x.data[index]; }
51
x.check_end_tag( is,
"DECAYMODE"
);
52
return
is;
53
}
54
55
std::ostream&
operator<<
( std::ostream& os,
const
DECAYMODE
& x ) {
56
os << std::endl <<
"{ DECAYMODE"
<< std::endl;
57
if
( x.initialized() )
58
{
59
os <<
" "
<< x.size;
60
for
(
int
index = 0; index < x.size; index++ ) { os <<
" "
<< x.data[index]; }
61
}
62
os << std::endl <<
"} DECAYMODE"
<< std::endl;
63
return
os;
64
}
65
66
std::istream&
operator>>
( std::istream& is,
TrackTruthType
& x ) {
67
is >> x.trackIndex;
68
is >> x.PDGCode;
69
is >> x.PDGCharge;
70
is >> x.v0Index;
71
is >> x.v1Index;
72
is >> x.px;
73
is >> x.py;
74
is >> x.pz;
75
is >> x.E;
76
is >> x.minDaughterIndex;
77
is >> x.maxDaughterIndex;
78
return
is;
79
}
80
81
std::ostream&
operator<<
( std::ostream& os,
const
TrackTruthType
& x ) {
82
os <<
" "
<< x.trackIndex;
83
os <<
" "
<< x.PDGCode;
84
os <<
" "
<< x.PDGCharge;
85
os <<
" "
<< x.v0Index;
86
os <<
" "
<< x.v1Index;
87
os <<
" "
<< x.px;
88
os <<
" "
<< x.py;
89
os <<
" "
<< x.pz;
90
os <<
" "
<< x.E;
91
os <<
" "
<< x.minDaughterIndex;
92
os <<
" "
<< x.maxDaughterIndex;
93
os << std::endl;
94
return
os;
95
}
96
97
std::istream&
operator>>
( std::istream& is,
TRACKTRUTH
& x ) {
98
x.check_start_tag( is,
"TRACKTRUTH"
);
99
if
( !x.initialized() )
return
is;
100
is >> x.nTruth;
101
x.truthCol.resize( x.nTruth );
102
{
103
for
(
int
i = 0; i < x.nTruth; i++ ) { is >> x.truthCol[i]; }
104
}
105
x.check_end_tag( is,
"TRACKTRUTH"
);
106
return
is;
107
}
108
109
std::ostream&
operator<<
( std::ostream& os,
const
TRACKTRUTH
& x ) {
110
os << std::endl <<
"{ TRACKTRUTH"
<< std::endl;
111
if
( x.initialized() )
112
{
113
os <<
" "
<< x.nTruth;
114
{
115
for
(
int
i = 0; i < x.nTruth; i++ ) { os <<
" "
<< x.truthCol[i]; }
116
}
117
}
118
os << std::endl <<
"} TRACKTRUTH"
<< std::endl;
119
return
os;
120
}
121
122
std::istream&
operator>>
( std::istream& is,
VertexTruthType
& x ) {
123
is >> x.vertexIndex;
124
is >> x.parentTrackIndex;
125
is >> x.posX;
126
is >> x.posY;
127
is >> x.posZ;
128
is >> x.time;
129
return
is;
130
}
131
132
std::ostream&
operator<<
( std::ostream& os,
const
VertexTruthType
& x ) {
133
os <<
" "
<< x.vertexIndex;
134
os <<
" "
<< x.parentTrackIndex;
135
os <<
" "
<< x.posX;
136
os <<
" "
<< x.posY;
137
os <<
" "
<< x.posZ;
138
os <<
" "
<< x.time;
139
os << std::endl;
140
return
os;
141
}
142
143
std::istream&
operator>>
( std::istream& is,
VERTEXTRUTH
& x ) {
144
x.check_start_tag( is,
"VERTEXTRUTH"
);
145
if
( !x.initialized() )
return
is;
146
is >> x.nTruth;
147
x.truthCol.resize( x.nTruth );
148
{
149
for
(
int
i = 0; i < x.nTruth; i++ ) { is >> x.truthCol[i]; }
150
}
151
x.check_end_tag( is,
"VERTEXTRUTH"
);
152
return
is;
153
}
154
155
std::ostream&
operator<<
( std::ostream& os,
const
VERTEXTRUTH
& x ) {
156
os << std::endl <<
"{ VERTEXTRUTH"
<< std::endl;
157
if
( x.initialized() )
158
{
159
os <<
" "
<< x.nTruth;
160
{
161
for
(
int
i = 0; i < x.nTruth; i++ ) { os <<
" "
<< x.truthCol[i]; }
162
}
163
}
164
os << std::endl <<
"} VERTEXTRUTH"
<< std::endl;
165
return
os;
166
}
167
168
std::istream&
operator>>
( std::istream& is,
MdcTruthType
& x ) {
169
is >> x.trackIndex;
170
is >> x.layerNo;
171
is >> x.cellNo;
172
is >> x.edep;
173
is >> x.driftD;
174
is >> x.posX;
175
is >> x.posY;
176
is >> x.posZ;
177
is >> x.posFlag;
178
return
is;
179
}
180
181
std::ostream&
operator<<
( std::ostream& os,
const
MdcTruthType
& x ) {
182
os <<
" "
<< x.trackIndex;
183
os <<
" "
<< x.layerNo;
184
os <<
" "
<< x.cellNo;
185
os <<
" "
<< x.edep;
186
os <<
" "
<< x.driftD;
187
os <<
" "
<< x.posX;
188
os <<
" "
<< x.posY;
189
os <<
" "
<< x.posZ;
190
os <<
" "
<< x.posFlag;
191
os << std::endl;
192
return
os;
193
}
194
195
std::istream&
operator>>
( std::istream& is,
MDCTRUTH
& x ) {
196
x.check_start_tag( is,
"MDCTRUTH"
);
197
if
( !x.initialized() )
return
is;
198
is >> x.nTruth;
199
x.truthCol.resize( x.nTruth );
200
{
201
for
(
int
i = 0; i < x.nTruth; i++ ) { is >> x.truthCol[i]; }
202
}
203
x.check_end_tag( is,
"MDCTRUTH"
);
204
return
is;
205
}
206
207
std::ostream&
operator<<
( std::ostream& os,
const
MDCTRUTH
& x ) {
208
os << std::endl <<
"{ MDCTRUTH"
<< std::endl;
209
if
( x.initialized() )
210
{
211
os <<
" "
<< x.nTruth;
212
{
213
for
(
int
i = 0; i < x.nTruth; i++ ) { os <<
" "
<< x.truthCol[i]; }
214
}
215
}
216
os << std::endl <<
"} MDCTRUTH"
<< std::endl;
217
return
os;
218
}
219
220
std::istream&
operator>>
( std::istream& is,
TofTruthType
& x ) {
221
is >> x.trackIndex;
222
is >> x.partId;
223
is >> x.scinNb;
224
is >> x.posX;
225
is >> x.posY;
226
is >> x.posZ;
227
is >> x.px;
228
is >> x.py;
229
is >> x.pz;
230
is >> x.trackL;
231
is >> x.time;
232
return
is;
233
}
234
235
std::ostream&
operator<<
( std::ostream& os,
const
TofTruthType
& x ) {
236
os <<
" "
<< x.trackIndex;
237
os <<
" "
<< x.partId;
238
os <<
" "
<< x.scinNb;
239
os <<
" "
<< x.posX;
240
os <<
" "
<< x.posY;
241
os <<
" "
<< x.posZ;
242
os <<
" "
<< x.px;
243
os <<
" "
<< x.py;
244
os <<
" "
<< x.pz;
245
os <<
" "
<< x.trackL;
246
os <<
" "
<< x.time;
247
os << std::endl;
248
return
os;
249
}
250
251
std::istream&
operator>>
( std::istream& is,
TOFTRUTH
& x ) {
252
x.check_start_tag( is,
"TOFTRUTH"
);
253
if
( !x.initialized() )
return
is;
254
is >> x.nTruth;
255
x.truthCol.resize( x.nTruth );
256
{
257
for
(
int
i = 0; i < x.nTruth; i++ ) { is >> x.truthCol[i]; }
258
}
259
x.check_end_tag( is,
"TOFTRUTH"
);
260
return
is;
261
}
262
263
std::ostream&
operator<<
( std::ostream& os,
const
TOFTRUTH
& x ) {
264
os << std::endl <<
"{ TOFTRUTH"
<< std::endl;
265
if
( x.initialized() )
266
{
267
os <<
" "
<< x.nTruth;
268
{
269
for
(
int
i = 0; i < x.nTruth; i++ ) { os <<
" "
<< x.truthCol[i]; }
270
}
271
}
272
os << std::endl <<
"} TOFTRUTH"
<< std::endl;
273
return
os;
274
}
275
276
std::istream&
operator>>
( std::istream& is,
EmcTruthType
& x ) {
277
is >> x.trackIndex;
278
is >> x.partId;
279
is >> x.numTheta;
280
is >> x.numPhi;
281
is >> x.posX;
282
is >> x.posY;
283
is >> x.posZ;
284
is >> x.px;
285
is >> x.py;
286
is >> x.pz;
287
is >> x.totalEdep;
288
return
is;
289
}
290
291
std::ostream&
operator<<
( std::ostream& os,
const
EmcTruthType
& x ) {
292
os <<
" "
<< x.trackIndex;
293
os <<
" "
<< x.partId;
294
os <<
" "
<< x.numTheta;
295
os <<
" "
<< x.numPhi;
296
os <<
" "
<< x.posX;
297
os <<
" "
<< x.posY;
298
os <<
" "
<< x.posZ;
299
os <<
" "
<< x.px;
300
os <<
" "
<< x.py;
301
os <<
" "
<< x.pz;
302
os <<
" "
<< x.totalEdep;
303
os << std::endl;
304
return
os;
305
}
306
307
std::istream&
operator>>
( std::istream& is,
EMCTRUTH
& x ) {
308
x.check_start_tag( is,
"EMCTRUTH"
);
309
if
( !x.initialized() )
return
is;
310
is >> x.nTruth;
311
x.truthCol.resize( x.nTruth );
312
{
313
for
(
int
i = 0; i < x.nTruth; i++ ) { is >> x.truthCol[i]; }
314
}
315
x.check_end_tag( is,
"EMCTRUTH"
);
316
return
is;
317
}
318
319
std::ostream&
operator<<
( std::ostream& os,
const
EMCTRUTH
& x ) {
320
os << std::endl <<
"{ EMCTRUTH"
<< std::endl;
321
if
( x.initialized() )
322
{
323
os <<
" "
<< x.nTruth;
324
{
325
for
(
int
i = 0; i < x.nTruth; i++ ) { os <<
" "
<< x.truthCol[i]; }
326
}
327
}
328
os << std::endl <<
"} EMCTRUTH"
<< std::endl;
329
return
os;
330
}
331
332
std::istream&
operator>>
( std::istream& is,
MucTruthType
& x ) {
333
is >> x.trackIndex;
334
is >> x.partId;
335
is >> x.segId;
336
is >> x.gapId;
337
is >> x.stripId;
338
is >> x.posX;
339
is >> x.posY;
340
is >> x.posZ;
341
is >> x.px;
342
is >> x.py;
343
is >> x.pz;
344
return
is;
345
}
346
347
std::ostream&
operator<<
( std::ostream& os,
const
MucTruthType
& x ) {
348
os <<
" "
<< x.trackIndex;
349
os <<
" "
<< x.partId;
350
os <<
" "
<< x.segId;
351
os <<
" "
<< x.gapId;
352
os <<
" "
<< x.stripId;
353
os <<
" "
<< x.posX;
354
os <<
" "
<< x.posY;
355
os <<
" "
<< x.posZ;
356
os <<
" "
<< x.px;
357
os <<
" "
<< x.py;
358
os <<
" "
<< x.pz;
359
os << std::endl;
360
return
os;
361
}
362
363
std::istream&
operator>>
( std::istream& is,
MUCTRUTH
& x ) {
364
x.check_start_tag( is,
"MUCTRUTH"
);
365
if
( !x.initialized() )
return
is;
366
is >> x.nTruth;
367
x.truthCol.resize( x.nTruth );
368
{
369
for
(
int
i = 0; i < x.nTruth; i++ ) { is >> x.truthCol[i]; }
370
}
371
x.check_end_tag( is,
"MUCTRUTH"
);
372
return
is;
373
}
374
375
std::ostream&
operator<<
( std::ostream& os,
const
MUCTRUTH
& x ) {
376
os << std::endl <<
"{ MUCTRUTH"
<< std::endl;
377
if
( x.initialized() )
378
{
379
os <<
" "
<< x.nTruth;
380
{
381
for
(
int
i = 0; i < x.nTruth; i++ ) { os <<
" "
<< x.truthCol[i]; }
382
}
383
}
384
os << std::endl <<
"} MUCTRUTH"
<< std::endl;
385
return
os;
386
}
387
388
std::istream&
operator>>
( std::istream& is,
MdcDigiType
& x ) {
389
is >> x.trackIndex;
390
is >> x.layerNo;
391
is >> x.cellNo;
392
is >> x.energyDeposit;
393
is >> x.driftTime;
394
return
is;
395
}
396
397
std::ostream&
operator<<
( std::ostream& os,
const
MdcDigiType
& x ) {
398
os <<
" "
<< x.trackIndex;
399
os <<
" "
<< x.layerNo;
400
os <<
" "
<< x.cellNo;
401
os <<
" "
<< x.energyDeposit;
402
os <<
" "
<< x.driftTime;
403
os << std::endl;
404
return
os;
405
}
406
407
std::istream&
operator>>
( std::istream& is,
MDCDIGI
& x ) {
408
x.check_start_tag( is,
"MDCDIGI"
);
409
if
( !x.initialized() )
return
is;
410
is >> x.nDigi;
411
x.digiCol.resize( x.nDigi );
412
{
413
for
(
int
i = 0; i < x.nDigi; i++ ) { is >> x.digiCol[i]; }
414
}
415
x.check_end_tag( is,
"MDCDIGI"
);
416
return
is;
417
}
418
419
std::ostream&
operator<<
( std::ostream& os,
const
MDCDIGI
& x ) {
420
os << std::endl <<
"{ MDCDIGI"
<< std::endl;
421
if
( x.initialized() )
422
{
423
os <<
" "
<< x.nDigi;
424
{
425
for
(
int
i = 0; i < x.nDigi; i++ ) { os <<
" "
<< x.digiCol[i]; }
426
}
427
}
428
os << std::endl <<
"} MDCDIGI"
<< std::endl;
429
return
os;
430
}
431
432
std::istream&
operator>>
( std::istream& is,
MdcHitType
& x ) {
433
is >> x.trackIndex;
434
is >> x.layerNo;
435
is >> x.cellNo;
436
is >> x.posX;
437
is >> x.posY;
438
is >> x.posZ;
439
is >> x.energyDeposit;
440
is >> x.driftDistance;
441
is >> x.globalT;
442
is >> x.theta;
443
is >> x.enterAngle;
444
is >> x.posFlag;
445
return
is;
446
}
447
448
std::ostream&
operator<<
( std::ostream& os,
const
MdcHitType
& x ) {
449
os <<
" "
<< x.trackIndex;
450
os <<
" "
<< x.layerNo;
451
os <<
" "
<< x.cellNo;
452
os <<
" "
<< x.posX;
453
os <<
" "
<< x.posY;
454
os <<
" "
<< x.posZ;
455
os <<
" "
<< x.energyDeposit;
456
os <<
" "
<< x.driftDistance;
457
os <<
" "
<< x.globalT;
458
os <<
" "
<< x.theta;
459
os <<
" "
<< x.enterAngle;
460
os <<
" "
<< x.posFlag;
461
os << std::endl;
462
return
os;
463
}
464
465
std::istream&
operator>>
( std::istream& is,
MDCHIT
& x ) {
466
x.check_start_tag( is,
"MDCHIT"
);
467
if
( !x.initialized() )
return
is;
468
is >> x.nHit;
469
x.hitCol.resize( x.nHit );
470
{
471
for
(
int
i = 0; i < x.nHit; i++ ) { is >> x.hitCol[i]; }
472
}
473
x.check_end_tag( is,
"MDCHIT"
);
474
return
is;
475
}
476
477
std::ostream&
operator<<
( std::ostream& os,
const
MDCHIT
& x ) {
478
os << std::endl <<
"{ MDCHIT"
<< std::endl;
479
if
( x.initialized() )
480
{
481
os <<
" "
<< x.nHit;
482
{
483
for
(
int
i = 0; i < x.nHit; i++ ) { os <<
" "
<< x.hitCol[i]; }
484
}
485
}
486
os << std::endl <<
"} MDCHIT"
<< std::endl;
487
return
os;
488
}
489
490
std::istream&
operator>>
( std::istream& is,
TofDigiType
& x ) {
491
is >> x.trackIndex;
492
is >> x.partId;
493
is >> x.scinNb;
494
is >> x.forwADC;
495
is >> x.forwTDC;
496
is >> x.backADC;
497
is >> x.backTDC;
498
return
is;
499
}
500
501
std::ostream&
operator<<
( std::ostream& os,
const
TofDigiType
& x ) {
502
os <<
" "
<< x.trackIndex;
503
os <<
" "
<< x.partId;
504
os <<
" "
<< x.scinNb;
505
os <<
" "
<< x.forwADC;
506
os <<
" "
<< x.forwTDC;
507
os <<
" "
<< x.backADC;
508
os <<
" "
<< x.backTDC;
509
os << std::endl;
510
return
os;
511
}
512
513
std::istream&
operator>>
( std::istream& is,
TOFDIGI
& x ) {
514
x.check_start_tag( is,
"TOFDIGI"
);
515
if
( !x.initialized() )
return
is;
516
is >> x.nDigi;
517
x.digiCol.resize( x.nDigi );
518
{
519
for
(
int
i = 0; i < x.nDigi; i++ ) { is >> x.digiCol[i]; }
520
}
521
x.check_end_tag( is,
"TOFDIGI"
);
522
return
is;
523
}
524
525
std::ostream&
operator<<
( std::ostream& os,
const
TOFDIGI
& x ) {
526
os << std::endl <<
"{ TOFDIGI"
<< std::endl;
527
if
( x.initialized() )
528
{
529
os <<
" "
<< x.nDigi;
530
{
531
for
(
int
i = 0; i < x.nDigi; i++ ) { os <<
" "
<< x.digiCol[i]; }
532
}
533
}
534
os << std::endl <<
"} TOFDIGI"
<< std::endl;
535
return
os;
536
}
537
538
std::istream&
operator>>
( std::istream& is,
TofHitType
& x ) {
return
is; }
539
540
std::ostream&
operator<<
( std::ostream& os,
const
TofHitType
& x ) {
541
os << std::endl;
542
return
os;
543
}
544
545
std::istream&
operator>>
( std::istream& is,
TOFHIT
& x ) {
546
x.check_start_tag( is,
"TOFHIT"
);
547
if
( !x.initialized() )
return
is;
548
is >> x.nHit;
549
x.hitCol.resize( x.nHit );
550
{
551
for
(
int
i = 0; i < x.nHit; i++ ) { is >> x.hitCol[i]; }
552
}
553
x.check_end_tag( is,
"TOFHIT"
);
554
return
is;
555
}
556
557
std::ostream&
operator<<
( std::ostream& os,
const
TOFHIT
& x ) {
558
os << std::endl <<
"{ TOFHIT"
<< std::endl;
559
if
( x.initialized() )
560
{
561
os <<
" "
<< x.nHit;
562
{
563
for
(
int
i = 0; i < x.nHit; i++ ) { os <<
" "
<< x.hitCol[i]; }
564
}
565
}
566
os << std::endl <<
"} TOFHIT"
<< std::endl;
567
return
os;
568
}
569
570
std::istream&
operator>>
( std::istream& is,
EmcDigiType
& x ) {
571
is >> x.trackIndex;
572
is >> x.partId;
573
is >> x.numTheta;
574
is >> x.numPhi;
575
is >> x.energyDeposit;
576
is >> x.hitTime;
577
return
is;
578
}
579
580
std::ostream&
operator<<
( std::ostream& os,
const
EmcDigiType
& x ) {
581
os <<
" "
<< x.trackIndex;
582
os <<
" "
<< x.partId;
583
os <<
" "
<< x.numTheta;
584
os <<
" "
<< x.numPhi;
585
os <<
" "
<< x.energyDeposit;
586
os <<
" "
<< x.hitTime;
587
os << std::endl;
588
return
os;
589
}
590
591
std::istream&
operator>>
( std::istream& is,
EMCDIGI
& x ) {
592
x.check_start_tag( is,
"EMCDIGI"
);
593
if
( !x.initialized() )
return
is;
594
is >> x.nDigi;
595
x.digiCol.resize( x.nDigi );
596
{
597
for
(
int
i = 0; i < x.nDigi; i++ ) { is >> x.digiCol[i]; }
598
}
599
x.check_end_tag( is,
"EMCDIGI"
);
600
return
is;
601
}
602
603
std::ostream&
operator<<
( std::ostream& os,
const
EMCDIGI
& x ) {
604
os << std::endl <<
"{ EMCDIGI"
<< std::endl;
605
if
( x.initialized() )
606
{
607
os <<
" "
<< x.nDigi;
608
{
609
for
(
int
i = 0; i < x.nDigi; i++ ) { os <<
" "
<< x.digiCol[i]; }
610
}
611
}
612
os << std::endl <<
"} EMCDIGI"
<< std::endl;
613
return
os;
614
}
615
616
std::istream&
operator>>
( std::istream& is,
EmcHitType
& x ) {
return
is; }
617
618
std::ostream&
operator<<
( std::ostream& os,
const
EmcHitType
& x ) {
619
os << std::endl;
620
return
os;
621
}
622
623
std::istream&
operator>>
( std::istream& is,
EMCHIT
& x ) {
624
x.check_start_tag( is,
"EMCHIT"
);
625
if
( !x.initialized() )
return
is;
626
is >> x.nHit;
627
x.hitCol.resize( x.nHit );
628
{
629
for
(
int
i = 0; i < x.nHit; i++ ) { is >> x.hitCol[i]; }
630
}
631
x.check_end_tag( is,
"EMCHIT"
);
632
return
is;
633
}
634
635
std::ostream&
operator<<
( std::ostream& os,
const
EMCHIT
& x ) {
636
os << std::endl <<
"{ EMCHIT"
<< std::endl;
637
if
( x.initialized() )
638
{
639
os <<
" "
<< x.nHit;
640
{
641
for
(
int
i = 0; i < x.nHit; i++ ) { os <<
" "
<< x.hitCol[i]; }
642
}
643
}
644
os << std::endl <<
"} EMCHIT"
<< std::endl;
645
return
os;
646
}
647
648
std::istream&
operator>>
( std::istream& is,
MucDigiType
& x ) {
649
is >> x.trackIndex;
650
is >> x.partNo;
651
is >> x.segNo;
652
is >> x.gapNo;
653
is >> x.stripNo;
654
return
is;
655
}
656
657
std::ostream&
operator<<
( std::ostream& os,
const
MucDigiType
& x ) {
658
os <<
" "
<< x.trackIndex;
659
os <<
" "
<< x.partNo;
660
os <<
" "
<< x.segNo;
661
os <<
" "
<< x.gapNo;
662
os <<
" "
<< x.stripNo;
663
os << std::endl;
664
return
os;
665
}
666
667
std::istream&
operator>>
( std::istream& is,
MUCDIGI
& x ) {
668
x.check_start_tag( is,
"MUCDIGI"
);
669
if
( !x.initialized() )
return
is;
670
is >> x.nDigi;
671
x.digiCol.resize( x.nDigi );
672
{
673
for
(
int
i = 0; i < x.nDigi; i++ ) { is >> x.digiCol[i]; }
674
}
675
x.check_end_tag( is,
"MUCDIGI"
);
676
return
is;
677
}
678
679
std::ostream&
operator<<
( std::ostream& os,
const
MUCDIGI
& x ) {
680
os << std::endl <<
"{ MUCDIGI"
<< std::endl;
681
if
( x.initialized() )
682
{
683
os <<
" "
<< x.nDigi;
684
{
685
for
(
int
i = 0; i < x.nDigi; i++ ) { os <<
" "
<< x.digiCol[i]; }
686
}
687
}
688
os << std::endl <<
"} MUCDIGI"
<< std::endl;
689
return
os;
690
}
691
692
std::istream&
operator>>
( std::istream& is,
MucHitType
& x ) {
return
is; }
693
694
std::ostream&
operator<<
( std::ostream& os,
const
MucHitType
& x ) {
695
os << std::endl;
696
return
os;
697
}
698
699
std::istream&
operator>>
( std::istream& is,
MUCHIT
& x ) {
700
x.check_start_tag( is,
"MUCHIT"
);
701
if
( !x.initialized() )
return
is;
702
is >> x.nHit;
703
x.hitCol.resize( x.nHit );
704
{
705
for
(
int
i = 0; i < x.nHit; i++ ) { is >> x.hitCol[i]; }
706
}
707
x.check_end_tag( is,
"MUCHIT"
);
708
return
is;
709
}
710
711
std::ostream&
operator<<
( std::ostream& os,
const
MUCHIT
& x ) {
712
os << std::endl <<
"{ MUCHIT"
<< std::endl;
713
if
( x.initialized() )
714
{
715
os <<
" "
<< x.nHit;
716
{
717
for
(
int
i = 0; i < x.nHit; i++ ) { os <<
" "
<< x.hitCol[i]; }
718
}
719
}
720
os << std::endl <<
"} MUCHIT"
<< std::endl;
721
return
os;
722
}
723
724
std::istream&
operator>>
( std::istream& is,
EVENT
& x ) {
725
x.check_start_tag( is,
"EVENT"
);
726
if
( !x.initialized() )
return
is;
727
728
try
729
{ is >> x.header; }
catch
(
AsciiDumpException
& )
730
{ std::cerr <<
"Got AsciiDumpException eror while reading header block !!!"
<< std::endl; }
731
732
try
733
{ is >> x.decayMode; }
catch
(
AsciiDumpException
& )
734
{
735
std::cerr <<
"Got AsciiDumpException eror while reading decay mode block !!!"
<< std::endl;
736
}
737
738
try
739
{ is >> x.trackTruth; }
catch
(
AsciiDumpException
& )
740
{
741
std::cerr <<
"Got AsciiDumpException eror while reading track truth block !!!"
742
<< std::endl;
743
}
744
745
try
746
{ is >> x.vertexTruth; }
catch
(
AsciiDumpException
& )
747
{
748
std::cerr <<
"Got AsciiDumpException eror while reading vertex truth block !!!"
749
<< std::endl;
750
}
751
752
try
753
{ is >> x.mdcTruth; }
catch
(
AsciiDumpException
& )
754
{
755
std::cerr <<
"Got AsciiDumpException eror while reading mdc truth block !!!"
<< std::endl;
756
}
757
758
try
759
{ is >> x.mdcDigi; }
catch
(
AsciiDumpException
& )
760
{ std::cerr <<
"Got AsciiDumpException eror while reading mdc digi block !!!"
<< std::endl; }
761
762
try
763
{ is >> x.tofTruth; }
catch
(
AsciiDumpException
& )
764
{
765
std::cerr <<
"Got AsciiDumpException eror while reading tof truth block !!!"
<< std::endl;
766
}
767
768
try
769
{ is >> x.tofDigi; }
catch
(
AsciiDumpException
& )
770
{ std::cerr <<
"Got AsciiDumpException eror while reading tof digi block !!!"
<< std::endl; }
771
772
try
773
{ is >> x.emcTruth; }
catch
(
AsciiDumpException
& )
774
{
775
std::cerr <<
"Got AsciiDumpException eror while reading emc truth block !!!"
<< std::endl;
776
}
777
778
try
779
{ is >> x.emcDigi; }
catch
(
AsciiDumpException
& )
780
{ std::cerr <<
"Got AsciiDumpException eror while reading emc digi block !!!"
<< std::endl; }
781
782
try
783
{ is >> x.mucTruth; }
catch
(
AsciiDumpException
& )
784
{
785
std::cerr <<
"Got AsciiDumpException eror while reading muc truth block !!!"
<< std::endl;
786
}
787
788
try
789
{ is >> x.mucDigi; }
catch
(
AsciiDumpException
& )
790
{ std::cerr <<
"Got AsciiDumpException eror while reading muc digi block !!!"
<< std::endl; }
791
x.check_end_tag( is,
"EVENT"
);
792
return
is;
793
}
794
795
std::ostream&
operator<<
( std::ostream& os,
const
EVENT
& x ) {
796
os << std::endl <<
"{ EVENT"
<< std::endl;
797
if
( x.initialized() )
798
{
799
os <<
" "
<< x.header;
800
os <<
" "
<< x.decayMode;
801
os <<
" "
<< x.trackTruth;
802
os <<
" "
<< x.vertexTruth;
803
os <<
" "
<< x.mdcTruth;
804
os <<
" "
<< x.mdcDigi;
805
os <<
" "
<< x.tofTruth;
806
os <<
" "
<< x.tofDigi;
807
os <<
" "
<< x.emcTruth;
808
os <<
" "
<< x.emcDigi;
809
os <<
" "
<< x.mucTruth;
810
os <<
" "
<< x.mucDigi;
811
}
812
os << std::endl <<
"} EVENT"
<< std::endl;
813
return
os;
814
}
815
816
std::istream&
operator>>
( std::istream& is,
HitEVENT
& x ) {
817
x.check_start_tag( is,
"HITEVENT"
);
818
if
( !x.initialized() )
return
is;
819
820
try
821
{ is >> x.header; }
catch
(
AsciiDumpException
& )
822
{ std::cerr <<
"Got AsciiDumpException eror while reading header block !!!"
<< std::endl; }
823
824
try
825
{ is >> x.decayMode; }
catch
(
AsciiDumpException
& )
826
{
827
std::cerr <<
"Got AsciiDumpException eror while reading decay mode block !!!"
<< std::endl;
828
}
829
830
try
831
{ is >> x.trackTruth; }
catch
(
AsciiDumpException
& )
832
{
833
std::cerr <<
"Got AsciiDumpException eror while reading track truth block !!!"
834
<< std::endl;
835
}
836
837
try
838
{ is >> x.vertexTruth; }
catch
(
AsciiDumpException
& )
839
{
840
std::cerr <<
"Got AsciiDumpException eror while reading vertex truth block !!!"
841
<< std::endl;
842
}
843
844
try
845
{ is >> x.mdcTruth; }
catch
(
AsciiDumpException
& )
846
{
847
std::cerr <<
"Got AsciiDumpException eror while reading mdc truth block !!!"
<< std::endl;
848
}
849
850
try
851
{ is >> x.mdcHit; }
catch
(
AsciiDumpException
& )
852
{ std::cerr <<
"Got AsciiDumpException eror while reading mdc hit block !!!"
<< std::endl; }
853
854
try
855
{ is >> x.tofTruth; }
catch
(
AsciiDumpException
& )
856
{
857
std::cerr <<
"Got AsciiDumpException eror while reading tof truth block !!!"
<< std::endl;
858
}
859
860
try
861
{ is >> x.tofHit; }
catch
(
AsciiDumpException
& )
862
{ std::cerr <<
"Got AsciiDumpException eror while reading tof hiti block !!!"
<< std::endl; }
863
864
try
865
{ is >> x.emcTruth; }
catch
(
AsciiDumpException
& )
866
{
867
std::cerr <<
"Got AsciiDumpException eror while reading emc truth block !!!"
<< std::endl;
868
}
869
870
try
871
{ is >> x.emcHit; }
catch
(
AsciiDumpException
& )
872
{ std::cerr <<
"Got AsciiDumpException eror while reading emc hit block !!!"
<< std::endl; }
873
874
try
875
{ is >> x.mucTruth; }
catch
(
AsciiDumpException
& )
876
{
877
std::cerr <<
"Got AsciiDumpException eror while reading muc truth block !!!"
<< std::endl;
878
}
879
880
try
881
{ is >> x.mucHit; }
catch
(
AsciiDumpException
& )
882
{ std::cerr <<
"Got AsciiDumpException eror while reading muc hit block !!!"
<< std::endl; }
883
x.check_end_tag( is,
"HITEVENT"
);
884
return
is;
885
}
886
887
std::ostream&
operator<<
( std::ostream& os,
const
HitEVENT
& x ) {
888
os << std::endl <<
"{ HITEVENT"
<< std::endl;
889
if
( x.initialized() )
890
{
891
os <<
" "
<< x.header;
892
os <<
" "
<< x.decayMode;
893
os <<
" "
<< x.trackTruth;
894
os <<
" "
<< x.vertexTruth;
895
os <<
" "
<< x.mdcTruth;
896
os <<
" "
<< x.mdcHit;
897
os <<
" "
<< x.tofTruth;
898
os <<
" "
<< x.tofHit;
899
os <<
" "
<< x.emcTruth;
900
os <<
" "
<< x.emcHit;
901
os <<
" "
<< x.mucTruth;
902
os <<
" "
<< x.mucHit;
903
}
904
os << std::endl <<
"} HITEVENT"
<< std::endl;
905
return
os;
906
}
operator>>
std::istream & operator>>(std::istream &is, FRMTVERSION &x)
Definition
AsciiData.cc:6
operator<<
std::ostream & operator<<(std::ostream &os, const FRMTVERSION &x)
Definition
AsciiData.cc:15
AsciiDumpException
Definition
Event/AsciiDmp/include/AsciiDmp/dmplib.hh:11
DECAYMODE::DECAYMODE
DECAYMODE()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:36
EMCDIGI::EMCDIGI
EMCDIGI()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:342
EMCHIT::EMCHIT
EMCHIT()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:362
EMCTRUTH::EMCTRUTH
EMCTRUTH()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:180
EVENT::EVENT
EVENT()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:418
EVHEAD::EVHEAD
EVHEAD()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:25
EmcDigiType::EmcDigiType
EmcDigiType()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:327
EmcHitType::EmcHitType
EmcHitType()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:353
EmcTruthType::EmcTruthType
EmcTruthType()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:160
FRMTVERSION::FRMTVERSION
FRMTVERSION()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:14
HitEVENT::HitEVENT
HitEVENT()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:439
MDCDIGI::MDCDIGI
MDCDIGI()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:236
MDCHIT::MDCHIT
MDCHIT()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:268
MDCTRUTH::MDCTRUTH
MDCTRUTH()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:118
MUCDIGI::MUCDIGI
MUCDIGI()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:387
MUCHIT::MUCHIT
MUCHIT()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:407
MUCTRUTH::MUCTRUTH
MUCTRUTH()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:211
MdcDigiType::MdcDigiType
MdcDigiType()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:222
MdcHitType::MdcHitType
MdcHitType()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:247
MdcTruthType::MdcTruthType
MdcTruthType()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:100
MucDigiType::MucDigiType
MucDigiType()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:373
MucHitType::MucHitType
MucHitType()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:398
MucTruthType::MucTruthType
MucTruthType()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:191
TOFDIGI::TOFDIGI
TOFDIGI()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:296
TOFHIT::TOFHIT
TOFHIT()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:316
TOFTRUTH::TOFTRUTH
TOFTRUTH()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:149
TRACKTRUTH::TRACKTRUTH
TRACKTRUTH()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:65
TofDigiType::TofDigiType
TofDigiType()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:279
TofHitType::TofHitType
TofHitType()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:307
TofTruthType::TofTruthType
TofTruthType()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:129
TrackTruthType
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:45
VERTEXTRUTH::VERTEXTRUTH
VERTEXTRUTH()
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:89
VertexTruthType
Definition
Event/AsciiDmp/include/AsciiDmp/AsciiData.hh:74
8.0.0
BOSS_Source
Event
AsciiDmp
src
AsciiData.cc
Generated by
1.16.1