Changeset 1281 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 04/19/02 16:10:44 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/CT1Hillas.C
r1011 r1281 47 47 48 48 // 49 // Setup binning for your histograms. 50 // 51 MBinning binswidth("BinningWidth"); 52 binswidth.SetEdges(100, 0, 1); // 100 bins from 0 to 1 deg 53 54 MBinning binslength("BinningLength"); 55 binslength.SetEdges(100, 0, 1); // 100 bins from 0 to 1 deg 56 57 MBinning binsalpha("BinningAlpha"); 58 binsalpha.SetEdges(90, 0, 90); // 90 bins from 0 to 90 deg 59 60 MBinning binsdist("BinningDist"); 61 binsdist.SetEdges(100, 0, 2); // 100 bins from 0 to 2 deg 62 63 plist.AddToList(&binswidth); 64 plist.AddToList(&binslength); 65 plist.AddToList(&binsalpha); 66 plist.AddToList(&binsdist); 67 68 // 69 // Craete the object which hlods the source positions in the camera 70 // plain in respect to which the image parameters will be calculated. 71 // For real data the containers will be filled by a task. 72 // 73 MSrcPosCam source("Source") 74 source.SetXY(0, 0); 75 76 plist.AddToList(&source); 77 78 // 49 79 // Now setup the tasks and tasklist: 50 80 // … … 54 84 // 4) fill the hillas into the histograms MFillHHillas 55 85 // 56 MCT1ReadAscii read(" data/CT1_97_on1.dat");57 read.AddFile("data/CT1_97_off1.dat");86 MCT1ReadAscii read("../data/CT1_97_on1.dat"); 87 //read.AddFile("../data/CT1_97_off1.dat"); 58 88 59 MImgCleanStd clean; 60 MHillasCalc hcalc; 61 MFillH hfill("MHillas", "MHHillas"); 62 MFillH sfill("MHillas", "MHStarMap"); 89 MImgCleanStd clean; 90 MHillasCalc hcalc; 91 MHillasSrcCalc csrc1("Source", "HillasSource"); 92 93 MFillH hfill("MHHillas", "MHillas"); 94 MFillH sfill("MHStarMap", "MHillas"); 95 MFillH hfill2s("HistSource [MHHillasSrc]", "HillasSource"); 63 96 64 97 tlist.AddToList(&read); 65 98 tlist.AddToList(&clean); 66 99 tlist.AddToList(&hcalc); 100 tlist.AddToList(&csrc1); 67 101 tlist.AddToList(&hfill); 68 102 tlist.AddToList(&sfill); 103 tlist.AddToList(&hfill2s); 69 104 70 105 // … … 84 119 // 85 120 plist.FindObject("MHHillas")->DrawClone(); 121 plist.FindObject("HistSource")->DrawClone(); 86 122 plist.FindObject("MHStarMap")->DrawClone(); 87 123 }
Note:
See TracChangeset
for help on using the changeset viewer.