Ignore:
Timestamp:
04/08/04 20:44:11 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.