Changeset 1093
- Timestamp:
- 11/28/01 16:01:32 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/readMagic.C
r1076 r1093 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 19 ! 20 20 ! Copyright: MAGIC Software Development, 2000-2001 … … 39 39 40 40 MReadTree read("Events", "~/data/camera.root"); 41 MReadMarsFile readhead("Events", "~/data/camera.root"); 42 MMcPedestalCopy pedestals; 43 MMcPedestalNSB pedNSB; 41 44 MCerPhotCalc ncalc; 42 45 MClone clone("MCerPhotEvt"); … … 45 48 46 49 tlist.AddToList(&read); 50 tlist.AddToList(&readhead); 51 tlist.AddToList(&pedestals); 52 tlist.AddToList(&pedNSB); 47 53 tlist.AddToList(&ncalc); 48 54 tlist.AddToList(&clone); … … 61 67 while (tlist.Process()) 62 68 { 63 cout << "Event #" << read.GetEventNum() << endl;69 cout << "Event #" << read.GetEventNum() ":" << endl; 64 70 65 71 display.DrawPhotNum((MCerPhotEvt*)clone.GetClone()); … … 69 75 70 76 hillas.Print(); 71 hillas.Draw(); 77 hillas.Draw(); 78 72 79 display.DrawPhotNum((MCerPhotEvt*)plist.FindObject("MCerPhotEvt")); 73 80 74 81 gClient->HandleInput(); 75 82 if(getchar()=='q') 76 83 break; 77 84 } 78 85 79 86 evtloop.PostProcess(); 87 80 88 }
Note:
See TracChangeset
for help on using the changeset viewer.