Ignore:
Timestamp:
04/18/05 10:17:03 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJCut.cc

    r6941 r6948  
    227227// analysis number num, see GetOutputFile()
    228228//
    229 Bool_t MJCut::WriteResult(UInt_t num) const
     229Bool_t MJCut::WriteResult(const MParList &plist, UInt_t num) const
    230230{
    231231    TObjArray arr;
     232
     233    TIter Next(plist);
     234    TObject *o=0;
     235    while ((o=Next()))
     236        if (o->InheritsFrom(MBinning::Class()))
     237            arr.Add(o);
     238
    232239    return WriteContainer(arr, GetOutputFile(num), "UPDATE");
    233240}
     
    278285    write->AddContainer("MHillas",        "Events");
    279286    write->AddContainer("MHillasSrc",     "Events");
     287    write->AddContainer("MHillasExt",     "Events");
    280288    write->AddContainer("MPointingPos",   "Events");
    281289    write->AddContainer("MHillasSrcAnti", "Events", kFALSE);
     
    293301}
    294302
     303void MJCut::DisplayResult(const MParList &plist) const
     304{
     305    /*
     306     TObject *h1 = plist.FindObject("MHHillasOffPre",  "MHHillas");
     307     TObject *h2 = plist.FindObject("MHHillasOffPost", "MHHillas");
     308     TObject *h3 = plist.FindObject("MHVsSizeOffPost", "MHVsSize");
     309     TObject *h4 = plist.FindObject("MHHilExtOffPost", "MHHillasExt");
     310     TObject *h5 = plist.FindObject("MHHilSrcOffPost", "MHHillasSrc");
     311     TObject *h6 = plist.FindObject("MHImgParOffPost", "MHImagePar");
     312     TObject *h7 = plist.FindObject("MHNewParOffPost", "MHNewImagePar");
     313     */
     314}
     315
    295316Bool_t MJCut::ProcessFile(const MDataSet &set)
    296317{
     
    342363    MBinning bins3(50, 0,  60,   "BinningTheta",     "cos");
    343364    MBinning bins4("BinningFalseSource");
    344     //MBinning bins5("BinningWidth");
    345     //MBinning bins6("BinningLength");
    346     //MBinning bins7("BinningDist");
     365    MBinning bins5("BinningWidth");
     366    MBinning bins6("BinningLength");
     367    MBinning bins7("BinningDist");
     368    MBinning bins8("BinningMaxDist");
    347369    plist.AddToList(&bins1);
    348370    plist.AddToList(&bins2);
    349371    plist.AddToList(&bins3);
    350372    plist.AddToList(&bins4);
    351     //plist.AddToList(&bins5);
    352     //plist.AddToList(&bins6);
    353     //plist.AddToList(&bins7);
     373    plist.AddToList(&bins5);
     374    plist.AddToList(&bins6);
     375    plist.AddToList(&bins7);
     376    plist.AddToList(&bins8);
    354377
    355378    // --------------------------------------------------------------------------------
     
    623646    tlist.PrintStatistics();
    624647
     648    DisplayResult(plist);
     649
    625650    // FIXME: Perform fit and plot energy dependant alpha plots
    626651    // and fit result to new tabs!
    627     if (!WriteResult(set.GetNumAnalysis()))
     652    if (!WriteResult(plist, set.GetNumAnalysis()))
    628653        return kFALSE;
    629654
Note: See TracChangeset for help on using the changeset viewer.