Ignore:
Timestamp:
11/01/01 10:19:46 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/macros/MagicHillas.C

    r949 r1023  
    2424
    2525
    26 void MagicHillas()
     26void MagicHillas(const char *filename="data/camera.root")
    2727{
    2828    //
     
    5050
    5151    //
    52     // The Hillas histograms (MHHillas) could be created automatically
    53     // but to make sure, that they are not deleted when the macro is
    54     // finished you must create them yourself and add it to the list
    55     //
    56     MHHillas *hists = new MHHillas;
    57     plist.AddToList(hists);
    58 
    59     MHStarMap *smap = new MHStarMap;
    60     plist.AddToList(smap);
    61 
    62     //
    6352    // Now setup the tasks and tasklist:
    6453    //
     
    7665    //   CalEvents:  Calibration Events
    7766    //
    78     MReadTree read("Events", "data/octobertest.root");
     67    MReadTree read("Events", filename);
    7968    // read.AddFile("data/cer000019.root");
    8069
    81     MCerPhotCalc    ncalc;
    82     MImgCleanStd    clean;
    83     MHillasCalc     hcalc;
    84     MFillH          hfill("MHillas", "MHHillas");
    85     MFillH          sfill("MHillas", "MHStarMap");
     70    MCerPhotCalc ncalc;
     71    MImgCleanStd clean;
     72    MHillasCalc  hcalc;
     73    MFillH       hfill("MHillas", "MHHillas");
     74    MFillH       sfill("MHillas", "MHStarMap");
    8675
    87     MWriteRootFile  write("hillas.root");
     76    //
     77    // Crete and setup Tasklist
     78    //
     79    MWriteRootFile write("hillas.root");
    8880    write.AddContainer("MHillas");
    89     write.AddContainer("MHHillas");
    90     write.AddContainer(smap);
     81    write.AddContainer("MHStarMap");
    9182
    9283    tlist.AddToList(&read);
     
    113104    // After the analysis is finished we can display the histograms
    114105    //
    115     hists->Draw();
    116     smap->Draw();
     106    plist.FindObject("MHHillas")->DrawClone();
     107    plist.FindObject("MHStarMap")->DrawClone();
    117108}
    118109
Note: See TracChangeset for help on using the changeset viewer.