Ignore:
Timestamp:
05/09/05 10:15:41 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r6994 r7001  
    178178        return -1;
    179179
     180    TObject *hist = arr.FindObjectInCanvas("Hist", "MHAlpha", "Hist");
     181    cout << "HIST: " << hist << endl;
     182    if (hist)
     183        cout << "TYPE: " << hist->ClassName() << endl;
     184    arr.Print();
     185
    180186    vstime->Copy(h1);
    181187    size->Copy(h2);
     
    344350    taskenv1.SetDefault(fEstimateEnergy ? fEstimateEnergy : &est);
    345351
    346     MFillH fill1("HistOff [MHAlpha]", "MHillasSrc", "FillHistOff");
    347     MFillH fill2("HistOn  [MHAlpha]", "MHillasSrc", "FillHistOn");
     352    MFillH fill1("HistEOff [MHAlpha]", "MHillasSrc", "FillHistEOff");
     353    MFillH fill2("HistE    [MHAlpha]", "MHillasSrc", "FillHistE");
    348354
    349355    MFDataMember f0("DataType.fVal", '<', 0.5, "FilterOffData");
     
    382388    }
    383389
    384     const MHAlpha *halpha = (MHAlpha *)plist.FindObject("HistOn");
     390    const MHAlpha *halpha = (MHAlpha *)plist.FindObject("HistE");
    385391    if (!halpha)
    386392    {
    387         *fLog << err << GetDescriptor() << ": HistOn [MHAlpha] not found... abort." << endl;
     393        *fLog << err << GetDescriptor() << ": HistE [MHAlpha] not found... abort." << endl;
    388394        return kFALSE;
    389395    }
     
    597603    *fLog << inf << "Reading from file: " << fPathIn << endl;
    598604
    599     cout << "Opening..." << endl;
    600605    TFile file(fPathIn, "READ");
    601606    if (!file.IsOpen())
     
    605610    }
    606611
    607     cout << "Reading..." << endl;
    608612    file.cd();
    609613    MStatusArray arr;
     
    614618    }
    615619
    616     cout << "Searching..." << endl;
    617 
    618620    TH1 *excess = (TH1D*)arr.FindObjectInCanvas("Excess", "TH1D", "Hist");
    619621    if (!excess)
    620622        return kFALSE;
    621 
    622     cout << "Displaying..." << endl;
    623623
    624624    // ------------------- Plot excess versus size -------------------
     
    638638    // Don't do this on the original object!
    639639    excess->SetStats(kFALSE);
    640 
    641     cout << "ExcessSize..." << endl;
    642640
    643641    TObject *o=0;
     
    656654    }
    657655
    658     cout << "Dist..." << endl;
    659 
    660656    // -------------- Comparison of Image Parameters --------------
    661657    c.cd(2);
    662658    PlotSame(arr, plist, "Dist",   "HilSrc",  "MHHilSrcMCPost");
    663659
    664     cout << "Length..." << endl;
    665 
    666660    c.cd(3);
    667661    PlotSame(arr, plist, "Length", "PostCut", "MHHillasMCPost");
    668662
    669     cout << "M3l..." << endl;
    670 
    671663    c.cd(4);
    672664    PlotSame(arr, plist, "M3l",    "HilExt",  "MHHilExtMCPost");
    673665
    674     cout << "Conc1..." << endl;
    675 
    676666    c.cd(5);
    677667    PlotSame(arr, plist, "Conc1",  "NewPar",  "MHNewParMCPost");
    678 
    679     cout << "Width..." << endl;
    680668
    681669    c.cd(6);
     
    710698    MBinning bins7("BinningDist");
    711699    MBinning bins8("BinningMaxDist");
     700    MBinning bins9("BinningM3Long");
     701    MBinning bins0("BinningConc1");
    712702
    713703    MAlphaFitter fit;
     
    722712    plist.AddToList(&bins7);
    723713    plist.AddToList(&bins8);
     714    plist.AddToList(&bins9);
     715    plist.AddToList(&bins0);
    724716    plist.AddToList(&fit);
    725717
Note: See TracChangeset for help on using the changeset viewer.