Ignore:
Timestamp:
12/11/06 14:57:27 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.