Changeset 8244 for trunk/MagicSoft/Mars/mjoptim
- Timestamp:
- 01/11/07 14:56:24 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjoptim/MJOptimize.cc
r8223 r8244 236 236 //------------------------------------------------------------------------ 237 237 // 238 // Add seq eunces from list to reader238 // Add sequences from list to reader 239 239 // 240 240 Bool_t MJOptimize::AddSequences(MRead &read, TList &list) const … … 243 243 244 244 TIter Next(&list); 245 TObject *o=0; 246 while ((o=Next())) 247 { 248 MSequence seq(o->GetName()); 249 if (!seq.IsValid()) 245 MSequence *seq=0; 246 while ((seq=(MSequence*)Next())) 247 { 248 if (!seq->IsValid()) 250 249 return kFALSE; 251 if (seq .SetupDatRuns(files, o->GetTitle(), "I")<=0)250 if (seq->SetupDatRuns(files)<=0) 252 251 return kFALSE; 253 252 } … … 264 263 void MJOptimize::AddSequenceOn(const char *fname, const char *dir) 265 264 { 266 fNamesOn.Add(new TNamed(fname, dir));265 fNamesOn.Add(new MSequence(fname, dir)); 267 266 } 268 267 … … 275 274 void MJOptimize::AddSequenceOff(const char *fname, const char *dir) 276 275 { 277 fNamesOff.Add(new TNamed(fname, dir));276 fNamesOff.Add(new MSequence(fname, dir)); 278 277 } 279 278
Note:
See TracChangeset
for help on using the changeset viewer.