Line | |
---|
1 | void readCT1()
|
---|
2 | {
|
---|
3 | MParList plist;
|
---|
4 |
|
---|
5 | MGeomCamCT1 geomcam;
|
---|
6 | MHillas hillas;
|
---|
7 | MTaskList tlist;
|
---|
8 |
|
---|
9 | plist->AddToList(&geomcam);
|
---|
10 | plist->AddToList(&hillas);
|
---|
11 | plist->AddToList(&tlist);
|
---|
12 |
|
---|
13 | MCT1ReadAscii read("CT1_99_on1.dat") ;
|
---|
14 | MImgCleanStd clean;
|
---|
15 | MHillasCalc hcalc;
|
---|
16 |
|
---|
17 | tlist.AddToList(&read);
|
---|
18 | tlist.AddToList(&clean);
|
---|
19 | tlist.AddToList(&hcalc);
|
---|
20 |
|
---|
21 | MEvtLoop evtloop;
|
---|
22 | evtloop.SetParList(&plist);
|
---|
23 |
|
---|
24 | if (!evtloop.PreProcess())
|
---|
25 | return;
|
---|
26 |
|
---|
27 | MCerPhotEvt &phevt = *(MCerPhotEvt*)plist->FindObject("MCerPhotEvt");
|
---|
28 |
|
---|
29 | Int_t icount = 0 ;
|
---|
30 | MCamDisplay display(&geomcam) ;
|
---|
31 |
|
---|
32 | while (read.Process())
|
---|
33 | {
|
---|
34 | cout << "Event: " << icount++ << endl ;
|
---|
35 |
|
---|
36 | if (icount < 45 )
|
---|
37 | continue;
|
---|
38 |
|
---|
39 | display.DrawPhotNum(&phevt);
|
---|
40 | gClient->HandleInput();
|
---|
41 | if(getchar()=='q')
|
---|
42 | break;
|
---|
43 |
|
---|
44 | clean.Process();
|
---|
45 | hcalc.Process();
|
---|
46 |
|
---|
47 | hillas.Print();
|
---|
48 | hillas.Draw();
|
---|
49 |
|
---|
50 | display.DrawPhotNum(&phevt);
|
---|
51 |
|
---|
52 | gClient->HandleInput();
|
---|
53 | if(getchar()=='q')
|
---|
54 | break;
|
---|
55 |
|
---|
56 | hillas.Clear();
|
---|
57 | }
|
---|
58 |
|
---|
59 | evtloop.PostProcess();
|
---|
60 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.