Changeset 7358 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 09/21/05 14:26:45 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MDataSet.cc
r7349 r7358 86 86 87 87 #include "MRead.h" 88 #include "MJob.h" 88 89 #include "MAstro.h" 89 90 #include "MDirIter.h" … … 139 140 runs.Remove(0, runs.First(num)+num.Length()); 140 141 } 142 143 MJob::SortArray(data); 141 144 } 142 145 … … 175 178 // For the synchronization we must make sure, that all sequences are 176 179 // in the correct order... 177 list.Sort();180 // list.Sort(); 178 181 } 179 182 … … 298 301 // Filenames MUST begin with an appropriate string which allow 299 302 // to order them correctly in time! 300 files.Sort();303 // files.Sort(); 301 304 302 305 if (gLog.GetDebugLevel()>4) -
trunk/MagicSoft/Mars/mjobs/MJob.cc
r7099 r7358 359 359 return path; 360 360 } 361 362 void 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 77 77 78 78 static TString ExpandPath(TString fname); 79 static void SortArray(TArrayI &arr); 79 80 80 81 ClassDef(MJob, 0) // Bas class for Jobs -
trunk/MagicSoft/Mars/mjobs/MSequence.cc
r7349 r7358 130 130 #include "MLogManip.h" 131 131 132 #include "MJob.h" 132 133 #include "MAstro.h" 133 134 #include "MString.h" … … 194 195 runs.Remove(0, runs.First(num)+num.Length()); 195 196 } 197 198 MJob::SortArray(data); 196 199 } 197 200
Note:
See TracChangeset
for help on using the changeset viewer.