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

Legend:

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

    r3065 r3115  
    113113  CLRBIT(fFlags, kFFactorMethodValid);
    114114  CLRBIT(fFlags, kPINDiodeMethodValid);
     115  CLRBIT(fFlags, kCombinedMethodValid);
    115116
    116117  fCharge                           =  -1.;
     
    143144  fMeanConversionBlindPixelMethod   =  -1.;
    144145  fMeanConversionPINDiodeMethod     =  -1.;
     146  fMeanConversionCombinedMethod     =  -1.;
    145147
    146148  fErrorConversionFFactorMethod     =  -1.;
    147149  fErrorConversionBlindPixelMethod  =  -1.;
    148150  fErrorConversionPINDiodeMethod    =  -1.;
     151  fErrorConversionCombinedMethod    =  -1.;
    149152
    150153  fSigmaConversionFFactorMethod     =  -1.;
    151154  fSigmaConversionBlindPixelMethod  =  -1.;
    152155  fSigmaConversionPINDiodeMethod    =  -1.;
     156  fSigmaConversionCombinedMethod    =  -1.;
    153157
    154158  fFactorCalculated = kFALSE;
     
    191195  fErrorConversionFFactorMethod = err;
    192196  fSigmaConversionFFactorMethod = sig;
     197}
     198
     199// --------------------------------------------------------------------------
     200//
     201// Set the conversion factors from outside (only for MC)
     202//
     203void MCalibrationPix::SetConversionCombinedMethod(Float_t c, Float_t err, Float_t sig)
     204{
     205  fMeanConversionCombinedMethod = c;
     206  fErrorConversionCombinedMethod = err;
     207  fSigmaConversionCombinedMethod = sig;
    193208}
    194209
     
    395410}
    396411
    397 
     412Float_t MCalibrationPix::GetTotalFFactorCombinedMethod()
     413{
     414  return 1.;
     415}
     416
     417Float_t MCalibrationPix::GetTotalFFactorErrorCombinedMethod()
     418{
     419
     420  return 1.;
     421}
    398422
    399423Float_t MCalibrationPix::GetMeanConversionFFactorMethod()
     
    485509{
    486510  return TESTBIT(fFlags, kPINDiodeMethodValid);   
     511}
     512
     513Bool_t MCalibrationPix::IsCombinedMethodValid()
     514{
     515  return TESTBIT(fFlags, kCombinedMethodValid);   
    487516}
    488517
Note: See TracChangeset for help on using the changeset viewer.