Changeset 4612 for trunk/MagicSoft
- Timestamp:
- 08/13/04 15:13:23 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r4611 r4612 1230 1230 Bool_t MJCalibration::ReadCalibrationCam() 1231 1231 { 1232 1233 1232 const TString fname = GetOutputFile(); 1234 1233 1235 1234 if (gSystem->AccessPathName(fname, kFileExists)) 1236 1235 { 1237 1236 *fLog << err << "Input file " << fname << " doesn't exist." << endl; 1238 1237 return kFALSE; 1239 1240 1238 } 1239 1241 1240 *fLog << inf << "Reading from file: " << fname << endl; 1242 1241 1243 1242 TFile file(fname, "READ"); 1244 1243 if (fCalibrationCam.Read()<=0) 1245 1244 { 1246 1245 *fLog << err << "Unable to read MCalibrationChargeCam from " << fname << endl; 1247 1246 return kFALSE; 1248 1249 1247 } 1248 1250 1249 if (fQECam.Read()<=0) 1251 1250 { 1252 1251 *fLog << err << "Unable to read MCalibrationQECam from " << fname << endl; 1253 1252 return kFALSE; 1254 1255 1256 1257 if (f RelTimes)1258 if (fRelTimeCam.Read()<=0)1253 } 1254 1255 1256 if (file.FindKey("MCalibrationRelTimeCam")) 1257 if (fRelTimeCam.Read()<=0) 1259 1258 { 1260 *fLog << err << "Unable to read MCalibrationRelTimeCam from " << fname << endl;1261 return kFALSE;1259 *fLog << err << "Unable to read MCalibrationRelTimeCam from " << fname << endl; 1260 return kFALSE; 1262 1261 } 1263 1262 1264 1263 if (file.FindKey("MBadPixelsCam")) 1265 1264 { 1266 1265 MBadPixelsCam bad; 1267 1266 if (bad.Read()<=0) 1268 1267 { 1269 1268 *fLog << err << "Unable to read MBadPixelsCam from " << fname << endl; 1270 1269 return kFALSE; 1271 1270 } 1272 1271 fBadPixels.Merge(bad); 1273 1274 1272 } 1273 1275 1274 if (fDisplay /*&& !fDisplay->GetCanvas("Pedestals")*/) // FIXME! 1276 fDisplay->Read();1277 1275 fDisplay->Read(); 1276 1278 1277 return kTRUE; 1279 1278 }
Note:
See TracChangeset
for help on using the changeset viewer.