Ignore:
Timestamp:
01/21/04 18:52:05 (21 years ago)
Author:
moralejo
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MMcCalibrationUpdate.cc

    r2873 r2876  
    7373    fADC2PhOuter = 1.;
    7474
     75    fFillCalibrationCam = kTRUE;
     76
    7577}
    7678
     
    117119    return kTRUE;
    118120
    119   fCalCam = (MCalibrationCam*) pList->FindCreateObj(AddSerialNumber("MCalibrationCam"));
     121
     122  fCalCam = (MCalibrationCam*) pList->FindObject(AddSerialNumber("MCalibrationCam"));
    120123  if ( !fCalCam )
    121124    {
    122       *fLog << err << dbginf << "Cannot create MCalibrationCam... aborting." << endl;
    123       return kFALSE;
     125      *fLog << warn << dbginf << AddSerialNumber("MCalibrationCam") << " does not exist... Creating." << endl;
     126
     127      fCalCam = (MCalibrationCam*) pList->FindCreateObj(AddSerialNumber("MCalibrationCam"));
     128      if ( !fCalCam )
     129        {
     130          *fLog << err << dbginf << "Cannot create " << AddSerialNumber("MCalibrationCam") << "... aborting." << endl;
     131          return kFALSE;
     132        }
     133    }
     134  else
     135    {
     136      fFillCalibrationCam = kFALSE;
     137      *fLog << warn << dbginf << AddSerialNumber("MCalibrationCam") << " already exists... " << endl;
    124138    }
    125139
     
    185199    fConversionHiLo = fHeaderFadc->GetLow2HighGain();
    186200
     201    //
     202    // If MCalibrationCam already existed in the parameter list before
     203    // MMcCalibrationUpdate::PreProcess was executed (from a
     204    // previous calibration loop) we must not fill it, hence nothing
     205    // else has to be done in ReInit:
     206    //
     207    if ( !fFillCalibrationCam )
     208      return kTRUE;
     209
    187210
    188211    const int num = fCalCam->GetSize();
Note: See TracChangeset for help on using the changeset viewer.