Changeset 4612 for trunk/MagicSoft


Ignore:
Timestamp:
08/13/04 15:13:23 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r4611 r4612  
    12301230Bool_t MJCalibration::ReadCalibrationCam()
    12311231{
    1232 
    12331232  const TString fname = GetOutputFile();
    12341233 
    12351234  if (gSystem->AccessPathName(fname, kFileExists))
    1236     {
     1235  {
    12371236      *fLog << err << "Input file " << fname << " doesn't exist." << endl;
    12381237      return kFALSE;
    1239     }
    1240  
     1238  }
     1239
    12411240  *fLog << inf << "Reading from file: " << fname << endl;
    12421241
    12431242  TFile file(fname, "READ");
    12441243  if (fCalibrationCam.Read()<=0)
    1245     {
     1244  {
    12461245      *fLog << err << "Unable to read MCalibrationChargeCam from " << fname << endl;
    12471246      return kFALSE;
    1248     }
    1249  
     1247  }
     1248
    12501249  if (fQECam.Read()<=0)
    1251     {
     1250  {
    12521251      *fLog << err << "Unable to read MCalibrationQECam from " << fname << endl;
    12531252      return kFALSE;
    1254     }
    1255  
    1256 
    1257   if (fRelTimes)
    1258     if (fRelTimeCam.Read()<=0)
     1253  }
     1254
     1255
     1256  if (file.FindKey("MCalibrationRelTimeCam"))
     1257      if (fRelTimeCam.Read()<=0)
    12591258      {
    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;
    12621261      }
    1263  
     1262
    12641263  if (file.FindKey("MBadPixelsCam"))
    1265     {
     1264  {
    12661265      MBadPixelsCam bad;
    12671266      if (bad.Read()<=0)
    1268         {
     1267      {
    12691268          *fLog << err << "Unable to read MBadPixelsCam from " << fname << endl;
    12701269          return kFALSE;
    1271         }
     1270      }
    12721271      fBadPixels.Merge(bad);
    1273     }
    1274  
     1272  }
     1273
    12751274  if (fDisplay /*&& !fDisplay->GetCanvas("Pedestals")*/) // FIXME!
    1276     fDisplay->Read();
    1277  
     1275      fDisplay->Read();
     1276
    12781277  return kTRUE;
    12791278}
Note: See TracChangeset for help on using the changeset viewer.