Changeset 5916 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
01/20/05 18:16:09 (20 years ago)
Author:
mazin
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5915 r5916  
    2626     - added function to display fluyctuations of a variable
    2727
     28   * mcalib/MCalibrationPix.cc
     29     - fixed small bug in High-gain mean error.
    2830
    2931 2005/01/20 Thomas Bretz
  • trunk/MagicSoft/Mars/mcalib/MCalibrationPix.cc

    r5458 r5916  
    353353Float_t MCalibrationPix::GetHiGainMeanErr()  const
    354354{
     355  if (fHiGainMeanVar < 0.)
     356    return -1.;
     357
     358  return TMath::Sqrt(fHiGainMeanVar);
     359}
     360
     361
     362// --------------------------------------------------------------------------
     363//
     364// Get the High Gain Sigma Error: Takes square root of fHiGainSigmaVar
     365//
     366Float_t MCalibrationPix::GetHiGainSigmaErr()  const
     367{
     368  if (fHiGainSigmaVar < 0.)
     369    return -1.;
     370
     371  return TMath::Sqrt(fHiGainSigmaVar);
     372}
     373
     374// --------------------------------------------------------------------------
     375//
     376// Get the Low Gain Mean Error: Takes square root of fLoGainMeanVar
     377//
     378Float_t MCalibrationPix::GetLoGainMeanErr()  const
     379{
    355380  if (fLoGainMeanVar < 0.)
    356381    return -1.;
     
    359384}
    360385
    361 
    362 // --------------------------------------------------------------------------
    363 //
    364 // Get the High Gain Sigma Error: Takes square root of fHiGainSigmaVar
    365 //
    366 Float_t MCalibrationPix::GetHiGainSigmaErr()  const
    367 {
    368   if (fHiGainSigmaVar < 0.)
    369     return -1.;
    370 
    371   return TMath::Sqrt(fHiGainSigmaVar);
    372 }
    373 
    374 // --------------------------------------------------------------------------
    375 //
    376 // Get the Low Gain Mean Error: Takes square root of fLoGainMeanVar
    377 //
    378 Float_t MCalibrationPix::GetLoGainMeanErr()  const
     386// --------------------------------------------------------------------------
     387//
     388// Get the Low Gain Mean Rel Variance
     389//
     390Float_t MCalibrationPix::GetLoGainMeanRelVar()  const
    379391{
    380392  if (fLoGainMeanVar < 0.)
    381393    return -1.;
    382 
    383   return TMath::Sqrt(fLoGainMeanVar);
    384 }
    385 
    386 // --------------------------------------------------------------------------
    387 //
    388 // Get the Low Gain Mean Rel Variance
    389 //
    390 Float_t MCalibrationPix::GetLoGainMeanRelVar()  const
    391 {
    392   if (fLoGainMeanVar < 0.)
    393     return -1.;
    394394  if (fLoGainMean   == 0.)
    395395    return -1.;
Note: See TracChangeset for help on using the changeset viewer.