Changeset 17124 for trunk


Ignore:
Timestamp:
09/07/13 10:09:40 (11 years ago)
Author:
tbretz
Message:
The change of type was a mistake. The trigger pattern comes form the file as a short.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mraw/MRawFitsRead.cc

    r17072 r17124  
    180180    MArrayS **cell   = reinterpret_cast<MArrayS**>(fRawEvtData1->DataMember("fStartCells"));
    181181    UInt_t   *evtnum = reinterpret_cast<UInt_t*>  (fRawEvtHeader->DataMember("fDAQEvtNumber"));
    182     UInt_t   *trg    = reinterpret_cast<UInt_t*>  (fRawEvtHeader->DataMember("fTrigPattern"));
     182
     183    // The 'wrong' cast is intentional because we read only two bytes from the file
     184    UShort_t *trg    = reinterpret_cast<UShort_t*>(fRawEvtHeader->DataMember("fTrigPattern"));
    183185
    184186    if (!data || !cell || !evtnum || !trg)
Note: See TracChangeset for help on using the changeset viewer.