Changeset 9020 for trunk/MagicSoft/Mars
- Timestamp:
- 07/20/08 16:26:05 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJMerpp.cc
r9018 r9020 129 129 // write.AddContainer("MTimeDAQ", "DAQ"); 130 130 131 if (fReportRun <=0)131 if (fReportRun==(UInt_t)-1) 132 132 return 0; 133 133 134 const TString f1 = fReportRun>0 ? Form("MReportRun.fRunNumber==%d", fReportRun) : "";135 const TString f2 = fReportFile> 0 ? Form("MReportRun.fFileNumber==%d", fReportFile) : "";136 137 const TString f = Form(fReportRun>0 && fReportFile> 0 ? "%s && %s" : "%s%s",134 const TString f1 = fReportRun>0 ? Form("MReportRun.fRunNumber==%ud", fReportRun) : ""; 135 const TString f2 = fReportFile>=0 ? Form("MReportRun.fFileNumber==%ud", fReportFile) : ""; 136 137 const TString f = Form(fReportRun>0 && fReportFile>=0 ? "%s && %s" : "%s%s", 138 138 f1.Data(), f2.Data()); 139 139 … … 355 355 return 6; 356 356 357 // FIXME: When to do what??? 358 /* 359 if (fHeaderRun) 360 SetConstrainRunRep(run, file); 361 else 362 SetConstrainHeader(seq.GetTelescope(), run, file); 363 */ 357 // FIXME: check runcallisto 358 if (fHeaderRun==0) // extract valid range from summary file 359 SetConstrainRunRep(run, file); // (this is not guranteed to work :-( ) 360 else // check for the correct header 361 SetConstrainHeader(seq.GetTelescope(), run, file); 364 362 365 363 SetTime(MTime(), MTime()); // Raise error if set? -
trunk/MagicSoft/Mars/mjobs/MJMerpp.h
r9018 r9020 28 28 29 29 UInt_t fReportRun; 30 UInt_t fReportFile;30 Int_t fReportFile; 31 31 32 32 TString fOnly; … … 60 60 void SetConstrainHeader(Short_t tel, Int_t run, Int_t file) 61 61 { fTelescope=tel; fHeaderRun=run; fHeaderFile=file; } 62 void SetConstrainRunRep( Int_t run, Int_t file)62 void SetConstrainRunRep(UInt_t run, Int_t file) 63 63 { fReportRun=run; fReportFile=file; } 64 64 void SetTime(const MTime &start, const MTime &stop)
Note:
See TracChangeset
for help on using the changeset viewer.