Ignore:
Timestamp:
11/14/02 12:07:41 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/macros
Files:
1 added
1 edited

Legend:

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

    r1543 r1608  
    3535{
    3636    //
    37     // This is a demonstration program which calculates the Hillas
    38     // parameter out of a Magic root file.
     37    // This is a demonstration program which calculates the image
     38    // parameters from a Magic raw data root file.
    3939
    4040    //
     
    4747    plist.AddToList(&tlist);
    4848
     49    MSrcPosCam src;
     50    plist.AddToList(&src);
     51
    4952    //
    5053    // Uncomment this two line if you want to use MHillasExt instead
     
    5659    //
    5760    // The geometry container must be created by yourself to make sure
    58     // that you don't choos a wrong geometry by chance
     61    // that you don't choose a wrong geometry by mistake
    5962    //
    6063    MGeomCamMagic geomcam;
    6164    plist.AddToList(&geomcam);
    62 
    63     //
    64     // Craete the object which hlods the source positions in the camera
    65     // plain in respect to which the image parameters will be calculated.
    66     // For real data the containers will be filled by a task.
    67     //
    68     MSrcPosCam source("Source")
    69     source.SetXY(0, 0);
    70 
    71     MSrcPosCam antisrc("AntiSrc");
    72     antisrc.SetXY(240, 0);
    73 
    74     plist.AddToList(&source);
    75     plist.AddToList(&antisrc);
    7665
    7766    //
     
    8069    //
    8170    MReadMarsFile read("Events");
    82     read.AddFile("Gammas*.root");
    8371    read.DisableAutoScheme();
     72
     73    // ------------- user change -----------------
     74    read.AddFile("Pro*.root");
     75    //read.AddFile("Gam*.root");
    8476
    8577    MMcPedestalCopy   pcopy;
     
    9284    MImgCleanStd      clean;
    9385    MHillasCalc       hcalc;
    94     MHillasSrcCalc    csrc1("Source",  "HillasSource");
    95     MHillasSrcCalc    csrc2("AntiSrc", "HillasAntiSrc");
     86    MHillasSrcCalc    scalc; // !!Preliminary!! Will be removed later!
    9687
    97     MWriteRootFile write("star.root");
     88    // ------------- user change -----------------
     89    MWriteRootFile write("data/star_protons.root");
    9890    write.AddContainer("MHillas",       "Events");
    9991    write.AddContainer("HillasSource",  "Events");
    100     write.AddContainer("HillasAntiSrc", "Events");
    10192    write.AddContainer("MMcEvt",        "Events");
     93    write.AddContainer("MHillasSrc",    "Events");
    10294    write.AddContainer("MRawRunHeader", "RunHeaders");
    10395    write.AddContainer("MMcRunHeader",  "RunHeaders");
    104     write.AddContainer("Source",        "RunHeaders");
    105     write.AddContainer("AntiSource",    "RunHeaders");
    10696
    10797    tlist.AddToList(&read);
     
    112102    tlist.AddToList(&clean);
    113103    tlist.AddToList(&hcalc);
    114     tlist.AddToList(&csrc1);
    115     tlist.AddToList(&csrc2);
     104    tlist.AddToList(&scalc);
    116105    tlist.AddToList(&write);
    117106
    118107    //
    119     // Create and setup the eventloop
     108    // Create and set up the eventloop
    120109    //
    121110    MProgressBar bar;
Note: See TracChangeset for help on using the changeset viewer.