Line | |
---|
1 | #include "MDumpEvtHeader.h"
|
---|
2 |
|
---|
3 | #include "MLog.h"
|
---|
4 | #include "MLogManip.h"
|
---|
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 | *fLog << dbginf << " Error: MRawEvtHeader not found... exit." << endl;
|
---|
17 | return kFALSE ;
|
---|
18 | }
|
---|
19 |
|
---|
20 | fRawEvtData = (MRawEvtData*)pList->FindObject("MRawEvtData");
|
---|
21 | if (!fRawEvtData)
|
---|
22 | {
|
---|
23 | *fLog << dbginf << " Error: MRawEvtData not found... exit." << endl;
|
---|
24 | return kFALSE ;
|
---|
25 | }
|
---|
26 |
|
---|
27 | return kTRUE ;
|
---|
28 | }
|
---|
29 |
|
---|
30 | Bool_t MDumpEvtHeader::Process()
|
---|
31 | {
|
---|
32 | fRawEvtHeader->Print() ;
|
---|
33 |
|
---|
34 | MRawEvtPixelIter pixel( fRawEvtData );
|
---|
35 |
|
---|
36 | while ( pixel.Next() )
|
---|
37 | {
|
---|
38 | *fLog << " " << pixel.GetPixelId() ;
|
---|
39 | }
|
---|
40 |
|
---|
41 | *fLog << endl ;
|
---|
42 |
|
---|
43 | return kTRUE;
|
---|
44 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.