Changeset 3724 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
04/13/04 19:43:53 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3723 r3724  
    5353   * mjobs/MJCalibration.cc
    5454     - updated documentation, updated QE Cam
     55
     56
     57   * mcalib/MCalibrationChargePix.[h,cc]
     58     - put GetRSigmaPerCharge into this class
    5559
    5660
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc

    r3703 r3724  
    408408    *fLog << warn << GetDescriptor()
    409409          << "MCalibrationChargePINDiode not found... no PIN Diode method! " << endl;
     410 
    410411
    411412  //
     
    520521    return kFALSE;
    521522
     523  if (fPINDiode)
     524    if (!fPINDiode->IsValid())
     525      {
     526        *fLog << warn << GetDescriptor()
     527              << ": MCalibrationChargePINDiode is declared not valid... no PIN Diode method! " << endl;
     528        fPINDiode = NULL;
     529      }
     530
     531  if (fBlindPixel)
     532    if (!fBlindPixel->IsValid())
     533      {
     534        *fLog << warn << GetDescriptor()
     535              << ": MCalibrationChargeBlindPix is declared not valid... no Blind Pixel method! " << endl;
     536        fBlindPixel = NULL;
     537      }
     538 
    522539  //
    523540  // First loop over pixels, call FinalizePedestals and FinalizeCharges
     
    666683                    "Pixels with Low Gain Saturation:                  ");
    667684  PrintUncalibrated(MBadPixelsPix::kMeanTimeInFirstBin,
    668                     Form("%s%2.1f%s","Mean Abs. Arr. Time in First ",1," Bin(s):          "));
     685                    Form("%s%2.1f%s","Mean Abs. Arr. Time in First ",1.," Bin(s):          "));
    669686  PrintUncalibrated(MBadPixelsPix::kMeanTimeInLast2Bins,
    670                     Form("%s%2.1f%s","Mean Abs. Arr. Time in Last ",2," Bin(s):           "));
     687                    Form("%s%2.1f%s","Mean Abs. Arr. Time in Last ",2.," Bin(s):           "));
    671688  PrintUncalibrated(MBadPixelsPix::kHiGainOscillating,   
    672689                    "Pixels with changing Hi Gain signal over time:    ");
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.cc

    r3712 r3724  
    401401// --------------------------------------------------------------------------
    402402//
     403// Get the reduced Sigma per Charge:
     404// - If GetRSigma() is smaller or equal 0. (i.e. has not yet been set), return -1.
     405// - If GetMean() is 0. or -1. (i.e. has not yet been set), return -1.
     406// - Return GetRSigma() / GetMean()
     407//
     408Float_t MCalibrationChargePix::GetRSigmaPerCharge()  const
     409{
     410 
     411  const Float_t rsigma = GetRSigma();
     412
     413  if (rsigma <= 0)
     414    return -1.;
     415 
     416
     417  const Float_t mean   = GetMean();
     418 
     419  if (mean == 0. || mean == -1.)
     420    return -1.;
     421 
     422  return rsigma / mean;
     423}
     424
     425
     426// --------------------------------------------------------------------------
     427//
     428// Get the error of the reduced Sigma per Charge:
     429// - If GetRSigmaRelVar() is smaller or equal 0. (i.e. has not yet been set), return -1.
     430// - If GetMeanRelVar() is smaller or equal 0. (i.e. has not yet been set), return -1.
     431// - Return the propagated error of GetRSigmaPerCharge()
     432//
     433Float_t MCalibrationChargePix::GetRSigmaPerChargeErr()  const
     434{
     435 
     436  const Float_t rsigmarelvar  = GetRSigmaRelVar();
     437
     438  if (rsigmarelvar <= 0)
     439    return -1.;
     440 
     441
     442  const Float_t meanrelvar   = GetMeanRelVar();
     443 
     444  if (meanrelvar <= 0.)
     445    return -1.;
     446 
     447  return TMath::Sqrt(rsigmarelvar + meanrelvar) * GetRSigmaPerCharge();
     448}
     449
     450// --------------------------------------------------------------------------
     451//
    403452// Get the reduced Sigma Square:
    404453// - If fRSigmaSquare is smaller than 0 (i.e. has not yet been set), return -1.
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.h

    r3683 r3724  
    9393  Float_t GetRSigma                  () const;
    9494  Float_t GetRSigmaErr               () const;
     95  Float_t GetRSigmaPerCharge         () const;
     96  Float_t GetRSigmaPerChargeErr      () const;
    9597  Float_t GetRSigmaSquare            () const; 
    9698  Float_t GetRSigmaRelVar            () const;
  • trunk/MagicSoft/Mars/mcalib/MCalibrationQEPix.cc

    r3690 r3724  
    11111111  fAvNormFFactorVar  = 1./ sumweights ;
    11121112
     1113  SetAverageQEFFactorAvailable();
     1114
    11131115  return kTRUE;
    11141116 
Note: See TracChangeset for help on using the changeset viewer.