Last change
on this file since 595 was 595, checked in by harald, 24 years ago |
Added the first implementation of a EventDisplay for MAGIC.
The class doing the job is called "MCamDisplay".
|
File size:
830 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 | while ( readct1->Process() == kTRUE )
|
---|
28 | {
|
---|
29 | cout << "Event: " << icount++ << endl ;
|
---|
30 |
|
---|
31 | if ( icount == 3 )
|
---|
32 | phevt->Print() ;
|
---|
33 |
|
---|
34 | display->Draw( phevt ) ;
|
---|
35 |
|
---|
36 | gClient->HandleInput();
|
---|
37 | if(getchar()=='e') break;
|
---|
38 | }
|
---|
39 |
|
---|
40 | cout << readct1->PostProcess() << endl ;
|
---|
41 | }}
|
---|
42 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.