Changeset 4590 for trunk/MagicSoft


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

Legend:

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

    r4581 r4590  
    2727\* ======================================================================== */
    2828
    29 //////////////////////////////////////////////////////////////////////////////
     29///////////////////////////////////////////////////////////////////////////////////
    3030//
    3131//   MCalibrateData
    3232//
    33 //   This task takes the integrated charge from MExtractedSignal and apply
    34 //   the calibration constants from MCalibraitionCam to the charge. Then
    35 //   stores number of photons obtained in MCerPhotEvt. Selection of different
    36 //   calibration methods is allowed through SetCalibrationMode member function
    37 //
    38 //   in ReInit the MPedPhotCam container is filled using the information from
    39 //   MPedestalCam, MExtractedSignalCam and MCalibrationCam
     33//   This task takes the integrated charge from MExtractedSignal and applies
     34//   the calibration constants from MCalibrationCam to convert the summed FADC
     35//   slices into photons. The number of photons obtained is stored in MCerPhotEvt.
     36//   Optionally, the calibration of pedestals from an MPedestalCam container into
     37//   an MPedPhotCam container can be chosen with the member functions
     38//   SetPedestalType(). Default is 'kRun', i.e. calibration of pedestals from a
     39//   dedicated pedestal run.
     40//   In case, the chosen pedestal type is kRun or kEvt, in ReInit() the MPedPhotCam
     41//   container is filled using the information from MPedestalCam, MExtractedSignalCam,
     42//   MCalibrationChargeCam and MCalibrationQECam
     43//
     44//   Selection of different calibration methods is allowed through the
     45//   SetCalibrationMode() member function (default: kFfactor)
     46//
     47//   The calibration modes which exclude non-valid pixels are the following:
     48//
     49//   kFfactor:    calibrates using the F-Factor method
     50//   kBlindpixel: calibrates using the BlindPixel method
     51//   kBlindpixel: calibrates using the BlindPixel method
     52//   kFlatCharge: perform a charge flat-flatfielding. Outer pixels are area-corrected.
     53//   kDummy:      calibrates with fixed conversion factors of 1 and errors of 0.
     54//
     55//   The calibration modes which include all pixels regardless of their validity is:
     56//
     57//   kNone:       calibrates with fixed conversion factors of 1 and errors of 0.
     58//
     59//   Use the kDummy and kNone methods ONLY FOR DEBUGGING!   
    4060//
    4161//   Input Containers:
    4262//    MPedestalCam
    43 //    MExtractedSingalCam
     63//    MExtractedSignalCam
    4464//    MCalibrationChargeCam
    4565//    MCalibrationQECam
     
    4969//    MCerPhotEvt
    5070//
     71// See also: MJCalibration, MJPedestal, MJExtractSignal, MJExtractCalibTest
     72//
    5173//////////////////////////////////////////////////////////////////////////////
    5274#include "MCalibrateData.h"
     
    88110//
    89111MCalibrateData::MCalibrateData(CalibrationMode_t calmode,const char *name, const char *title)
    90     : fCam(NULL), fPedestal(NULL), fBadPixels(NULL), fCalibrations(NULL), fSignals(NULL),
     112    : fGeomCam(NULL), fPedestal(NULL), fBadPixels(NULL), fCalibrations(NULL), fSignals(NULL),
    91113      fPedPhot(NULL), fCerPhotEvt(NULL), fCalibrationMode(calmode), fFlags(kRun), fNamePedADCRunContainer("MPedestalCam"), fNamePedADCEventContainer("MPedestalCamFromData"), fNamePedPhotRunContainer("MPedPhotCam"), fNamePedPhotEventContainer("MPedPhotCamFromData")
    92114{
     
    364386    {
    365387    case kFlatCharge:
    366       calibConv        = avMean / pix.GetMean() / fCam->GetPixRatio(pixidx) ;
     388      calibConv        = avMean / pix.GetMean() / fGeomCam->GetPixRatio(pixidx) ;
    367389      calibConvVar     = (avMeanRelVar + pix.GetMeanRelVar()) * calibConv * calibConv;
    368390      if (pix.IsFFactorMethodValid())
     
    424446    hiloconv       = 1.;
    425447    hiloconverr    = 0.;
    426     calibConv      = 1./fCam->GetPixRatio(pixidx);
     448    calibConv      = 1./fGeomCam->GetPixRatio(pixidx);
    427449    calibConvVar   = 0.;
    428450    calibFFactor   = 0.;
Note: See TracChangeset for help on using the changeset viewer.