Changeset 666 for trunk/MagicSoft/Mars/mdatacheck/MDumpEvtHeader.cc
- Timestamp:
- 03/02/01 12:48:15 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mdatacheck/MDumpEvtHeader.cc
r609 r666 1 1 #include "MDumpEvtHeader.h" 2 2 3 #include <iostream.h>4 3 #include "MLog.h" 4 #include "MLogManip.h" 5 5 #include "MParList.h" 6 6 #include "MRawEvtHeader.h" 7 7 #include "MRawEvtPixelIter.h" 8 8 9 //ClassImp(MDumpEvtHeader)9 ClassImp(MDumpEvtHeader) 10 10 11 11 Bool_t MDumpEvtHeader::PreProcess (MParList *pList) 12 12 { 13 fRawEvtHeader = (MRawEvtHeader*)pList->FindObject("MRawEvtHeader");14 if (!fRawEvtHeader)13 fRawEvtHeader = (MRawEvtHeader*)pList->FindObject("MRawEvtHeader"); 14 if (!fRawEvtHeader) 15 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 ; 16 *fLog << dbginf << " Error: MRawEvtHeader not found... exit." << endl; 17 return kFALSE ; 26 18 } 27 19 28 fPixelIter = new MRawEvtPixelIter( fRawEvtData ); 29 30 return kTRUE ; 20 fRawEvtData = (MRawEvtData*)pList->FindObject("MRawEvtData"); 21 if (!fRawEvtData) 22 { 23 *fLog << dbginf << " Error: MRawEvtData not found... exit." << endl; 24 return kFALSE ; 25 } 31 26 27 return kTRUE ; 32 28 } 33 29 34 35 30 Bool_t MDumpEvtHeader::Process() 36 31 { 37 32 fRawEvtHeader->Print() ; 38 33 39 //fRawEvtData->Print() ;34 MRawEvtPixelIter pixel( fRawEvtData ); 40 35 41 fPixelIter->Reset() ; 36 while ( pixel.Next() ) 37 { 38 *fLog << " " << pixel.GetPixelId() ; 39 } 42 40 43 while ( fPixelIter->Next() ) 44 { 45 cout << " " << fPixelIter->GetPixelId() ; 46 47 } 48 49 cout << endl ; 41 *fLog << endl ; 50 42 51 43 return kTRUE; 52 53 44 }
Note:
See TracChangeset
for help on using the changeset viewer.