Changeset 655 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 03/01/01 16:07:13 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/readCT1.C
r603 r655 1 {{ 2 3 // load the shared lib 4 // gSystem->Load("lib/mars.so") ; 5 6 MTaskList *tlist = new MTaskList() ; 7 MParList *plist = new MParList() ; 1 void readCT1() 2 { 3 MParList *plist = new MParList() ; 8 4 9 // 10 11 MCerPhotEvt *phevt = new MCerPhotEvt() ; 5 MCT1ReadAscii *readct1 = new MCT1ReadAscii("CT1_99_on1.dat") ; 12 6 13 plist->AddToList( phevt ) ; 14 15 //MReadCT1Ascii *readct1 = new MReadCT1Ascii("/hd10/www/Anal_MAGIC/MCCT1_99_ga20.dat") ; 7 if (!readct1->PreProcess(plist)) 8 return; 16 9 17 MReadCT1Ascii *readct1 = new MReadCT1Ascii("/hd10/www/Anal_MAGIC/CT1_99_on1.dat") ;10 MCerPhotEvt *phevt = (MCerPhotEvt*)plist->FindObject("MCerPhotEvt"); 18 11 19 cout << readct1->PreProcess(plist) << endl ; 12 Int_t icount = 0 ; 13 MCamDisplay display(0) ; 20 14 21 Int_t icount = 0 ; 22 MCamDisplay display(0) ; 15 while ( readct1->Process() ) 16 { 17 cout << "Event: " << icount++ << endl ; 23 18 24 //display.SetAutoScale(kFALSE) ; 19 if (icount >= 45 ) 20 { 21 display->DrawPhotNum( phevt ) ; 25 22 26 while ( readct1->Process() == kTRUE ) 27 { 28 cout << "Event: " << icount++ << endl ; 29 30 if (icount >= 45 ) { 31 32 display->Draw( phevt ) ; 23 gClient->HandleInput(); 24 if(getchar()=='q') 25 break; 33 26 34 gClient->HandleInput(); 35 if(getchar()=='q') 36 break; 37 38 39 phevt->CleanLevel1() ; 40 phevt->CleanLevel2() ; 41 display->Draw( phevt ) ; 42 gClient->HandleInput(); 43 if(getchar()=='q') 44 break; 27 phevt->CleanLevel1() ; 28 phevt->CleanLevel2() ; 29 display->DrawPhotNum( phevt ) ; 30 gClient->HandleInput(); 31 if(getchar()=='q') 32 break; 45 33 46 phevt->CleanLevel3() ; 47 48 display->Draw( phevt ) ; 49 gClient->HandleInput(); 50 if(getchar()=='q') 51 break; 34 phevt->CleanLevel3() ; 52 35 53 } 54 phevt->Print() ; 55 36 display->DrawPhotNum( phevt ) ; 37 gClient->HandleInput(); 38 if(getchar()=='q') 39 break; 40 } 56 41 } 57 42 58 cout << readct1->PostProcess() << endl ; 59 }} 60 43 readct1->PostProcess(); 44 }
Note:
See TracChangeset
for help on using the changeset viewer.