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

Last change on this file since 596 was 596, checked in by harald, 24 years ago
Now the first version of the Camera eventdisplay is running. Run the macro "readCT1.C" to have a look.
File size: 925 bytes
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 MNphotEvent *phevt = new MNphotEvent() ;
12
13
14 plist->AddToList( phevt ) ;
15
16
17 //MReadCT1Ascii *readct1 = new MReadCT1Ascii("/hd10/www/Anal_MAGIC/MCCT1_99_ga20.dat") ;
18
19 MReadCT1Ascii *readct1 = new MReadCT1Ascii("/hd10/www/Anal_MAGIC/CT1_99_on1.dat") ;
20
21 cout << readct1->PreProcess(plist) << endl ;
22
23 Int_t icount = 0 ;
24
25 MCamDisplay display(0) ;
26
27 //display.SetAutoScale(kFALSE) ;
28
29 while ( readct1->Process() == kTRUE )
30 {
31 cout << "Event: " << icount++ << endl ;
32
33 if ( icount == 3 ) {
34 phevt->Print() ;
35 }
36
37 display->Draw( phevt ) ;
38 // display->DrawError( phevt ) ;
39
40 gClient->HandleInput();
41
42 if(getchar()=='q')
43 break;
44 }
45
46 cout << readct1->PostProcess() << endl ;
47}}
48
Note: See TracBrowser for help on using the repository browser.