Changeset 11870 for trunk


Ignore:
Timestamp:
08/09/11 23:53:44 (13 years ago)
Author:
tbretz
Message:
When setting a pixel map in the event data subtract one to get from the id to the index.
Location:
trunk/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/Changelog

    r11869 r11870  
    2323   * mraw/MRawRunHeader.[h,cc]:
    2424     - implemented setting pixel map in InitFact
     25
     26   * mraw/MRawEvtData.cc:
     27     - when setting a pixel map, subtract one to get from the id to
     28       the index
    2529
    2630
  • trunk/Mars/mraw/MRawEvtData.cc

    r11555 r11870  
    513513        return;
    514514
    515     memcpy(fHiGainPixId->GetArray(), idx.GetArray(), idx.GetSize()*sizeof(UShort_t));
     515    for (UInt_t i=0; i<fHiGainPixId->GetSize(); i++)
     516        (*fHiGainPixId)[i] = idx[i]-1;
    516517}
    517518
Note: See TracChangeset for help on using the changeset viewer.