Changeset 1660 for trunk/MagicSoft


Ignore:
Timestamp:
11/21/02 10:28:46 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r1659 r1660  
    44   * mbase/MAGIC.h, mbase/MEvtLoop.[h,cc], MTask.cc, MTaskList.cc:
    55     - introduced kERROR to stop an eventloop with an error
     6
     7   * manalysis/MMultiDimDistCalc.cc:
     8     - introduced usage of kERROR in case the matrix is not posdef.
    69
    710   * macros/collarea.C:
  • trunk/MagicSoft/Mars/macros/collarea.C

    r1653 r1660  
    2424
    2525
    26 void collarea(char *filename = "data/camera.root", char *outname = "")
     26void collarea(TString filename="camera.root", TString outname="")
    2727{
    2828    //
     
    6868
    6969
    70     // Write histogram to a file in case an output filename has been supplied:
     70    //
     71    // Write histogram to a file in case an output
     72    // filename has been supplied
     73    //
     74    if (outname.IsNull())
     75        return;
    7176
    72     if (strlen(outname) > 0)
    73       {
    74         TFile* f = new TFile(outname,"recreate");
    75         if (f)
    76           {
    77             TH1D* hc = ((MHMcCollectionArea*)parlist.FindObject("MHMcCollectionArea"))->GetHist();
    78             hc->Write();
    79             f.Close();
    80           }
    81       }
     77    TFile f(outname, "recreate");
     78    if (!f)
     79        return;
     80
     81    parlist.FindObject("MHMcCollectionArea")->Write();
    8282}
  • trunk/MagicSoft/Mars/manalysis/MMultiDimDistCalc.cc

    r1588 r1660  
    205205    {
    206206        *fLog << err << "MHMatrix::CalcDist failed (dg=" << dg << ", dh=" << dh << ")... aborting" << endl;
    207         return kFALSE;
     207        return kERROR;
    208208    }
    209209
Note: See TracChangeset for help on using the changeset viewer.