Ignore:
Timestamp:
04/04/04 14:28:25 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r3636 r3639  
    2929// MHCalibrationChargeHiGainPix and MHCalibrationChargeLoGainPix for every:
    3030//
    31 // - pixel, stored in the TObjArray's MHCalibrationCam::fHiGainArray and
     31// - Pixel, stored in the TObjArray's MHCalibrationCam::fHiGainArray and
    3232//   MHCalibrationCam::fLoGainArray
    3333//
    34 // - average pixel per area index (e.g. inner and outer for the MAGIC camera),
     34// - Average pixel per AREA index (e.g. inner and outer for the MAGIC camera),
    3535//   stored in the TObjArray's MHCalibrationCam::fAverageHiGainAreas and
    3636//   MHCalibrationCam::fAverageLoGainAreas
    3737//
    38 // - average pixel per camera sector (e.g. sectors 1-6 for the MAGIC camera),
     38// - Average pixel per camera SECTOR (e.g. sectors 1-6 for the MAGIC camera),
    3939//   stored in the TObjArray's MHCalibrationCam::fAverageHiGainSectors and
    4040//   MHCalibrationCam::fAverageLoGainSectors
    4141//
    42 // Every signal is filled into a Charge histogram and an array, in order to perform
    43 // a Fourier analysis (see MHGausEvents). The signals are moreover averaged on an
    44 // event-by-event basis and written into the corresponding average pixels
     42// Every signal is taken from MExtractedSignalCam and filled into a histogram and
     43// an array, in order to perform a Fourier analysis (see MHGausEvents).
     44// The signals are moreover averaged on an event-by-event basis and written into
     45// the corresponding average pixels.
    4546//
    4647// Additionally, the (FADC slice) position of the maximum is stored in an Absolute
     
    5051// The Charge histograms are fitted to a Gaussian, mean and sigma with its errors
    5152// and the fit probability are extracted. If none of these values are NaN's and
    52 // if the probability is bigger than fProbLimit (default: 0.5%), the fit is valid.
    53 // Otherwise, the fit is repeated within ranges of the previous mean +- 5 sigma.
     53// if the probability is bigger than MHGausEvents::fProbLimit (default: 0.5%),
     54// the fit is declared valid.
     55// Otherwise, the fit is repeated within ranges of the previous mean
     56// +- MHGausEvents::fPickupLimit (default: 5) sigma (see MHGausEvents::RepeatFit())
    5457// In case this does not make the fit valid, the histogram means and RMS's are
    55 // taken directly and the following flags are set:
     58// taken directly (see MHGausEvents::BypassFit()) and the following flags are set:
    5659// - MBadPixelsPix::SetUncalibrated( MBadPixelsPix::kHiGainNotFitted ) or 
    5760// - MBadPixelsPix::SetUncalibrated( MBadPixelsPix::kLoGainNotFitted ) and
    5861// - MBadPixelsPix::SetUnsuitable(   MBadPixelsPix::kUnreliableRun   )
    5962//
    60 // Outliers of more than MHCalibrationChargePix::fPickupLimit (default: 5) sigmas
    61 // from the mean are counted as PickUp events (stored in MHCalibrationChargePix::fPickup)
     63// Outliers of more than MHGausEvents::fPickupLimit (default: 5) sigmas
     64// from the mean are counted as Pickup events (stored in MHGausEvents::fPickup)
    6265//
    6366// Unless more than fNumHiGainSaturationLimit (default: 1%) of the overall FADC
     
    7477// spectrum and investigates if the projected fourier components follow an exponential
    7578// distribution. In case that the probability of the exponential fit is less than
    76 // fProbLimit (default: 0.5%), the following flags are set:
     79// MHGausEvents::fProbLimit (default: 0.5%), the following flags are set:
    7780// - MBadPixelsPix::SetUncalibrated( MBadPixelsPix::kHiGainOscillating ) or
    7881// - MBadPixelsPix::SetUncalibrated( MBadPixelsPix::kLoGainOscillating ) and
     
    8386// The following results are written into MCalibrationChargeCam:
    8487//
    85 // - MCalibrationChargePix::SetHiGainSaturation(Bool_t b)
    86 // - MCalibrationChargePix::SetHiGainMeanCharge()
    87 // - MCalibrationChargePix::SetHiGainMeanChargeErr()
    88 // - MCalibrationChargePix::SetHiGainSigmaCharge()
    89 // - MCalibrationChargePix::SetHiGainSigmaChargeErr()
    90 // - MCalibrationChargePix::SetHiGainChargeProb()
    91 // - MCalibrationChargePix::SetHiGainNumPickup()
    92 //
    93 // - MCalibrationChargePix::SetLoGainMeanCharge()
    94 // - MCalibrationChargePix::SetLoGainMeanChargeErr()
    95 // - MCalibrationChargePix::SetLoGainSigmaCharge()
    96 // - MCalibrationChargePix::SetLoGainSigmaChargeErr()
    97 // - MCalibrationChargePix::SetLoGainChargeProb()
    98 // - MCalibrationChargePix::SetLoGainNumPickup()
     88// - MCalibrationPix::SetHiGainSaturation()
     89// - MCalibrationPix::SetHiGainMean()
     90// - MCalibrationPix::SetHiGainMeanErr()
     91// - MCalibrationPix::SetHiGainSigma()
     92// - MCalibrationPix::SetHiGainSigmaErr()
     93// - MCalibrationPix::SetHiGainProb()
     94// - MCalibrationPix::SetHiGainNumPickup()
     95//
     96// - MCalibrationPix::SetLoGainMean()
     97// - MCalibrationPix::SetLoGainMeanErr()
     98// - MCalibrationPix::SetLoGainSigma()
     99// - MCalibrationPix::SetLoGainSigmaErr()
     100// - MCalibrationPix::SetLoGainProb()
     101// - MCalibrationPix::SetLoGainNumPickup()
    99102//
    100103// - MCalibrationChargePix::SetAbsTimeMean()
    101104// - MCalibrationChargePix::SetAbsTimeRms()
    102 //
    103 // The last two items are filled with the Hi-Gain or Lo-Gain result, depending on
    104 // the saturation status.
    105105//
    106106// For all averaged areas, the fitted sigma is multiplied with the square root of
     
    191191// - MExtractedSignalCam
    192192//
    193 // Calls InitializeHists() for every entry in:
     193// Initializes, if empty to MGeomCam::GetNumPixels():
     194// - MHCalibrationCam::fHiGainArray, MHCalibrationCam::fLoGainArray
     195//
     196// Initializes, if empty to MGeomCam::GetNumAreas() for:
     197// - MHCalibrationCam::fAverageHiGainAreas, MHCalibrationCam::fAverageLoGainAreas
     198//
     199// Initializes, if empty to MGeomCam::GetNumSectors() for:
     200// - MHCalibrationCam::fAverageHiGainSectors, MHCalibrationCam::fAverageLoGainSectors
     201//
     202// Calls MHCalibrationCam::InitHists() for every entry in:
    194203// - MHCalibrationCam::fHiGainArray, MHCalibrationCam::fLoGainArray
    195204// - MHCalibrationCam::fAverageHiGainAreas, MHCalibrationCam::fAverageLoGainAreas
    196205// - MHCalibrationCam::fAverageHiGainSectors, MHCalibrationCam::fAverageLoGainSectors
    197206//
    198 // Sets Titles and Names for the Charge Histograms and
     207// Sets Titles and Names for the Charge Histograms:
     208// - MHCalibrationCam::fAverageHiGainAreas
     209// - MHCalibrationCam::fAverageHiGainSectors
     210//
    199211// Sets number of bins to MHCalibrationCam::fAverageNbins for:
    200212// - MHCalibrationCam::fAverageHiGainAreas, MHCalibrationCam::fAverageLoGainAreas
     
    502514//    otherwise the Hi-Gain ones.
    503515// 4) Calls to MHCalibrationCam::FitHiGainArrays() and MCalibrationCam::FitLoGainArrays()
    504 //    and sets the flags (if  occurring):
     516//    with the flags:
    505517//    - MBadPixelsPix::SetUncalibrated( MBadPixelsPix::kHiGainNotFitted )
    506518//    - MBadPixelsPix::SetUncalibrated( MBadPixelsPix::kLoGainNotFitted )
    507519//    - MBadPixelsPix::SetUncalibrated( MBadPixelsPix::kHiGainOscillating )
    508520//    - MBadPixelsPix::SetUncalibrated( MBadPixelsPix::kLoGainOscillating )
    509 // 5) Retrieves the results and store them in MCalibrationChargePix
    510521//
    511522Bool_t MHCalibrationChargeCam::FinalizeHists()
     
    652663// --------------------------------------------------------------------------
    653664//
    654 // Takes the decisions under which conditions a pixel is declared:
    655 // MBadPixelsPix::kUnsuitableRun  or MBadPixelsPix::kUnreliableRun, namely:
    656 // * if MBadPixelsPix::kHiGainNotFitted   and !MCalibrationPix::IsHiGainSaturation()
    657 //   sets MBadPixelsPix::kUnreliableRun
    658 // * if MBadPixelsPix::kHiGainOscillating and !MCalibrationPix::IsHiGainSaturation()
    659 //   sets MBadPixelsPix::kUnreliableRun
    660 // * if MBadPixelsPix::kLoGainNotFitted   and  MCalibrationPix::IsLoGainSaturation()
    661 //   sets MBadPixelsPix::kUnreliableRun
    662 // * if MBadPixelsPix::kLoGainOscillating and  MCalibrationPix::IsLoGainSaturation()
    663 //   sets MBadPixelsPix::kUnreliableRun
    664 // * if MBadPixelsPix::kLoGainSaturation
    665 //   sets MBadPixelsPix::kUnsuitableRun
     665// Sets all pixels to MBadPixelsPix::kUnsuitableRun, if following flags are set:
     666// - MBadPixelsPix::kLoGainSaturation
     667//
     668// Sets all pixels to MBadPixelsPix::kUnreliableRun, if following flags are set:
     669// - if MBadPixelsPix::kHiGainNotFitted   and !MCalibrationPix::IsHiGainSaturation()
     670// - if MBadPixelsPix::kHiGainOscillating and !MCalibrationPix::IsHiGainSaturation()
     671// - if MBadPixelsPix::kLoGainNotFitted   and  MCalibrationPix::IsLoGainSaturation()
     672// - if MBadPixelsPix::kLoGainOscillating and  MCalibrationPix::IsLoGainSaturation()
    666673//
    667674void MHCalibrationChargeCam::FinalizeBadPixels()
     
    705712// --------------------------------------------------------------------------
    706713//
    707 // What MHCamera needs in order to draw an individual pixel in the camera
     714// Calls MHGausEvents::DrawClone() for pixel idx
    708715//
    709716void MHCalibrationChargeCam::DrawPixelContent(Int_t idx) const
Note: See TracChangeset for help on using the changeset viewer.