Ignore:
Timestamp:
11/14/02 12:15:13 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/macros
Files:
2 edited

Legend:

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

    r1557 r1609  
    5757    compprob.Add("MHillas.fLength",             500,    0, 300);
    5858    compprob.Add("abs(MHillas.fAsym)",          500,    0, 400);
    59     compprob.Add("HillasSource.fDist",          500,    0, 400);
    60     compprob.Add("abs(HillasSource.fHeadTail)", 500,    0, 400);
     59    compprob.Add("MHillasSrc.fDist",            500,    0, 400);
     60    compprob.Add("abs(MHillasSrc.fHeadTail)",  500,    0, 400);
    6161    compprob.Add("abs(MHillas.fM3Long)",        500,    0, 300);
    6262    compprob.Add("abs(MHillas.fM3Trans)",       500,    0, 150);
  • trunk/MagicSoft/Mars/macros/multidimdist.C

    r1557 r1609  
    4040
    4141    //
    42     // Now setup the tasks and tasklist:
    43     // ---------------------------------
     42    // This is an example program which reads image parameters for gammas
     43    // and hadrons, builds a 'matrix' of look-alike events,
     44    // and then finds quality numbers and acceptances for the same sample
     45
     46    // Create an empty Parameter List and an empty Task List
     47    // The tasklist is identified in the eventloop by its name
    4448    //
    45     // The first argument is the tree you want to read.
    46     //   Events:     Cosmic ray events
    47     //   PedEvents:  Pedestal Events
    48     //   CalEvents:  Calibration Events
     49    MParList  plist;
     50    MTaskList tlistg;
     51    plist.AddToList(&tlistg);
     52
    4953    //
    50     MReadMarsFile  read("Events", "~/Mars/star.root");
     54    // ------------- user attention -----------------
     55    //
     56
     57    // cut used both for the matrices and the sample
     58    // for more information see the documentation of MF and MDataChain
     59    MF filterenergy("MMcEvt.fEnergy > 0");
     60
     61    // matrix limitation for look-alike events (approximate number)
     62    MFEventSelector selector;
     63    selector.SetNumSelectEvts(2000);
     64
     65    // setup an AND-Filterlist from the two filters to be used
     66    // in the event selection for the filling of the matrices
     67    MFilterList flist;
     68    flist.AddToList(&filterenergy);
     69    flist.AddToList(&selector);
     70
     71    //
     72    // ---------------------------------------------------------------
     73    //  Now set up the tasks and tasklist (first event loop, gammas)
     74    // ---------------------------------------------------------------
     75    //
     76
     77    // --------------- user change -----------------
     78    //  Give the names of the star-files to be read
     79    //   Here you give the trainings sample(s) for
     80    //                 the hadrons
     81    // ---------------------------------------------
     82    MReadMarsFile read("Events");
     83    read.AddFile("star_gammas.root");
     84    read.AddFile("star_protons.root");
    5185    read.DisableAutoScheme();
    52     tlist.AddToList(&read);
     86    tlistg.AddToList(&read);
    5387
    5488    MFParticleId fgamma("MMcEvt", '=', kGAMMA);
     
    6599    matrix.AddColumn("abs(MHillas.fM3Long)");
    66100    matrix.AddColumn("abs(MHillas.fM3Trans)");
    67     matrix.AddColumn("abs(HillasSource.fHeadTail)");
     101    matrix.AddColumn("abs(MHillasSrc.fHeadTail)");
    68102    matrix.AddColumn("MHillas.fConc");
    69103    matrix.AddColumn("MHillas.fConc1");
    70     matrix.AddColumn("HillasSource.fDist");
     104    matrix.AddColumn("MHillasSrc.fDist");
    71105    matrix.AddColumn("log10(MHillas.fSize)");
    72106    plist.AddToList(&matrix);
     
    107141    plist.Replace(&tlist2);
    108142
    109     MReadMarsFile read2("Events", "~/Mars/star.root");
    110 //    read2.AddFile("~/Mars/star2.root");
     143    MReadMarsFile read2("Events");
     144    read2.("gammas2.root");
     145    read2.AddFile("hadrons2.root");
    111146    read2.DisableAutoScheme();
    112147    tlist2.AddToList(&read2);
    113148
    114149    MMultiDimDistCalc calc;
    115     calc.SetUseNumRows(15);
    116     //calc.SetUseKernelMethod(kTRUE);
     150    calc.SetUseNumRows(0);
     151    calc.SetUseKernelMethod(kTRUE);
    117152    tlist2.AddToList(&calc);
    118153
Note: See TracChangeset for help on using the changeset viewer.