Ignore:
Timestamp:
12/11/06 15:05:11 (18 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

    r7986 r8222  
    467467    read.AddTree("EffectiveOnTime");
    468468
    469     set.AddFilesOn(read);
     469    if (!set.AddFilesOn(read))
     470        return kFALSE;
    470471
    471472    MFillH fill(&hsrcpos, "MSrcPosCam", "FillSrcPosCam");
     
    632633
    633634    MRead &readoff = fIsMonteCarlo ? (MRead&)readoffmc : (MRead&)readoffdata;
    634     if (fIsWobble)
    635         set.AddFilesOn(readoff);
    636     else
    637         set.AddFilesOff(readoff);
     635    const Bool_t setrc = fIsWobble ? set.AddFilesOn(readoff) : set.AddFilesOff(readoff);
     636    if (!setrc)
     637        return kFALSE;
    638638
    639639    const TString path(Form("%s/", fPathOut.Data()));
     
    798798
    799799    MRead &readon = fIsMonteCarlo ? (MRead&)readonmc : (MRead&)readondata;
    800     set.AddFilesOn(readon);
     800    if (!set.AddFilesOn(readon))
     801        return kFALSE;
    801802
    802803    scalc.SetMode(MSrcPosCalc::kDefault);
  • trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc

    r8173 r8222  
    190190    // Read the first corsika RunHeader from the MC files
    191191    TChain chain("RunHeaders");
    192     set.AddFilesOn(chain);
     192    if (!set.AddFilesOn(chain))
     193        return kFALSE;
    193194
    194195    MMcCorsikaRunHeader *h=0;
     
    292293    // Create chain
    293294    TChain chain("OriginalMC");
    294     set.AddFilesOn(chain);
     295    if (!set.AddFilesOn(chain))
     296        return kFALSE;
    295297
    296298    // Prepare histogram
     
    507509    MReadMarsFile readmc("OriginalMC");
    508510    //readmc.DisableAutoScheme();
    509     set.AddFilesOn(readmc);
     511    if (!set.AddFilesOn(readmc))
     512        return kFALSE;
     513
    510514    readmc.EnableBranch("MMcEvtBasic.fTelescopeTheta");
    511515    readmc.EnableBranch("MMcEvtBasic.fEnergy");
     
    11401144    MReadMarsFile read("Events");
    11411145    read.DisableAutoScheme();
    1142     set.AddFilesOn(read);
     1146    if (!set.AddFilesOn(read))
     1147        return kFALSE;
    11431148
    11441149    // Selector to get correct (final) theta-distribution
  • trunk/MagicSoft/Mars/mjobs/MSequence.cc

    r8221 r8222  
    296296    {
    297297        *fLog << err;
    298         *fLog < "ERROR - No input files for sequence #" << GetSequence() << endl;
     298        *fLog << "ERROR - No input files for sequence #" << GetSequence() << endl;
    299299        *fLog << "        read from " << GetName() << endl;
    300300        *fLog << "        found in" << (def?" default-path ":" ") << d << endl;
Note: See TracChangeset for help on using the changeset viewer.