Changeset 1281 for trunk/MagicSoft


Ignore:
Timestamp:
04/19/02 16:10:44 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r1280 r1281  
    77       return a List of TBaseClasses not a List of TClass objects)
    88     - added a security check to Process whether we have something to process or not.
     9
     10   * macros/CT1Hillas.C:
     11     - changed to the new Hillas classes
    912
    1013
  • trunk/MagicSoft/Mars/macros/CT1Hillas.C

    r1011 r1281  
    4747
    4848    //
     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    //
    4979    // Now setup the tasks and tasklist:
    5080    //
     
    5484    //  4) fill the hillas into the histograms      MFillHHillas
    5585    //
    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");
    5888
    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");
    6396
    6497    tlist.AddToList(&read);
    6598    tlist.AddToList(&clean);
    6699    tlist.AddToList(&hcalc);
     100    tlist.AddToList(&csrc1);
    67101    tlist.AddToList(&hfill);
    68102    tlist.AddToList(&sfill);
     103    tlist.AddToList(&hfill2s);
    69104
    70105    //
     
    84119    //
    85120    plist.FindObject("MHHillas")->DrawClone();
     121    plist.FindObject("HistSource")->DrawClone();
    86122    plist.FindObject("MHStarMap")->DrawClone();
    87123}
Note: See TracChangeset for help on using the changeset viewer.