Changeset 3688 for trunk


Ignore:
Timestamp:
04/08/04 20:44:11 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mcalib
Files:
3 edited

Legend:

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

    r3683 r3688  
    10451045      qepix.SetQEFFactor    ( qe            , fPulserColor );
    10461046      qepix.SetQEFFactorVar ( qerelvar*qe*qe, fPulserColor );     
    1047       qepix.UpdateFFactorMethod();
     1047      qepix.SetFFactorMethodValid(  kTRUE   , fPulserColor );
     1048
     1049      if (!qepix.UpdateFFactorMethod())
     1050        *fLog << warn << GetDescriptor() << ": Cannot update Quantum efficiencies with the F-Factor Method" << endl;
    10481051    }
    10491052}
  • trunk/MagicSoft/Mars/mcalib/MCalibrationQEPix.h

    r3685 r3688  
    3030  static const Float_t gkDefaultQEUVErr;      //! Uncertainty Def. QE  at 370 nm (now set to: 0.07)
    3131  static const Float_t gkDefaultQECT1Err;     //! Uncertainty Def. QE  at 370 nm (now set to: 0.07)
    32   static const Float_t gkDefaultAverageQE;    //! Default QE folded into Cascade spectrum (now set to: 0.18)
    33   static const Float_t gkDefaultAverageQEErr; //! Uncertainty Def. QE Cascade spectrum    (now set to: 0.02)
    3432 
    3533  TArrayF fQEBlindPixel;                     // Calibrated QEs    (Blind Pixel Method)
     
    7371 
    7472public:
     73
     74  static const Float_t gkDefaultAverageQE;    //! Default QE folded into Cascade spectrum (now set to: 0.18)
     75  static const Float_t gkDefaultAverageQEErr; //! Uncertainty Def. QE Cascade spectrum    (now set to: 0.02)
    7576
    7677  MCalibrationQEPix(const char *name=NULL, const char *title=NULL);
  • trunk/MagicSoft/Mars/mcalib/MMcCalibrationCalc.cc

    r3638 r3688  
    5050#include "MCalibrationChargeCam.h"
    5151
     52#include "MCalibrationQEPix.h"
     53#include "MCalibrationQECam.h"
     54
    5255#include "MGeomCam.h"
    5356#include "MRawRunHeader.h"
     
    103106    {
    104107        *fLog << err << AddSerialNumber("MCalibrationChargeCam") << "not found... aborting." << endl;
     108        return kFALSE;
     109    }
     110
     111    fQECam = (MCalibrationQECam*) pList->FindObject(AddSerialNumber("MCalibrationQECam"));
     112    if (!fQECam)
     113    {
     114        *fLog << err << AddSerialNumber("MCalibrationQECam") << "not found... aborting." << endl;
    105115        return kFALSE;
    106116    }
     
    244254
    245255    const Int_t num = fCalCam->GetSize();
     256
    246257    for (int i=0; i<num; i++)
    247258    {
     259
    248260        MCalibrationChargePix &calpix = (MCalibrationChargePix&)(*fCalCam)[i];
    249 
    250         const Float_t factor = fADC2Phot*calpix.GetMeanConversionBlindPixelMethod();
    251 
    252         calpix.SetConversionBlindPixelMethod(factor, 0., 0.);
     261        //        MCalibrationQEPix     &qepix  = (MCalibrationQEPix&)    (*fQECam) [i];
     262
     263        const Float_t qe     = MCalibrationQEPix::gkDefaultAverageQE;
     264        const Float_t factor = fADC2Phot/qe*calpix.GetMeanConvFADC2Phe();
     265        //
     266        // FIXME: Now, only the conversion to PHe is stored, need also the quantum efficiency simulated!!!
     267        //
     268        calpix.SetMeanConvFADC2Phe(factor);
     269        calpix.SetMeanConvFADC2PheVar(0.);
     270        calpix.SetMeanFFactorFADC2Phot(0.);
    253271    }
    254272
Note: See TracChangeset for help on using the changeset viewer.