source: trunk/MagicSoft/Mars/mdatacheck/MDumpEvtHeader.cc@ 499

Last change on this file since 499 was 466, checked in by tbretz, 24 years ago
see Changelog
File size: 977 bytes
Line 
1#include "MDumpEvtHeader.h"
2
3#include "MParList.h"
4#include "MRawEvtHeader.h"
5#include "MRawEvtPixelIter.h"
6
7//ClassImp(MDumpEvtHeader)
8
9Bool_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 exit(123) ;
16 }
17
18 fRawEvtData = (MRawEvtData*)pList->FindObject("MRawEvtData");
19
20 if (!fRawEvtData)
21 {
22 cout << "MRawFileRead::PreProcess - WARNING: MRawEvtData not found... creating." << endl;
23 exit(123) ;
24 }
25
26 fPixelIter = new MRawEvtPixelIter( fRawEvtData );
27
28 return kTRUE ;
29
30}
31
32
33Bool_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.