Changeset 8221 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
12/11/06 14:57:27 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mjobs
Files:
2 edited

Legend:

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

    r7517 r8221  
    301301    TIter Next(const_cast<TList*>(&list));
    302302    TObject *o=0;
     303
    303304    while ((o=Next()))
    304305    {
     
    314315
    315316        const TString dir(o->GetTitle());
    316         seq.SetupDatRuns(files, MSequence::kImages, dir.IsNull() ? 0 : dir.Data());
     317        if (seq.SetupDatRuns(files, MSequence::kImages, dir.IsNull() ? 0 : dir.Data())<=0)
     318            return kFALSE;
    317319    }
    318320
  • trunk/MagicSoft/Mars/mjobs/MSequence.cc

    r7808 r8221  
    203203    TString d(path);
    204204
     205    const Bool_t def = d.IsNull();
     206
    205207    // Setup path
    206     if (d.IsNull())
     208    if (def)
    207209    {
    208210        d = GetStandardPath();
     
    289291    }
    290292
    291     return iter.GetNumEntries();
     293    const Int_t n0 = iter.GetNumEntries();
     294    const Int_t n1 = arr.GetSize();
     295    if (n0==0)
     296    {
     297        *fLog << err;
     298        *fLog < "ERROR - No input files for sequence #" << GetSequence() << endl;
     299        *fLog << "        read from " << GetName() << endl;
     300        *fLog << "        found in" << (def?" default-path ":" ") << d << endl;
     301        return 0;
     302    }
     303
     304    if (n0==n1)
     305        return n0;
     306
     307    *fLog << err;
     308    *fLog << "ERROR - " << n0 << " input files for sequence #" << GetSequence() << " found in" << endl;
     309    *fLog << "        " << (def?" default-path ":" ") << d << endl;
     310    *fLog << "        but " << n1 << " files were defined in sequence file" << endl;
     311    *fLog << "        " << GetName() << endl;
     312    if (fLog->GetDebugLevel()<=4)
     313        return 0;
     314
     315    *fLog << dbg << "Files which are searched for this sequence:" << endl;
     316    iter.Print();
     317    return 0;
    292318}
    293319
Note: See TracChangeset for help on using the changeset viewer.