Changeset 3684


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

Legend:

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

    r3683 r3684  
    659659//
    660660// Calculate the total F-Factor with the formula:
    661 //   fMeanFFactorFADC2Phot = Sqrt ( fRSigmaSquare / GetMeanSquare() ) * nphotons
     661//   fMeanFFactorFADC2Phot = Sqrt ( fRSigmaSquare ) / GetMean()  * sqrt( nphotons )
    662662//
    663663// Calculate the error of the total F-Factor
     
    678678    }
    679679
    680   fMeanFFactorFADC2Phot =  TMath::Sqrt(fRSigmaSquare) / GetMean() * nphotons;
     680  fMeanFFactorFADC2Phot =  TMath::Sqrt(fRSigmaSquare * nphotons) / GetMean() ;
    681681 
    682682  if (fMeanFFactorFADC2Phot < 0.)
     
    688688  const Float_t ffactorrelvar = 0.25 * fRSigmaSquareVar / ( fRSigmaSquare * fRSigmaSquare)
    689689                              + GetMeanRelVar()
    690                               + nphotonsrelvar;
     690                              + 0.25 * nphotonsrelvar;
    691691 
    692692  fMeanFFactorFADC2PhotVar    = ffactorrelvar * fMeanFFactorFADC2Phot * fMeanFFactorFADC2Phot;
Note: See TracChangeset for help on using the changeset viewer.