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

Last change on this file since 602 was 602, checked in by harald, 24 years ago
neccessary changes after the transformation MNphotEvent --> MCerPhotEvt
File size: 1.0 KB
Line 
1{{
2
3 // load the shared lib
4 gSystem->Load("lib/mars.so") ;
5
6 MTaskList *tlist = new MTaskList() ;
7 MParList *plist = new MParList() ;
8
9 //
10
11 MCerPhotEvt *phevt = new MCerPhotEvt() ;
12
13 plist->AddToList( phevt ) ;
14
15 //MReadCT1Ascii *readct1 = new MReadCT1Ascii("/hd10/www/Anal_MAGIC/MCCT1_99_ga20.dat") ;
16
17 MReadCT1Ascii *readct1 = new MReadCT1Ascii("/hd10/www/Anal_MAGIC/CT1_99_on1.dat") ;
18
19 cout << readct1->PreProcess(plist) << endl ;
20
21 Int_t icount = 0 ;
22 MCamDisplay display(0) ;
23
24 //display.SetAutoScale(kFALSE) ;
25
26 while ( readct1->Process() == kTRUE )
27 {
28 cout << "Event: " << icount++ << endl ;
29
30
31 phevt->Print() ;
32
33 display->Draw( phevt ) ;
34 gClient->HandleInput();
35 if(getchar()=='q')
36 break;
37
38 phevt->CleanLevel1() ;
39
40 phevt->CleanLevel2() ;
41
42 display->Draw( phevt ) ;
43 gClient->HandleInput();
44 if(getchar()=='q')
45 break;
46
47
48 }
49
50 cout << readct1->PostProcess() << endl ;
51}}
52
Note: See TracBrowser for help on using the repository browser.