Changeset 4160 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
05/24/04 20:29:08 (21 years ago)
Author:
rico
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4156 r4160  
    2020
    2121 2004/05/24: Javier Rico
     22
     23   * mpedestal/MPedPhotCalc.cc
     24     - Correct a bug that made pedestals be assigned to the wrong pixel
    2225
    2326   * mimage/MNewImagePar.[h,cc]
  • 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.