Changeset 1076 for trunk/MagicSoft/Mars/macros/readMagic.C
- Timestamp:
- 11/14/01 10:03:20 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/readMagic.C
r1038 r1076 40 40 MReadTree read("Events", "~/data/camera.root"); 41 41 MCerPhotCalc ncalc; 42 MClone clone("MCerPhotEvt"); 42 43 MImgCleanStd clean; 43 44 MHillasCalc hcalc; … … 45 46 tlist.AddToList(&read); 46 47 tlist.AddToList(&ncalc); 48 tlist.AddToList(&clone); 47 49 tlist.AddToList(&clean); 48 50 tlist.AddToList(&hcalc); … … 54 56 return; 55 57 56 MCerPhotEvt &phevt = *(MCerPhotEvt*)plist.FindObject("MCerPhotEvt");57 58 58 MCamDisplay display(&geomcam); 59 59 display.Draw(); 60 60 61 while ( read.Process())61 while (tlist.Process()) 62 62 { 63 cout << "Event #" << read.GetEventNum() ":" << endl; 64 hillas.Reset(); 65 phevt.Reset(); 63 cout << "Event #" << read.GetEventNum() << endl; 66 64 67 ncalc.Process(); 68 69 display.DrawPhotNum(&phevt); 65 display.DrawPhotNum((MCerPhotEvt*)clone.GetClone()); 70 66 gClient->HandleInput(); 71 67 if(getchar()=='q') 72 68 break; 73 69 74 clean.Process();75 hcalc.Process();76 77 70 hillas.Print(); 78 71 hillas.Draw(); 79 80 display.DrawPhotNum(&phevt); 72 display.DrawPhotNum((MCerPhotEvt*)plist.FindObject("MCerPhotEvt")); 81 73 82 74 gClient->HandleInput();
Note:
See TracChangeset
for help on using the changeset viewer.