source: trunk/MagicSoft/Mars/macros/readCT1.C@ 691

Last change on this file since 691 was 655, checked in by tbretz, 24 years ago
*** empty log message ***
File size: 993 bytes
Line 
1void readCT1()
2{
3 MParList *plist = new MParList() ;
4
5 MCT1ReadAscii *readct1 = new MCT1ReadAscii("CT1_99_on1.dat") ;
6
7 if (!readct1->PreProcess(plist))
8 return;
9
10 MCerPhotEvt *phevt = (MCerPhotEvt*)plist->FindObject("MCerPhotEvt");
11
12 Int_t icount = 0 ;
13 MCamDisplay display(0) ;
14
15 while ( readct1->Process() )
16 {
17 cout << "Event: " << icount++ << endl ;
18
19 if (icount >= 45 )
20 {
21 display->DrawPhotNum( phevt ) ;
22
23 gClient->HandleInput();
24 if(getchar()=='q')
25 break;
26
27 phevt->CleanLevel1() ;
28 phevt->CleanLevel2() ;
29 display->DrawPhotNum( phevt ) ;
30 gClient->HandleInput();
31 if(getchar()=='q')
32 break;
33
34 phevt->CleanLevel3() ;
35
36 display->DrawPhotNum( phevt ) ;
37 gClient->HandleInput();
38 if(getchar()=='q')
39 break;
40 }
41 }
42
43 readct1->PostProcess();
44}
Note: See TracBrowser for help on using the repository browser.