Changeset 7170 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 06/27/05 10:45:56 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MDataSet.cc
r6958 r7170 326 326 { 327 327 if (!HasSource()) 328 return kFALSE; 328 { 329 gLog << err << "ERROR - MDataSet::GetSourcePos called, but no source available." << endl; 330 return kFALSE; 331 } 329 332 330 333 TString catalog(fCatalog); … … 339 342 } 340 343 341 TString ra, dec,epoch;344 TString ra, dec, epoch; 342 345 343 346 Int_t n = 0; … … 350 353 351 354 n++; 352 line = line.Strip(TString::kBoth); 353 354 if (!line.BeginsWith(fNameSource)) 355 356 // Strip all spaces from line 357 for (int i=0; i<line.Length(); i++) 358 if (line[i]==' ') 359 line.Remove(i--, 1); 360 361 if (fNameSource!=line(0, fNameSource.Length())) 355 362 continue; 356 363 … … 362 369 if (p<0 && i<5) 363 370 { 364 gLog << err << " Not enough arguments in line #" << n<< endl;365 return kFALSE; 371 gLog << err << "ERROR - Not enough arguments in line #" << n << " of " << catalog << endl; 372 return kFALSE;; 366 373 } 367 374 … … 387 394 if (line.First(',')>=0) 388 395 { 389 gLog << err << " Too much arguments in line #" << n<< endl;396 gLog << err << "ERROR - Too much arguments in line #" << n << " of " << catalog << endl; 390 397 return kFALSE; 391 398 } 399 392 400 break; 393 401 } 394 402 403 if (epoch.IsNull()) 404 { 405 gLog << err << "ERROR - No entry " << fNameSource << " in " << catalog << endl; 406 return kFALSE; 407 } 408 395 409 if (epoch!=(TString)"2000") 396 410 { 397 gLog << err << "E poch not 2000... not supported." << endl;411 gLog << err << "ERROR - Epoch not 2000... not supported." << endl; 398 412 return kFALSE; 399 413 }
Note:
See TracChangeset
for help on using the changeset viewer.