Changeset 4224


Ignore:
Timestamp:
05/27/04 18:02:15 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4223 r4224  
    3939       error remains around 20%).
    4040
     41   * mcalib/MCalibrationChargeCalc.cc
     42     - write the number of photons directy into MCalibrationChargeCam.
     43       These numbers would otherwise have to be assembled by different
     44       parts in separate code.
    4145
    4246 2004/05/27: Thomas Bretz
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc

    r4200 r4224  
    12391239
    12401240  const Float_t avphotons   = avpix.GetPheFFactorMethod()       
    1241                            / qepix.GetQEFFactor(fPulserColor)
     1241                           / qepix.GetDefaultQE(fPulserColor)
    12421242                           / fQECam->GetPlexiglassQE();
    12431243
    12441244  const Float_t avphotrelvar = avpix.GetPheFFactorMethodRelVar()
    1245                             + qepix.GetQEFFactorRelVar(fPulserColor)
     1245                            + qepix.GetDefaultQERelVar(fPulserColor)
    12461246                            + fQECam->GetPlexiglassQERelVar();
    12471247
     
    13651365
    13661366  const UInt_t npixels  = fGeom->GetNumPixels();
    1367  
     1367
     1368  //
     1369  // Set the results in the MCalibrationChargeCam
     1370  //
     1371  if (fBlindPixel)
     1372    {
     1373      if (fBlindPixel->IsFluxInsidePlexiglassAvailable())
     1374        {
     1375          const Float_t photons = fBlindPixel->GetFluxInsidePlexiglass() * (*fGeom)[0].GetA()
     1376                               / fQECam->GetPlexiglassQE();
     1377          fCam->SetNumPhotonsBlindPixelMethod   (photons);
     1378          const Float_t photrelvar = fBlindPixel->GetFluxInsidePlexiglassRelVar()
     1379                                   + fQECam->GetPlexiglassQERelVar();
     1380          if (photrelvar > 0.)
     1381            fCam->SetNumPhotonsBlindPixelMethodErr(TMath::Sqrt( photrelvar * photons * photons)); 
     1382        }
     1383    }
    13681384  //
    13691385  //  With the knowledge of the overall photon flux, calculate the
Note: See TracChangeset for help on using the changeset viewer.