Changeset 5334


Ignore:
Timestamp:
11/02/04 12:40:38 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5332 r5334  
    2020
    2121                                                 -*-*- END OF LINE -*-*-
     22
     23 2004/11/01: Markus Gaug
     24
     25   * msignal/MExtractTimeAndChageDigitalFilter.cc
     26     - delete the pointer to derivativelo and derivativehi at the end of
     27       the function
     28     - reduce the effective number of high-gain samples (used for the
     29       calculation of the pedestal RMS in the calibration) from 6. to
     30       2.5
     31
    2232
    2333 2004/11/01: Markus Meyer and Keiichi Mase
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc

    r5307 r5334  
    167167    }
    168168 
    169   fNumHiGainSamples = (Float_t)fWindowSizeHiGain;
    170   fNumLoGainSamples = (Float_t)fWindowSizeLoGain;
     169  //
     170  // We need here the effective number of samples which is about 2.5 in the case of a window
     171  // size of 6. The exact numbers have to be found still.
     172  //
     173  fNumHiGainSamples = (Float_t)fWindowSizeHiGain/2.5;
     174  fNumLoGainSamples = (Float_t)fWindowSizeLoGain/2.5;
    171175  fSqrtHiGainSamples = TMath::Sqrt(fNumHiGainSamples);
    172176  fSqrtLoGainSamples = TMath::Sqrt(fNumLoGainSamples);
     
    803807  // Low Gain histograms
    804808  //
     809  TH1F *derivativelo = NULL;
    805810  if (shapelo)
    806811    {
     
    808813      binwidth = shapelo->GetBinWidth(1);
    809814     
    810       TH1F *derivativelo = new TH1F(Form("%s%s",shapelo->GetName(),"_der"),
    811                                     Form("%s%s",shapelo->GetTitle()," derivative"),
    812                                     nbinslo,
    813                                     shapelo->GetBinLowEdge(1),
    814                                     shapelo->GetBinLowEdge(nbinslo)+binwidth);
     815      derivativelo = new TH1F(Form("%s%s",shapelo->GetName(),"_der"),
     816                              Form("%s%s",shapelo->GetTitle()," derivative"),
     817                              nbinslo,
     818                              shapelo->GetBinLowEdge(1),
     819                              shapelo->GetBinLowEdge(nbinslo)+binwidth);
    815820     
    816821      //
     
    923928    }
    924929 
    925 
    926930  ofstream fn(filename.Data());
    927931
     
    937941  for (Int_t i=0; i<nsizehi; i++)
    938942    fn << "\t" << fAmpWeightsLoGain[i] << "\t" << fTimeWeightsLoGain[i] << endl;
     943
     944  delete derivativehi;
     945  if (derivativelo)
     946    delete derivativelo;
    939947
    940948  return kTRUE;
Note: See TracChangeset for help on using the changeset viewer.