Ignore:
Timestamp:
03/18/05 17:21:58 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r6845 r6855  
    3434//   This task takes the integrated charge from MExtractedSignal and applies
    3535//   the calibration constants from MCalibrationCam to convert the summed FADC
    36 //   slices into photons. The number of photons obtained is stored in MCerPhotEvt.
     36//   slices into photons. The number of photons obtained is stored in MSignalCam.
    3737//   Optionally, the calibration of pedestals from an MPedestalCam container into
    3838//   an MPedPhotCam container can be chosen with the member functions
     
    8989//   Output Containers:
    9090//    [MPedPhotCam]
    91 //    [MCerPhotEvt]
     91//    [MSignalCam]
    9292//
    9393// See also: MJCalibration, MJPedestal, MJExtractSignal, MJExtractCalibTest
     
    129129#include "MBadPixelsPix.h"
    130130
    131 #include "MCerPhotEvt.h"
     131#include "MSignalCam.h"
    132132
    133133ClassImp(MCalibrateData);
     
    194194//
    195195//  - MPedPhotCam
    196 //  - MCerPhotEvt
     196//  - MSignalCam
    197197//
    198198Int_t MCalibrateData::PreProcess(MParList *pList)
     
    218218        }
    219219
    220         fCerPhotEvt = (MCerPhotEvt*)pList->FindCreateObj(AddSerialNumber("MCerPhotEvt"));
     220        fCerPhotEvt = (MSignalCam*)pList->FindCreateObj(AddSerialNumber("MSignalCam"));
    221221        if (!fCerPhotEvt)
    222222            return kFALSE;
     
    657657    const Float_t sqrtslices = TMath::Sqrt(slices);
    658658
     659    Int_t numsatlo=0;
     660    Int_t numsathi=0;
     661
    659662    for (UInt_t pixidx=0; pixidx<npix; pixidx++)
    660663    {
     
    699702            const Float_t nphotErr = TMath::Sqrt(TMath::Abs(nphot)) * fCalibFFactors[pixidx];
    700703           
    701             MCerPhotPix *cpix = fCerPhotEvt->AddPixel(pixidx, nphot, nphotErr);
     704            fCerPhotEvt->AddPixel(pixidx, nphot, nphotErr);
    702705
    703706            if (sig.GetNumHiGainSaturated() > 0)
    704                 cpix->SetPixelHGSaturated();
     707                numsathi++;
    705708
    706709            if (sig.GetNumLoGainSaturated() > 0)
    707               cpix->SetPixelSaturated();
     710                numsatlo++;
    708711        } /* if (data) */
    709712     
     
    735738    if (data)
    736739    {
    737         fCerPhotEvt->FixSize();
     740        fCerPhotEvt->SetNumPixelsSaturated(numsathi, numsatlo);
    738741        fCerPhotEvt->SetReadyToSave();
    739742    }
Note: See TracChangeset for help on using the changeset viewer.