Line | |
---|
1 | #include "MDumpEvtHeader.h"
|
---|
2 |
|
---|
3 | #include <iostream.h>
|
---|
4 |
|
---|
5 | #include "MParList.h"
|
---|
6 | #include "MRawEvtHeader.h"
|
---|
7 | #include "MRawEvtPixelIter.h"
|
---|
8 |
|
---|
9 | //ClassImp(MDumpEvtHeader)
|
---|
10 |
|
---|
11 | Bool_t MDumpEvtHeader::PreProcess (MParList *pList)
|
---|
12 | {
|
---|
13 | fRawEvtHeader = (MRawEvtHeader*)pList->FindObject("MRawEvtHeader");
|
---|
14 | if (!fRawEvtHeader)
|
---|
15 | {
|
---|
16 | cout << "MRawFileRead::PreProcess - WARNING: MRawEvtHeader not found... creating." << endl;
|
---|
17 | return kFALSE ;
|
---|
18 | }
|
---|
19 |
|
---|
20 | fRawEvtData = (MRawEvtData*)pList->FindObject("MRawEvtData");
|
---|
21 |
|
---|
22 | if (!fRawEvtData)
|
---|
23 | {
|
---|
24 | cout << "MRawFileRead::PreProcess - WARNING: MRawEvtData not found... creating." << endl;
|
---|
25 | return kFALSE ;
|
---|
26 | }
|
---|
27 |
|
---|
28 | fPixelIter = new MRawEvtPixelIter( fRawEvtData );
|
---|
29 |
|
---|
30 | return kTRUE ;
|
---|
31 |
|
---|
32 | }
|
---|
33 |
|
---|
34 |
|
---|
35 | Bool_t MDumpEvtHeader::Process()
|
---|
36 | {
|
---|
37 | fRawEvtHeader->Print() ;
|
---|
38 |
|
---|
39 | //fRawEvtData->Print() ;
|
---|
40 |
|
---|
41 | fPixelIter->Reset() ;
|
---|
42 |
|
---|
43 | while ( fPixelIter->Next() )
|
---|
44 | {
|
---|
45 | cout << " " << fPixelIter->GetPixelId() ;
|
---|
46 |
|
---|
47 | }
|
---|
48 |
|
---|
49 | cout << endl ;
|
---|
50 |
|
---|
51 | return kTRUE;
|
---|
52 |
|
---|
53 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.