Changeset 1475 for trunk/WuerzburgSoft/Thomas
- Timestamp:
- 08/02/02 09:41:28 (22 years ago)
- Location:
- trunk/WuerzburgSoft/Thomas/mphys
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WuerzburgSoft/Thomas/mphys/Changelog
r1462 r1475 1 1 -*-*- 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 3 10 4 11 * MCascade.[h,cc]: … … 10 17 11 18 12 2002/0 6/29: Thomas Bretz19 2002/07/29: Thomas Bretz 13 20 14 21 * MElectron.[h,cc]: … … 52 59 53 60 54 2002/0 6/26: Thomas Bretz61 2002/07/26: Thomas Bretz 55 62 56 63 * MParticle.[h,cc]: … … 73 80 74 81 75 2002/0 6/21: Thomas Bretz82 2002/07/21: Thomas Bretz 76 83 77 84 * MElectron.cc: -
trunk/WuerzburgSoft/Thomas/mphys/MCascade.cc
r1462 r1475 84 84 TFile *MCascade::OpenFile(TString fFilename) 85 85 { 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 } 87 93 88 94 Write("Setup"); … … 342 348 void MCascade::SetEnergyBins(Int_t n, Double_t lo, Double_t hi) 343 349 { 344 fNumBins = n; 350 fNumBins = n; // number of bins produced in energy spectrum 345 351 346 352 fELo = lo; // lower limit of displayed spectrum … … 357 363 { 358 364 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 // ------------------------------ 359 375 360 376 cout << "R = " << fSrcR << "kpc" << endl; … … 403 419 // ------------------------------ 404 420 405 cout << "Output File... " << flush;406 407 TFile *file=OpenFile(filename);408 409 // ------------------------------410 411 421 cout << "Timers... " << flush; 412 422
Note:
See TracChangeset
for help on using the changeset viewer.