Changeset 5368


Ignore:
Timestamp:
11/10/04 10:25:55 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/msignal
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc

    r5364 r5368  
    2424!
    2525\* ======================================================================== */
    26 
    2726//////////////////////////////////////////////////////////////////////////////
    2827//
     
    6968using namespace std;
    7069
    71 const Byte_t MExtractTimeAndChargeDigitalFilter::fgHiGainFirst       =  0;
    72 const Byte_t MExtractTimeAndChargeDigitalFilter::fgHiGainLast        = 14;
    73 const Byte_t MExtractTimeAndChargeDigitalFilter::fgLoGainFirst       =  3;
    74 const Byte_t MExtractTimeAndChargeDigitalFilter::fgLoGainLast        = 14;
    75 const Int_t  MExtractTimeAndChargeDigitalFilter::fgWindowSizeHiGain  = 6;
    76 const Int_t  MExtractTimeAndChargeDigitalFilter::fgWindowSizeLoGain  = 6;
     70const Byte_t MExtractTimeAndChargeDigitalFilter::fgHiGainFirst             =  0;
     71const Byte_t MExtractTimeAndChargeDigitalFilter::fgHiGainLast              = 14;
     72const Byte_t MExtractTimeAndChargeDigitalFilter::fgLoGainFirst             =  3;
     73const Byte_t MExtractTimeAndChargeDigitalFilter::fgLoGainLast              = 14;
     74const Int_t  MExtractTimeAndChargeDigitalFilter::fgWindowSizeHiGain        = 6;
     75const Int_t  MExtractTimeAndChargeDigitalFilter::fgWindowSizeLoGain        = 6;
    7776const Int_t  MExtractTimeAndChargeDigitalFilter::fgBinningResolutionHiGain = 10;
    7877const Int_t  MExtractTimeAndChargeDigitalFilter::fgBinningResolutionLoGain = 10;
    79 const Int_t  MExtractTimeAndChargeDigitalFilter::fgSignalStartBinHiGain = 4;
    80 const Int_t  MExtractTimeAndChargeDigitalFilter::fgSignalStartBinLoGain = 4;
    81 
     78const Int_t  MExtractTimeAndChargeDigitalFilter::fgSignalStartBinHiGain    =  4;
     79const Int_t  MExtractTimeAndChargeDigitalFilter::fgSignalStartBinLoGain    =  4;
    8280// --------------------------------------------------------------------------
    8381//
     
    171169  // size of 6. The exact numbers have to be found still.
    172170  //
    173   fNumHiGainSamples = (Float_t)fWindowSizeHiGain/2.5;
    174   fNumLoGainSamples = (Float_t)fWindowSizeLoGain/2.5;
     171  fNumHiGainSamples = (Float_t)fWindowSizeHiGain/1.4;
     172  fNumLoGainSamples = (Float_t)fWindowSizeLoGain/1.4;
    175173  fSqrtHiGainSamples = TMath::Sqrt(fNumHiGainSamples);
    176174  fSqrtLoGainSamples = TMath::Sqrt(fNumLoGainSamples);
  • trunk/MagicSoft/Mars/msignal/MExtractor.cc

    r5360 r5368  
    397397    }
    398398
     399    if (IsEnvDefined(env, prefix, "NoiseCalculation", print))
     400    {
     401        SetNoiseCalculation(GetEnvValue(env, prefix, "NoiseCalculation", fNoiseCalculation));
     402        rc = kTRUE;
     403    }
     404
    399405    return rc;
    400406}
Note: See TracChangeset for help on using the changeset viewer.