Ignore:
Timestamp:
04/08/04 17:58:54 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r3672 r3678  
    5353/////////////////////////////////////////////////////////////////////////////
    5454#include "MCalibrationChargeBlindPix.h"
     55#include "MCalibrationCam.h"
    5556
    5657#include <TH1.h>
     
    184185// --------------------------------------------------------------------------
    185186//
     187// Return -1 if fFluxInsidePlexiglassVar is smaller than 0.
     188// Return -1 if fFluxInsidePlexiglass    is 0.
     189// Return fFluxInsidePlexiglassVar / fFluxInsidePlexiglass^2
     190//
     191Float_t MCalibrationChargeBlindPix::GetFluxInsidePlexiglassRelVar() const
     192{
     193  if (fFluxInsidePlexiglassVar < 0.)
     194    return -1.;
     195
     196  if (fFluxInsidePlexiglass == 0.)
     197    return -1.;
     198 
     199  return fFluxInsidePlexiglassVar / (fFluxInsidePlexiglass * fFluxInsidePlexiglass) ;
     200}
     201
     202// --------------------------------------------------------------------------
     203//
    186204// Return -1 if fLambdaVar is smaller than 0.
    187205// Return square root of fLambdaVar
     
    279297  return gkBlindPixelQECT1Err * gkBlindPixelQECT1Err / gkBlindPixelQECT1 / gkBlindPixelQECT1 ;
    280298}
    281 
    282299
    283300// --------------------------------------------------------------------------
     
    355372  switch (fColor)
    356373    {
    357     case kGREEN:
     374    case MCalibrationCam::kGREEN:
    358375      fFluxInsidePlexiglass    = fLambda * gkBlindPixelQEGreen * TMath::Power(10,gkBlindPixelAttGreen);   
    359376      // attenuation has negligible error
    360377      fFluxInsidePlexiglassVar = GetLambdaRelVar() + GetBlindPixelQEGreenRelVar();
    361378      break;
    362     case kBLUE:
     379    case MCalibrationCam::kBLUE:
    363380      fFluxInsidePlexiglass    = fLambda * gkBlindPixelQEBlue * TMath::Power(10,gkBlindPixelAttBlue);   
    364381      // attenuation has negligible error
    365382      fFluxInsidePlexiglassVar = GetLambdaRelVar() + GetBlindPixelQEBlueRelVar();
    366383      break;
    367     case kUV:
     384    case MCalibrationCam::kUV:
    368385      fFluxInsidePlexiglass    = fLambda * gkBlindPixelQEUV * TMath::Power(10,gkBlindPixelAttUV);   
    369386      // attenuation has negligible error
    370387      fFluxInsidePlexiglassVar = GetLambdaRelVar() + GetBlindPixelQEUVRelVar();
    371388      break;
    372     case kCT1:
     389    case MCalibrationCam::kCT1:
    373390    default:
    374391      fFluxInsidePlexiglass    = fLambda * gkBlindPixelQECT1 * TMath::Power(10,gkBlindPixelAttCT1);   
Note: See TracChangeset for help on using the changeset viewer.