Ignore:
Timestamp:
09/21/05 14:26:45 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mjobs
Files:
4 edited

Legend:

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

    r7349 r7358  
    8686
    8787#include "MRead.h"
     88#include "MJob.h"
    8889#include "MAstro.h"
    8990#include "MDirIter.h"
     
    139140        runs.Remove(0, runs.First(num)+num.Length());
    140141    }
     142
     143    MJob::SortArray(data);
    141144}
    142145
     
    175178    // For the synchronization we must make sure, that all sequences are
    176179    // in the correct order...
    177     list.Sort();
     180    // list.Sort();
    178181}
    179182
     
    298301    // Filenames MUST begin with an appropriate string which allow
    299302    // to order them correctly in time!
    300     files.Sort();
     303    // files.Sort();
    301304
    302305    if (gLog.GetDebugLevel()>4)
  • trunk/MagicSoft/Mars/mjobs/MJob.cc

    r7099 r7358  
    359359    return path;
    360360}
     361
     362void MJob::SortArray(TArrayI &arr)
     363{
     364    TArrayI idx(arr.GetSize());
     365    TArrayI srt(arr);
     366
     367    TMath::Sort(arr.GetSize(), srt.GetArray(), idx.GetArray(), kFALSE);
     368
     369    for (int i=0; i<arr.GetSize(); i++)
     370        arr[i] = srt[idx[i]];
     371}
  • trunk/MagicSoft/Mars/mjobs/MJob.h

    r7096 r7358  
    7777
    7878    static TString ExpandPath(TString fname);
     79    static void SortArray(TArrayI &arr);
    7980
    8081    ClassDef(MJob, 0) // Bas class for Jobs
  • trunk/MagicSoft/Mars/mjobs/MSequence.cc

    r7349 r7358  
    130130#include "MLogManip.h"
    131131
     132#include "MJob.h"
    132133#include "MAstro.h"
    133134#include "MString.h"
     
    194195        runs.Remove(0, runs.First(num)+num.Length());
    195196    }
     197
     198    MJob::SortArray(data);
    196199}
    197200
Note: See TracChangeset for help on using the changeset viewer.