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