Changeset 8224 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
12/12/06 10:40:29 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8223 r8224  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20 2006/12/12 Thomas Bretz
     21
     22   * mjobs/MSequence.cc:
     23     - fixed a bug in SetupRuns introduced yesterday which made the
     24       setup fail if SetupRuns were called more than once.
     25
     26
     27
    2028 2006/12/11 Thomas Bretz
    2129
  • trunk/MagicSoft/Mars/mjobs/MSequence.cc

    r8222 r8224  
    205205    const Bool_t def = d.IsNull();
    206206
     207    // For this particular case we assume that the files are added one by
     208    // one without wildcards.
     209    const Int_t n0  = iter.GetNumEntries();
     210
    207211    // Setup path
    208212    if (def)
     
    291295    }
    292296
    293     const Int_t n0 = iter.GetNumEntries();
    294     const Int_t n1 = arr.GetSize();
    295     if (n0==0)
     297    const Int_t n1 = iter.GetNumEntries()-n0;
     298    const Int_t n2 = arr.GetSize();
     299    if (n1==0)
    296300    {
    297301        *fLog << err;
     
    302306    }
    303307
    304     if (n0==n1)
    305         return n0;
     308    if (n1==n2)
     309        return n1;
    306310
    307311    *fLog << err;
    308     *fLog << "ERROR - " << n0 << " input files for sequence #" << GetSequence() << " found in" << endl;
     312    *fLog << "ERROR - " << n1 << " input files for sequence #" << GetSequence() << " found in" << endl;
    309313    *fLog << "        " << (def?" default-path ":" ") << d << endl;
    310     *fLog << "        but " << n1 << " files were defined in sequence file" << endl;
     314    *fLog << "        but " << n2 << " files were defined in sequence file" << endl;
    311315    *fLog << "        " << GetName() << endl;
    312316    if (fLog->GetDebugLevel()<=4)
Note: See TracChangeset for help on using the changeset viewer.