Ignore:
Timestamp:
05/14/07 14:29:12 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mcalib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/CalibLinkDef.h

    r8452 r8504  
    2323#pragma link C++ class MCalibrationRelTimePix+;
    2424#pragma link C++ class MCalibrationPulseTimeCam+;
    25 #pragma link C++ class MCalibrationPedCam+;
    2625#pragma link C++ class MCalibrationQECamMagic+;
    2726#pragma link C++ class MCalibrationQECam+;
  • trunk/MagicSoft/Mars/mcalib/MCalibrationCam.cc

    r7804 r8504  
    538538// --------------------------------------------------------------------------
    539539//
    540 // Dummy needed for compilation with MCamEvent
    541 //
    542540Bool_t MCalibrationCam::GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type) const
    543541{
    544   return kTRUE;
    545 }
    546 
    547 
     542    if (idx > GetSize())
     543        return kFALSE;
     544
     545    const Float_t area = cam[idx].GetA();
     546
     547    if (area == 0)
     548        return kFALSE;
     549
     550    if ((*this)[idx].IsExcluded())
     551        return kFALSE;
     552
     553    switch (type)
     554    {
     555    case 0:
     556        val = (*this)[idx].GetHiGainMean();
     557        break;
     558    case 1:
     559        val = (*this)[idx].GetHiGainMeanErr();
     560        break;
     561    case 2:
     562        val = (*this)[idx].GetHiGainSigma();
     563        break;
     564    case 3:
     565        val = (*this)[idx].GetHiGainSigmaErr();
     566        break;
     567    case 4:
     568        val = (*this)[idx].GetHiGainProb();
     569        break;
     570    case 5:
     571        val = (*this)[idx].GetLoGainMean();
     572        break;
     573    case 6:
     574        val = (*this)[idx].GetLoGainMeanErr();
     575        break;
     576    case 7:
     577        val = (*this)[idx].GetLoGainSigma();
     578        break;
     579    case 8:
     580        val = (*this)[idx].GetLoGainSigmaErr();
     581        break;
     582    default:
     583        return kFALSE;
     584    }
     585
     586    return val!=-1.;
     587}
    548588
    549589// --------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/mcalib/Makefile

    r8452 r8504  
    4848           MCalibrationQECam.cc \
    4949           MCalibrationQEPix.cc  \
    50            MCalibrationPedCam.cc \
    5150           MCalibrationTestCalc.cc \
    5251           MCalibrationTestCam.cc \
Note: See TracChangeset for help on using the changeset viewer.