Changeset 8220
- Timestamp:
- 12/11/06 14:40:14 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibTest.cc
r7898 r8220 287 287 if (fSequence.IsValid()) 288 288 { 289 const Int_t n0 = fSequence.SetupCalRuns(iter, fPathData, IsUseRawData()); 290 const Int_t n1 = fSequence.GetNumCalRuns(); 291 if (n0==0) 292 { 293 *fLog << err << "ERROR - No input files of sequence found!" << endl; 294 return kFALSE; 295 } 296 if (n0!=n1) 297 { 298 *fLog << err << "ERROR - Number of files found (" << n0 << ") doesn't match number of files in sequence (" << n1 << ")" << endl; 299 if (fLog->GetDebugLevel()>4) 300 { 301 *fLog << dbg << "Files which are searched:" << endl; 302 iter.Print(); 303 } 304 return kFALSE; 305 } 289 if (fSequence.SetupCalRuns(iter, fPathData, IsUseRawData())<=0) 290 return kFALSE; 306 291 } 307 292 -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r8219 r8220 246 246 if (fSequence.IsValid()) 247 247 { 248 const Int_t n0 = fSequence.SetupDatRuns(iter, fPathData, IsUseRawData()); 249 const Int_t n1 = fSequence.GetNumDatRuns(); 250 if (n0==0) 251 { 252 *fLog << err << "ERROR - No input files for sequence found in " << (fPathData.IsNull()?"<default>":fPathData.Data()) << "." << endl; 248 if (fSequence.SetupDatRuns(iter, fPathData, IsUseRawData())<=0) 253 249 return kFALSE; 254 }255 if (n0!=n1)256 {257 *fLog << err << "ERROR - Number of files found (" << n0 << ") doesn't match number of files in sequence (" << n1 << ")" << endl;258 if (fLog->GetDebugLevel()>4)259 {260 *fLog << dbg << "Files which are searched:" << endl;261 iter.Print();262 }263 return kFALSE;264 }265 250 } 266 251 -
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r8219 r8220 1698 1698 1699 1699 MDirIter iter; 1700 const Int_t n0 = fSequence.SetupCalRuns(iter, fPathData, IsUseRawData()); 1701 const Int_t n1 = fSequence.GetNumCalRuns(); 1702 if (n0==0) 1703 { 1704 *fLog << err << "ERROR - No input files for sequence found in " << (fPathData.IsNull()?"<default>":fPathData.Data()) << "." << endl; 1700 if (fSequence.SetupCalRuns(iter, fPathData, IsUseRawData())<=0) 1705 1701 return kFALSE; 1706 }1707 if (n0!=n1)1708 {1709 *fLog << err << "ERROR - Number of files found ("1710 << n0 << ") doesn't match number of files in sequence ("1711 << n1 << ")" << endl;1712 if (fLog->GetDebugLevel()>4)1713 {1714 *fLog << dbg << "Files which are searched:" << endl;1715 iter.Print();1716 }1717 return kFALSE;1718 }1719 1702 1720 1703 // -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r8154 r8220 1022 1022 if (fSequence.IsValid()) 1023 1023 { 1024 const Int_t n0 = IsUseData() 1025 ? fSequence.SetupDatRuns(iter, fPathData, IsUseRawData()) 1026 : fSequence.SetupPedRuns(iter, fPathData, IsUseRawData()); 1027 const Int_t n1 = IsUseData() 1028 ? fSequence.GetNumDatRuns() 1029 : fSequence.GetNumPedRuns(); 1030 if (n0==0) 1031 { 1032 *fLog << err << "ERROR - No " << type << " input files of sequence found in " << (fPathData.IsNull()?"<default>":fPathData.Data()) << endl; 1024 const Int_t n0 = IsUseData() 1025 ? fSequence.SetupDatRuns(iter, fPathData, IsUseRawData()) 1026 : fSequence.SetupPedRuns(iter, fPathData, IsUseRawData()); 1027 1028 if (n0<=0) 1033 1029 return kFALSE; 1034 }1035 if (n0!=n1)1036 {1037 *fLog << err << "ERROR - Number of " << type << " files found (" << n0 << ") in " << (fPathData.IsNull()?"<default>":fPathData.Data()) << " doesn't match number of files in sequence (" << n1 << ")" << endl;1038 if (fLog->GetDebugLevel()>4)1039 {1040 *fLog << dbg << "Files which are searched:" << endl;1041 iter.Print();1042 }1043 return kFALSE;1044 }1045 1030 } 1046 1031 -
trunk/MagicSoft/Mars/mjobs/MJStar.cc
r8219 r8220 142 142 143 143 MDirIter iter; 144 const Int_t n0 = fSequence.SetupDatRuns(iter, MSequence::kCalibrated, fPathData); 145 const Int_t n1 = fSequence.GetNumDatRuns(); 146 if (n0==0) 147 { 148 *fLog << err << "ERROR - No input files for sequence found in " << (fPathData.IsNull()?"<default>":fPathData.Data()) << endl; 149 return kFALSE; 150 } 151 if (n0!=n1) 152 { 153 *fLog << err << "ERROR - Number of files found (" << n0 << ") doesn't match number of files in sequence (" << n1 << ")" << endl; 154 if (fLog->GetDebugLevel()>4) 155 { 156 *fLog << dbg << "Files which are searched:" << endl; 157 iter.Print(); 158 } 159 return kFALSE; 160 } 144 if (fSequence.SetupDatRuns(iter, MSequence::kCalibrated, fPathData)<=0) 145 return kFALSE; 161 146 162 147 // Setup Parlist
Note:
See TracChangeset
for help on using the changeset viewer.