Changeset 12701 for trunk


Ignore:
Timestamp:
12/05/11 10:26:01 (13 years ago)
Author:
tbretz
Message:
Extract the trigger type from the file.
File:
1 edited

Legend:

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

    r12628 r12701  
    163163    MArrayS **cell   = reinterpret_cast<MArrayS**>(fRawEvtData1->DataMember("fStartCells"));
    164164    UInt_t   *evtnum = reinterpret_cast<UInt_t*>  (fRawEvtHeader->DataMember("fDAQEvtNumber"));
    165 
    166     if (!data || !cell || !evtnum)
     165    UShort_t *trg    = reinterpret_cast<UShort_t*>(fRawEvtHeader->DataMember("fTrigPattern"));
     166
     167    if (!data || !cell || !evtnum || !trg)
    167168        return kFALSE;
    168169
     
    172173
    173174    if (!fin.SetRefAddress("EventNum", *evtnum))
     175        return kFALSE;
     176
     177    if (!fin.SetRefAddress("TriggerType", *trg))
    174178        return kFALSE;
    175179
Note: See TracChangeset for help on using the changeset viewer.