Changeset 3281 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
02/24/04 19:43:48 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r3279 r3281  
    1818!   Author(s): Javier Lopez 12/2003 <mailto:jlopez@ifae.es>
    1919!   Author(s): Javier Rico  01/2004 <mailto:jrico@ifae.es>
     20!   Author(s): Markus Gaug  02/2004 <mailto:markus@ifae.es>
    2021!
    2122!   Copyright: MAGIC Software Development, 2000-2004
     
    2930//
    3031//   This task takes the integrated charge from MExtractedSignal and apply
    31 //   the calibration constants from MCalibraitionCam to the charge. Then
    32 //   stores number of photons obtained in MCerPhotEvt. Selection of different
    33 //   calibration methods is allowed through SetCalibrationMode member function
     32//   the calibration constants from MCalibraitionCam to convert the summed FADC
     33//   slices to photons. The number of photons obtained is stored in MCerPhotEvt.
     34//
     35//   Selection of different calibration methods is possible through the
     36//   SetCalibrationMode member function
     37//
     38//   The calibration modes which exclude non-valid pixels are the following:
     39//
     40//   kFfactor:    calibrates using the F-Factor method
     41//   kBlindpixel: calibrates using the BlindPixel method
     42//   kBlindpixel: calibrates using the BlindPixel method
     43//   kDummy:      calibrates with fixed conversion factors of 1 and errors of 0.
     44//
     45//   The calibration modes which include all pixels regardless of their validity is:
     46//
     47//   kNone:       calibrates with fixed conversion factors of 1 and errors of 0.
     48//
     49//   Use the kDummy and kNone methods ONLY FOR DEBUGGING!   
    3450//
    3551//   Input Containers:
     
    191207  for (UInt_t pixidx=0; pixidx<npix; pixidx++)
    192208    {
     209
    193210      if(fCalibrationMode!=kNone)
    194211        {
     
    237254                break;
    238255            case kDummy:
    239               hiloconv                         = 1.;
     256              hiloconv                         = 1.;
    240257              hiloconverr                      = 0.;
    241258              calibrationConversionFactor      = 1.;
     
    249266         
    250267        } /* if(fCalibrationMode!=kNone) */
    251      
     268      else
     269      {
     270          hiloconv                         = 1.;
     271          hiloconverr                      = 0.;
     272          calibrationConversionFactor      = 1.;
     273          calibrationConversionFactorErr   = 0.;
     274      }     
    252275      MExtractedSignalPix &sig =  (*fSignals)[pixidx];
    253276     
Note: See TracChangeset for help on using the changeset viewer.