Ignore:
Timestamp:
01/29/04 15:56:15 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MCalibrationCam.cc

    r2943 r2956  
    7272    : fOffsets(NULL),
    7373      fSlopes(NULL),
    74       fOffvsSlope(NULL)
     74      fOffvsSlope(NULL),
     75      fBlindPixelId(559),
     76      fPINDiodeId(9999)
    7577{
    7678    fName  = name  ? name  : "MCalibrationCam";
     
    181183  fPINDiode->Clear();
    182184
    183   fNumPhotInsidePlexiglassAvailable  = kFALSE;
    184185  fMeanPhotInsidePlexiglass          = -1.;
    185186  fMeanPhotErrInsidePlexiglass       = -1.;
    186   fNumPhotOutsidePlexiglassAvailable = kFALSE;
    187187  fMeanPhotOutsidePlexiglass         = -1.;
    188188  fMeanPhotErrOutsidePlexiglass      = -1.;
    189189
    190190  fNumExcludedPixels                 = 0;
     191
     192  CLRBIT(fFlags,kBlindPixelMethodValid);
     193  CLRBIT(fFlags,kPINDiodeMethodValid);
     194  CLRBIT(fFlags,kNumPhotInsidePlexiglassAvailable);
     195  CLRBIT(fFlags,kNumPhotOutsidePlexiglassAvailable); 
    191196
    192197  return;
     
    223228  return TESTBIT(fFlags,kPINDiodeMethodValid); 
    224229}
     230
     231
     232Bool_t  MCalibrationCam::IsNumPhotInsidePlexiglassAvailable()   const
     233{
     234  return TESTBIT(fFlags,kNumPhotInsidePlexiglassAvailable);
     235}
     236
     237Bool_t  MCalibrationCam::IsNumPhotOutsidePlexiglassAvailable()   const
     238{
     239  return TESTBIT(fFlags,kNumPhotOutsidePlexiglassAvailable);
     240}
     241
    225242
    226243
     
    374391    return kFALSE;
    375392 
    376   if (idx == gkCalibrationBlindPixelId)
     393  if (idx == fBlindPixelId)
     394    return kFALSE;
     395
     396  if (idx == fPINDiodeId)
    377397    return kFALSE;
    378398
     
    501521    }
    502522
    503   fNumPhotInsidePlexiglassAvailable = kTRUE;
     523  SETBIT(fFlags,kNumPhotInsidePlexiglassAvailable);
    504524
    505525  *fLog << inf << endl;
     
    557577    }
    558578
    559   fNumPhotOutsidePlexiglassAvailable = kTRUE;
     579  SETBIT(fFlags,kNumPhotOutsidePlexiglassAvailable); 
    560580
    561581  *fLog << inf << endl;
     
    583603    return kFALSE;
    584604
    585   if (!fNumPhotInsidePlexiglassAvailable)
     605  if (!IsNumPhotInsidePlexiglassAvailable())
    586606    if (!CalcNumPhotInsidePlexiglass())
    587607      return kFALSE;
     
    627647  if (ipx < 0 || !IsPixelFitted(ipx))
    628648    return kFALSE;
     649
     650  if (!IsNumPhotOutsidePlexiglassAvailable())
     651    if (!CalcNumPhotOutsidePlexiglass())
     652      return kFALSE;
     653
     654  mean  = (*this)[ipx].GetMeanConversionPINDiodeMethod();
     655  err   = (*this)[ipx].GetErrorConversionPINDiodeMethod();
     656  sigma = (*this)[ipx].GetSigmaConversionPINDiodeMethod();
    629657
    630658  return kFALSE;
Note: See TracChangeset for help on using the changeset viewer.