Ignore:
Timestamp:
08/28/07 13:03:04 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mjobs
Files:
3 edited

Legend:

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

    r8709 r8719  
    550550        return kFALSE;
    551551    }
     552
     553    if (!HasWritePermission(GetOutputFile(set.GetNumAnalysis())))
     554        return kFALSE;
    552555
    553556    CheckEnv();
  • trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc

    r8709 r8719  
    10091009    spectrum.SetMarkerStyle(kFullDotMedium);
    10101010    spectrum.SetTitle("Differential flux times E^{2}");
    1011     spectrum.SetYTitle("E^{2}#cdot dN/dE [N#cdot TeV/sm^{2}]");
     1011    spectrum.SetYTitle("E^{2}·dN/dE [N·TeV/sm^{2}]");
    10121012    spectrum.SetDirectory(0);
    10131013    spectrum.DrawCopy();
     
    13161316    }
    13171317
     1318    if (!HasWritePermission(GetPathOut()))
     1319        return kFALSE;
     1320
    13181321    CheckEnv();
    13191322
     
    13241327    *fLog << "Compile Monte Carlo Sample (data set " << set.GetName() << ")" << endl;
    13251328    *fLog << endl;
     1329
     1330    if (fDisplay)
     1331        fDisplay->SetWindowName(fName);
    13261332
    13271333    // Setup everything which is read from the ganymed file
     
    16161622    tlist2.SetAccelerator(MTask::kAccDontReset|MTask::kAccDontTime);
    16171623
    1618     MEvtLoop loop2("FillMonteCarlo"); // ***** fName *****
     1624    MEvtLoop loop2(fName); // ***** fName *****
    16191625    loop2.SetParList(&plist);
    16201626    loop2.SetDisplay(fDisplay);
     
    16851691        cont.Add(fDisplay);
    16861692
    1687     return WriteContainer(cont, "", "RECREATE");
    1688 }
     1693    if (!WriteContainer(cont, "", "RECREATE"))
     1694    {
     1695        *fLog << err << GetDescriptor() << ": Writing result failed." << endl;
     1696        return kFALSE;
     1697    }
     1698
     1699    *fLog << all << GetDescriptor() << ": Done." << endl;
     1700    *fLog << endl << endl;
     1701
     1702    return kTRUE;
     1703}
  • trunk/MagicSoft/Mars/mjobs/MJob.cc

    r8644 r8719  
    329329//
    330330// Checks whether write permissions to fname exists including
    331 // the fOverwrite data amember.
     331// the fOverwrite data member. Empty file names return kTRUE
    332332//
    333333Bool_t MJob::HasWritePermission(TString fname) const
     
    346346    }
    347347
    348     if (!fOverwrite)
     348    if (fOverwrite)
    349349        return kTRUE;
    350350
Note: See TracChangeset for help on using the changeset viewer.