Changeset 4252 for trunk/MagicSoft


Ignore:
Timestamp:
06/01/04 13:21:36 (20 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4251 r4252  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21 2004/06/01: Abelardo Moralejo
     22
     23   * msignal/MExtractFixedWindowPeakSearch.[h,cc]
     24     - Added variable fLowGainPeakShift and setter. It allows to shift
     25       the integration window for low gain with respect to the one of
     26       the high gain. By default its value is 0 (corresponding to a
     27       total delay of 15 slices) so that default behaviour of the
     28       extractor is the same as before.
    2029
    2130 2004/06/01: Markus Gaug
  • trunk/MagicSoft/Mars/msignal/MExtractFixedWindowPeakSearch.cc

    r4119 r4252  
    5555//   fLoGainWindowSize     = fgLoGainWindowSize     = 6
    5656//   fPeakSearchWindowSize = fgPeakSearchWindowSize = 4
     57//   fLowGainPeakShift     = fgLowGainPeakShift     = 0
    5758//
    5859//////////////////////////////////////////////////////////////////////////////
     
    8384const Byte_t MExtractFixedWindowPeakSearch::fgPeakSearchWindowSize = 4;
    8485const Byte_t MExtractFixedWindowPeakSearch::fgOffsetFromWindow     = 1;
     86const Byte_t MExtractFixedWindowPeakSearch::fgLowGainPeakShift     = 0;
    8587// --------------------------------------------------------------------------
    8688//
     
    9193// - fWindowSizeLoGain to fgWindowSizeLoGain
    9294// - fPeakSearchWindowSize to fgPeakSearchWindowSize
     95// - fLowGainPeakShift to fgLowGainPeakShift
    9396//
    9497// Calls:
     
    99102    : fWindowSizeHiGain(fgHiGainWindowSize),
    100103      fWindowSizeLoGain(fgLoGainWindowSize),
    101       fPeakSearchWindowSize(fgPeakSearchWindowSize)
     104      fPeakSearchWindowSize(fgPeakSearchWindowSize),
     105      fLowGainPeakShift(fgLowGainPeakShift)
    102106{
    103107
     
    392396
    393397
    394   loGainFirst = ( hiGainFirst > fLoGainFirst ) ? hiGainFirst : fLoGainFirst;
     398  loGainFirst = ( hiGainFirst+fLowGainPeakShift > fLoGainFirst ) ?
     399      hiGainFirst+fLowGainPeakShift : fLoGainFirst;
    395400
    396401  // Make sure we will not integrate beyond the hi gain limit:
  • trunk/MagicSoft/Mars/msignal/MExtractFixedWindowPeakSearch.h

    r4119 r4252  
    1717  static const Byte_t fgLoGainWindowSize;     // Default for fWindowSizeLoGain (now set to: 6)
    1818  static const Byte_t fgPeakSearchWindowSize; // Default for fPeakSearchWindowSize (now set to: 4)
    19   static const Byte_t fgOffsetFromWindow;     // Default for fOffsetFromWindow   (now set to: 2)
    20  
     19  static const Byte_t fgOffsetFromWindow;     // Default for fOffsetFromWindow (now set to: 1)
     20  static const Byte_t fgLowGainPeakShift;     // Default for fLowGainPeakShift (now set to: 0)
     21
    2122  Byte_t  fWindowSizeHiGain;     // Number of Hi Gain slices in window
    2223  Byte_t  fWindowSizeLoGain;     // Number of Lo Gain slices in window
    2324  Byte_t  fPeakSearchWindowSize; // Size of FADC window in the search for the highest peak of all pixels.
    2425  Byte_t  fOffsetFromWindow;     // Number of slices to start extraction before search window
     26  Byte_t  fLowGainPeakShift;     // Shift of the low gain pulse with respect to the high gain pulse, in slices: it is 0 if the low gain is delayed with respect to HG by 15 slices.
    2527
    2628  void   FindSignalHiGain(Byte_t *ptr, Byte_t *logain, Int_t &sum, Byte_t &sat) const;
     
    4042                    Byte_t peaksearchwindow=fgPeakSearchWindowSize);
    4143    void SetOffsetFromWindow(Byte_t offset=fgOffsetFromWindow)  {  fOffsetFromWindow = offset; }
     44
     45    void SetLowGainPeakShift(Byte_t shift=fgLowGainPeakShift) { fLowGainPeakShift = shift; }
    4246   
    4347    ClassDef(MExtractFixedWindowPeakSearch, 0) // Signal Extractor for fixed size trigger-corrected extraction window
Note: See TracChangeset for help on using the changeset viewer.