Changeset 3949 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
05/03/04 18:08:07 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3945 r3949  
    3737
    3838 2004/05/03: Markus Gaug
     39
     40   * mraw/MRawEvtPixelIter.cc
     41     - corrected bug in GetIdxMaxLoGainSamples() which looped over
     42       one slice too much
     43        end = fLoGainPos + fNumLoGainSamples + 1 replaced by:
     44        end = fLoGainPos + fNumLoGainSamples
    3945
    4046   * msignal/MTimeExtractor.[h,cc]
  • trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc

    r3537 r3949  
    239239    return -1; // means: not found
    240240 
     241  Byte_t *ptr = fLoGainPos+lofirst+1;
    241242  Byte_t *max = fLoGainPos+lofirst;
    242   Byte_t *ptr = max+1;
    243 
    244   const Byte_t *end = fLoGainPos + fNumLoGainSamples + 1;
    245  
     243  const Byte_t *end = fLoGainPos + fNumLoGainSamples;
     244       
    246245  do if (*ptr>*max) max = ptr;
    247246  while (++ptr != end);
    248247 
     248  gLog << count << endl;
     249
    249250  return max-fLoGainPos;
    250251}
     
    293294Byte_t MRawEvtPixelIter::GetMaxLoGainSample() const
    294295{
     296
    295297    Byte_t max = 0;
    296298
Note: See TracChangeset for help on using the changeset viewer.