Ignore:
Timestamp:
08/02/02 09:41:28 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/WuerzburgSoft/Thomas/mphys
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WuerzburgSoft/Thomas/mphys/Changelog

    r1462 r1475  
    11                                                                  -*-*- END -*-*-
    2  2002/06/29: Thomas Bretz
     2 2002/08/02: Thomas Bretz
     3
     4   * MCascade.[h,cc]:
     5     - doesn't overwrite existing files anymore
     6
     7
     8
     9 2002/07/29: Thomas Bretz
    310
    411   * MCascade.[h,cc]:
     
    1017
    1118
    12  2002/06/29: Thomas Bretz
     19 2002/07/29: Thomas Bretz
    1320
    1421   * MElectron.[h,cc]:
     
    5259
    5360
    54  2002/06/26: Thomas Bretz
     61 2002/07/26: Thomas Bretz
    5562
    5663   * MParticle.[h,cc]:
     
    7380
    7481
    75  2002/06/21: Thomas Bretz
     82 2002/07/21: Thomas Bretz
    7683
    7784   * MElectron.cc:
  • trunk/WuerzburgSoft/Thomas/mphys/MCascade.cc

    r1462 r1475  
    8484TFile *MCascade::OpenFile(TString fFilename)
    8585{
    86     TFile *fFile = new TFile(fFilename, "RECREATE", "Intergalactic cascade", 9);
     86    TFile *fFile = new TFile(fFilename, "CREATE", "Intergalactic cascade", 9);
     87
     88    if (fFile->IsZombie())
     89    {
     90        delete fFile;
     91        return NULL;
     92    }
    8793
    8894    Write("Setup");
     
    342348void MCascade::SetEnergyBins(Int_t n, Double_t lo, Double_t hi)
    343349{
    344     fNumBins = n;      // number of bins produced in energy spectrum
     350    fNumBins = n;  // number of bins produced in energy spectrum
    345351
    346352    fELo = lo;     // lower limit of displayed spectrum
     
    357363{
    358364    fIsBatch = gROOT->IsBatch() ? kFALSE : draw;
     365
     366    // ------------------------------
     367
     368    cout << "Output File '" << filename << "'... " << flush;
     369
     370    TFile *file=OpenFile(filename);
     371    if (!file)
     372        return;
     373
     374    // ------------------------------
    359375
    360376    cout << "R = " << fSrcR << "kpc" << endl;
     
    403419    // ------------------------------
    404420
    405     cout << "Output File... " << flush;
    406 
    407     TFile *file=OpenFile(filename);
    408 
    409     // ------------------------------
    410 
    411421    cout << "Timers... " << flush;
    412422
Note: See TracChangeset for help on using the changeset viewer.