Ignore:
Timestamp:
06/17/07 21:50:58 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mpedestal/MHPedestalCor.cc

    r8218 r8573  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MHPedestalCor.cc,v 1.2 2006-12-11 11:43:32 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MHPedestalCor.cc,v 1.3 2007-06-17 20:50:58 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    124124    Int_t fExtractWinLast  = ns;
    125125
    126     Float_t fMaxSignalVar = 40;
     126    Float_t fMaxSignalVar =  40;
     127    Float_t fMaxSignalAbs = 250;
    127128
    128129    for (int k=0; k<np; k++)
    129130    {
    130131        // This is the fast workaround to put hi- and lo-gains together
    131         Byte_t *slices = evt->GetSamplesRaw(k);//pixel.GetSamples();
    132 
    133         UShort_t max = 0;
    134         UShort_t min = (UShort_t)-1;
     132        USample_t *slices = evt->GetSamplesRaw(k);//pixel.GetSamples();
     133
     134        USample_t max = 0;
     135        USample_t min = (USample_t)-1;
    135136
    136137        // Find the maximum and minimum signal per slice in the high gain window
    137         for (Byte_t *slice=slices+fCheckWinFirst; slice<slices+fCheckWinLast; slice++)
     138        for (USample_t *slice=slices+fCheckWinFirst; slice<slices+fCheckWinLast; slice++)
    138139        {
    139140            if (*slice > max)
     
    144145
    145146        // If the maximum in the high gain window is smaller than
    146         if (max-min>=fMaxSignalVar || max>=250)
     147        if (max-min>=fMaxSignalVar || max>=fMaxSignalAbs)
    147148            continue;
    148149
Note: See TracChangeset for help on using the changeset viewer.