Ignore:
Timestamp:
05/24/04 20:29:08 (21 years ago)
Author:
rico
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r3803 r4160  
    158158 
    159159       const MCerPhotPix &pix = (*fCerPhot)[i];
     160       const Int_t pixidx = pix.GetPixId();
    160161
    161162       const Float_t nphot = pix.GetNumPhotons();
    162163       
    163        fSumx[i]  += nphot;
    164        fSumx2[i] += nphot*nphot;
     164       fSumx[pixidx]  += nphot;
     165       fSumx2[pixidx] += nphot*nphot;
    165166    }
    166167
Note: See TracChangeset for help on using the changeset viewer.