Last change
on this file since 9492 was 462, checked in by harald, 24 years ago |
Import the files for the datacheck section in this subdir.
|
File size:
897 bytes
|
Line | |
---|
1 | #include "MDumpEvtHeader.h"
|
---|
2 |
|
---|
3 | //ClassImp(MDumpEvtHeader)
|
---|
4 |
|
---|
5 | Bool_t MDumpEvtHeader::PreProcess (MParList *pList)
|
---|
6 | {
|
---|
7 | fRawEvtHeader = (MRawEvtHeader*)pList->FindObject("MRawEvtHeader");
|
---|
8 | if (!fRawEvtHeader)
|
---|
9 | {
|
---|
10 | cout << "MRawFileRead::PreProcess - WARNING: MRawEvtHeader not found... creating." << endl;
|
---|
11 | exit(123) ;
|
---|
12 | }
|
---|
13 |
|
---|
14 | fRawEvtData = (MRawEvtData*)pList->FindObject("MRawEvtData");
|
---|
15 |
|
---|
16 | if (!fRawEvtData)
|
---|
17 | {
|
---|
18 | cout << "MRawFileRead::PreProcess - WARNING: MRawEvtData not found... creating." << endl;
|
---|
19 | exit(123) ;
|
---|
20 | }
|
---|
21 |
|
---|
22 | fPixelIter = new MRawEvtPixelIter( fRawEvtData );
|
---|
23 |
|
---|
24 | return kTRUE ;
|
---|
25 |
|
---|
26 | }
|
---|
27 |
|
---|
28 |
|
---|
29 | Bool_t MDumpEvtHeader::Process()
|
---|
30 | {
|
---|
31 | fRawEvtHeader->Print() ;
|
---|
32 |
|
---|
33 | //fRawEvtData->Print() ;
|
---|
34 |
|
---|
35 | fPixelIter->Reset() ;
|
---|
36 |
|
---|
37 | while ( fPixelIter->Next() )
|
---|
38 | {
|
---|
39 | cout << " " << fPixelIter->GetPixelId() ;
|
---|
40 |
|
---|
41 | }
|
---|
42 |
|
---|
43 | cout << endl ;
|
---|
44 |
|
---|
45 | return kTRUE;
|
---|
46 |
|
---|
47 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.