Changeset 9607 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 07/05/10 16:16:21 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MSequence.cc
r9441 r9607 18 18 ! Author(s): Thomas Bretz, 8/2004 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2004-20 0820 ! Copyright: MAGIC Software Development, 2004-2010 21 21 ! 22 22 ! … … 47 47 // Sequence: 31015 48 48 // 49 // # Telescope number the sequence belongs to (if the resource is omitted 50 // # the default is 1) 51 // Telescope: 1 52 // 49 53 // # Observation Period (not needed, calculated from Night) 50 // # Period: 54 // # Period: 18 51 55 // 52 56 // # Date of sunrise of the observation night - necessary if the path … … 218 222 } 219 223 220 if ( run<1000000 && file>0)224 if (!fMonteCarlo && run<1000000 && file>0) 221 225 *fLog << warn << "WARNING - Run number " << run << "<" << "1,000,000 but file " << file << ">0..." << endl; 222 226 … … 448 452 { 449 453 if (!night && type==kCorsika) 454 { 455 // /magic/simulated/ceres/001/000/0001/cer123456 450 456 return MString::Format("cer%06d", -run); 457 } 451 458 452 459 const char *id="_"; … … 489 496 // This is for MCs (FIXME!!!!) 490 497 if (run<0) 498 { 491 499 n += MString::Format("%08d", -run); 500 if (file>0) 501 n += MString::Format(".%03d", file); 502 } 492 503 else 493 504 { … … 503 514 n += MString::Format(".%03d", file); 504 515 } 516 505 517 506 518 n += "_"; … … 536 548 TString MSequence::GetFileRegexp(UInt_t i, const TArrayI &arr, const TArrayI &sub, FileType_t type) const 537 549 { 550 // Entry doesn't exist 538 551 if (i>=(UInt_t)arr.GetSize()) 539 552 return ""; 540 553 541 return InflateFileName(fNight, arr[i]>999999?fTelescope:0, fMonteCarlo?-arr[i]:arr[i], sub.GetSize()>0?sub[i]:0, type); 554 // This is (so far) well defined for MAGIC data 555 if (!fMonteCarlo) 556 return InflateFileName(fNight, arr[i]>999999?fTelescope:0, arr[i], sub.GetSize()>0?sub[i]:0, type); 557 558 // Monte Carlos 559 return InflateFileName(fNight, fTelescope, -arr[i], sub.GetSize()>0?sub[i]:0, type); 542 560 } 543 561
Note:
See TracChangeset
for help on using the changeset viewer.