Changeset 4242 for trunk


Ignore:
Timestamp:
05/30/04 13:53:02 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4241 r4242  
    2525     - separated calls for light guides eff. , QE, and coll. eff.
    2626   
     27   * mcalib/MCalibrationChargeCalc.[h,cc]
     28     - fixed a small bug in the calculation of the error on the number
     29       of photons with the F-Factor method, did not include the division
     30       by number of pixels for the precision of the QE. This does not
     31       affect the general analysis.
     32
    2733
    2834 2004/05/28: Markus Gaug
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc

    r4228 r4242  
    229229const Float_t MCalibrationChargeCalc::fgLambdaCheckLimit       = 0.5;
    230230const Float_t MCalibrationChargeCalc::fgPheErrLimit            = 3.5;
    231 const Float_t MCalibrationChargeCalc::fgFFactorErrLimit        = 3.;
     231const Float_t MCalibrationChargeCalc::fgFFactorErrLimit        = 3.5;
    232232// --------------------------------------------------------------------------
    233233//
     
    294294{
    295295 
    296     fNumHiGainSamples        = 0.;
    297     fNumLoGainSamples        = 0.;
    298     fSqrtHiGainSamples       = 0.;
    299     fSqrtLoGainSamples       = 0.;
     296    fNumHiGainSamples          = 0.;
     297    fNumLoGainSamples          = 0.;
     298    fSqrtHiGainSamples         = 0.;
     299    fSqrtLoGainSamples         = 0.;
     300    fNumInnerFFactorMethodUsed = 0;
    300301    SkipHiLoGainCalibration( kFALSE );   
    301302}
     
    10221023      areaphes      [aidx]   += nphe;
    10231024      numareavalid  [aidx]   ++;
     1025
     1026      if (aidx == 0)
     1027        fNumInnerFFactorMethodUsed++;
    10241028      //       sectorweights [sector] += weight;
    10251029      //      sectorphes    [sector] += weight*nphe;
     
    12101214// av.Num.photons(area index) = av.Num.Phes(area index)
    12111215//                            / MCalibrationQEPix::GetDefaultQE(fPulserColor)
     1216//                            / MCalibrationQEPix::GetPMTCollectionEff()
     1217//                            / MCalibrationQEPix::GetLightGuidesEff(fPulserColor)
    12121218//                            / MCalibrationQECam::GetPlexiglassQE()
    12131219//
    1214 // Calculate the variance on the average number of photons.
     1220// Calculate the variance on the average number of photons assuming that the error on the
     1221// Quantum efficiency is reduced by the number of used inner pixels, but the rest of the
     1222// values keeps it ordinary error since it is systematic.
    12151223//
    12161224// Loop over pixels:
     
    12271235//
    12281236// - Set QE in MCalibrationQEPix::SetQEFFactor ( QE, fPulserColor );
     1237//
    12291238// - Set Variance of QE in  MCalibrationQEPix::SetQEFFactorVar ( Variance, fPulserColor );
    12301239// - Set bit MCalibrationQEPix::SetFFactorMethodValid(kTRUE,fPulserColor)
     
    12351244{
    12361245
     1246  if (fNumInnerFFactorMethodUsed < 2)
     1247    {
     1248      *fLog << warn << GetDescriptor()
     1249            << ": Could not calculate F-Factor Method: Less than 2 inner pixels valid! " << endl;
     1250      return;
     1251    }
     1252 
    12371253  MCalibrationChargePix &avpix = (MCalibrationChargePix&)fCam->GetAverageArea(0);
    12381254  MCalibrationQEPix     &qepix = (MCalibrationQEPix&)  fQECam->GetAverageArea(0); 
    12391255
    12401256  const Float_t avphotons   = avpix.GetPheFFactorMethod()       
    1241                            / qepix.GetDefaultQE(fPulserColor)
     1257                           / qepix.GetDefaultQE(fPulserColor)
     1258                           / qepix.GetPMTCollectionEff()
     1259                           / qepix.GetLightGuidesEff(fPulserColor)
    12421260                           / fQECam->GetPlexiglassQE();
    12431261
    12441262  const Float_t avphotrelvar = avpix.GetPheFFactorMethodRelVar()
    1245                             + qepix.GetDefaultQERelVar(fPulserColor)
     1263                            + qepix.GetDefaultQERelVar(fPulserColor) / fNumInnerFFactorMethodUsed
     1264                            + qepix.GetPMTCollectionEffRelVar()
     1265                            + qepix.GetLightGuidesEffRelVar(fPulserColor)
    12461266                            + fQECam->GetPlexiglassQERelVar();
    12471267
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.h

    r4192 r4242  
    6565  Float_t fSqrtLoGainSamples;                  // Square root nr. Low -Gain FADC slices used by extractor
    6666  MCalibrationCam::PulserColor_t fPulserColor; // Calibration LEDs colour
    67 
     67  Int_t   fNumInnerFFactorMethodUsed;          // Number of inner pixels used for F-Factor Method calibration
     68 
    6869  TString fOutputPath;                         // Path to the output file
    6970  TString fOutputFile;                         // Name of the output file 
Note: See TracChangeset for help on using the changeset viewer.