Changeset 8573 for trunk


Ignore:
Timestamp:
06/17/07 21:50:58 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8571 r8573  
    4343       flexible daza format
    4444     - removed a lot of old, obsolete and unsused member functions
     45
     46   * msignal/MSignalCalc.cc:
     47     - changed to use USample_t instead of Byte_t
     48     - ToBeFIXED! The saturation limits are still around 2^8
    4549
    4650
  • 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
  • trunk/MagicSoft/Mars/msignal/MSignalCalc.cc

    r8519 r8573  
    134134    for (int i=0; i<npix; i++)
    135135    {
    136         Byte_t *raw = fRawEvt->GetSamplesRaw(i);
    137 
    138         Byte_t *ptr   = raw;
    139         Byte_t *max   = ptr+fRawEvt->GetMaxPos(i, 0, nhi);
    140         Byte_t *end   = ptr+nhi;
    141         Byte_t *first = max-fBefore;
    142         Byte_t *last  = max+fAfter;
     136        USample_t *raw = fRawEvt->GetSamplesRaw(i);
     137
     138        USample_t *ptr   = raw;
     139        USample_t *max   = ptr+fRawEvt->GetMaxPos(i, 0, nhi);
     140        USample_t *end   = ptr+nhi;
     141        USample_t *first = max-fBefore;
     142        USample_t *last  = max+fAfter;
    143143
    144144        ULong_t sumb  = 0;   // sum background
     
    152152        Int_t nsb  = 0;
    153153
    154         if (*max==255)
     154        if (*max==255)  // FIXME!!!!
    155155            sat++;
    156156
     
    201201            max = ptr+fRawEvt->GetMaxPos(i, nhi, nhi+nlo);
    202202
    203             if (*max>250)
     203            if (*max>250) // FIXME!!!!
    204204            {
    205205                fSkip++;
Note: See TracChangeset for help on using the changeset viewer.