Ignore:
Timestamp:
11/20/02 14:01:38 (22 years ago)
Author:
bigongia
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r1645 r1653  
    7070    // Write histogram to a file in case an output filename has been supplied:
    7171
    72     TFile* f = new TFile(outname,"recreate");
    73     if (f)
     72    if (strlen(outname) > 0)
    7473      {
    75         TH1D* hc = ((MHMcCollectionArea*)parlist.FindObject("MHMcCollectionArea"))->GetHist();
    76         hc->Write();
    77         f.Close();
     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          }
    7881      }
    7982}
Note: See TracChangeset for help on using the changeset viewer.