Changeset 1216 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 02/13/02 16:40:37 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/MagicHillas.C
r1209 r1216 24 24 25 25 26 void MagicHillas(const char *filename="~/data/ Gamma*.root")26 void MagicHillas(const char *filename="~/data/gamma*.root") 27 27 { 28 28 // … … 45 45 MGeomCamMagic geomcam; 46 46 plist.AddToList(&geomcam); 47 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); 47 67 48 68 //
Note:
See TracChangeset
for help on using the changeset viewer.