Changeset 14858 for trunk/Mars/mjobs
- Timestamp:
- 02/04/13 10:07:37 (12 years ago)
- Location:
- trunk/Mars/mjobs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mjobs/MSequence.cc
r12795 r14858 472 472 TString n; 473 473 474 if ( (type&kRunType)==kDrsFile)474 if (type&kDrsFile) 475 475 { 476 476 n += night.GetStringFmt("%Y%m%d_"); … … 479 479 return n; 480 480 } 481 if ( (type&kFileType)==kFits)481 if (type&(kFits|kFact)) 482 482 { 483 483 n += night.GetStringFmt("%Y%m%d_"); 484 484 n += MString::Format("%03d", run); 485 n += ".fits.?g?z?"; 485 486 if (type==kFactCal) 487 n += "_C.root"; 488 else if (type==kFactImg) 489 n += "_I.root"; 490 else 491 n += ".fits.?g?z?"; 486 492 return n; 487 493 } … … 698 704 { 699 705 if (fDrsRuns.GetSize()==0) 700 return fDrsFiles [0];706 return fDrsFiles.GetSize()==0 ? 0 : fDrsFiles[0]; 701 707 702 708 UInt_t rc = 0; -
trunk/Mars/mjobs/MSequence.h
r14449 r14858 26 26 kFits =BIT(4), 27 27 kDrs =BIT(5), 28 kFact =BIT(6), 28 29 }; 29 30 enum RunType_t { 30 kPed =BIT( 6), // Don't use overlapping bits!31 kCal =BIT( 7),32 kDat =BIT( 8),33 kExcl =BIT( 9),31 kPed =BIT(7), // Don't use overlapping bits! 32 kCal =BIT(8), 33 kDat =BIT(9), 34 kExcl =BIT(10), 34 35 kAll =kPed|kDat|kCal, 35 kImage =BIT(1 0),36 kCalib =BIT(1 1),37 kDrsRun =BIT(1 2),38 kDrsFile=BIT(1 3),36 kImage =BIT(11), 37 kCalib =BIT(12), 38 kDrsRun =BIT(13), 39 kDrsFile=BIT(14), 39 40 }; 40 41 41 42 enum { kRunType = kPed|kCal|kDat|kImage|kCalib|kDrsRun|kDrsFile }; 42 enum { kFileType = kRaw|kRoot|kReport|kCer|kDrs|kFits };43 enum { kFileType = kRaw|kRoot|kReport|kCer|kDrs|kFits|kFact }; 43 44 enum { kFilePaths = kFileType|kImage|kCalib }; 44 45 … … 51 52 kFitsDat = kFits |kDat, 52 53 kFitsDrs = kFits |kDrsFile, 54 kFitsDrsRuns= kFits |kDrsRun, 55 kFactCal = kFits |kCalib, 56 kFactImg = kFits |kImage, 53 57 kRawDrs = kDrs |kDrsFile, 54 58 kRawAll = kRaw |kAll, … … 249 253 250 254 // Static function for external access 251 static TString GetStandardPath(Bool_t mc) { return mc?"/magic/montecarlo/":"/magic/data/"; } 255 //static TString GetStandardPath(Bool_t mc) { return mc?"/magic/montecarlo/":"/data00/fact-construction/"; } 256 static TString GetStandardPath(Bool_t mc) { return mc?"/magic/montecarlo/":"/fact/"; } 252 257 static Bool_t InflateSeq(TString &seq, /*FIXME: TELNUM*/ Bool_t ismc=kFALSE); 253 258
Note:
See TracChangeset
for help on using the changeset viewer.