Changeset 1023 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 11/01/01 10:19:46 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/MagicHillas.C
r949 r1023 24 24 25 25 26 void MagicHillas( )26 void MagicHillas(const char *filename="data/camera.root") 27 27 { 28 28 // … … 50 50 51 51 // 52 // The Hillas histograms (MHHillas) could be created automatically53 // but to make sure, that they are not deleted when the macro is54 // finished you must create them yourself and add it to the list55 //56 MHHillas *hists = new MHHillas;57 plist.AddToList(hists);58 59 MHStarMap *smap = new MHStarMap;60 plist.AddToList(smap);61 62 //63 52 // Now setup the tasks and tasklist: 64 53 // … … 76 65 // CalEvents: Calibration Events 77 66 // 78 MReadTree read("Events", "data/octobertest.root");67 MReadTree read("Events", filename); 79 68 // read.AddFile("data/cer000019.root"); 80 69 81 MCerPhotCalc 82 MImgCleanStd 83 MHillasCalc 84 MFillH 85 MFillH 70 MCerPhotCalc ncalc; 71 MImgCleanStd clean; 72 MHillasCalc hcalc; 73 MFillH hfill("MHillas", "MHHillas"); 74 MFillH sfill("MHillas", "MHStarMap"); 86 75 87 MWriteRootFile write("hillas.root"); 76 // 77 // Crete and setup Tasklist 78 // 79 MWriteRootFile write("hillas.root"); 88 80 write.AddContainer("MHillas"); 89 write.AddContainer("MHHillas"); 90 write.AddContainer(smap); 81 write.AddContainer("MHStarMap"); 91 82 92 83 tlist.AddToList(&read); … … 113 104 // After the analysis is finished we can display the histograms 114 105 // 115 hists->Draw();116 smap->Draw();106 plist.FindObject("MHHillas")->DrawClone(); 107 plist.FindObject("MHStarMap")->DrawClone(); 117 108 } 118 109
Note:
See TracChangeset
for help on using the changeset viewer.