Last change
on this file since 603 was 603, checked in by harald, 24 years ago |
implemented the Image Cleaning a la CT1 to the class MCerPhotEvt
changed the readCT1.C file to show the effects of the image cleaning
a la CT1
|
File size:
1.1 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 | if (icount >= 45 ) {
|
---|
31 |
|
---|
32 | display->Draw( phevt ) ;
|
---|
33 |
|
---|
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;
|
---|
45 |
|
---|
46 | phevt->CleanLevel3() ;
|
---|
47 |
|
---|
48 | display->Draw( phevt ) ;
|
---|
49 | gClient->HandleInput();
|
---|
50 | if(getchar()=='q')
|
---|
51 | break;
|
---|
52 |
|
---|
53 | }
|
---|
54 | phevt->Print() ;
|
---|
55 |
|
---|
56 | }
|
---|
57 |
|
---|
58 | cout << readct1->PostProcess() << endl ;
|
---|
59 | }}
|
---|
60 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.