Changeset 12479


Ignore:
Timestamp:
11/09/11 21:56:03 (13 years ago)
Author:
tbretz
Message:
Write the run-numbers to position 1,2,3 instead of 0,1,2; 0 is now used for the roi
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mcore/DrsCalib.h

    r12471 r12479  
    437437        float *base = vec.data();
    438438
    439         file.SetPtrAddress("RunNumberBaseline",      base,   1);
    440         file.SetPtrAddress("RunNumberGain",          base+1, 1);
    441         file.SetPtrAddress("RunNumberTriggerOffset", base+2, 1);
     439        reinterpret_cast<uint32_t*>(base)[0] = fRoi;
     440
     441        file.SetPtrAddress("RunNumberBaseline",      base+1, 1);
     442        file.SetPtrAddress("RunNumberGain",          base+2, 1);
     443        file.SetPtrAddress("RunNumberTriggerOffset", base+3, 1);
    442444        file.SetPtrAddress("BaselineMean",           base+4+0*1024*1440,                           1024*1440);
    443445        file.SetPtrAddress("BaselineRms",            base+4+1*1024*1440,                           1024*1440);
Note: See TracChangeset for help on using the changeset viewer.