Ignore:
Timestamp:
06/06/12 11:04:25 (12 years ago)
Author:
tbretz
Message:
Added reading of board times.
File:
1 edited

Legend:

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

    r12794 r14089  
    5151#include "MArrayS.h"
    5252
     53#include "MParList.h"
     54
    5355#include "MRawRunHeader.h"
    5456#include "MRawEvtHeader.h"
    5557#include "MRawEvtData.h"
     58#include "MRawBoardsFACT.h"
    5659
    5760ClassImp(MRawFitsRead);
     
    6467//
    6568MRawFitsRead::MRawFitsRead(const char *fname, const char *name, const char *title)
    66     : MRawFileRead(fname, name, title)
    67 {
     69    : MRawFileRead(fname, name, title), fRawBoards(0)
     70{
     71}
     72
     73Int_t MRawFitsRead::PreProcess(MParList *pList)
     74{
     75    fRawBoards = (MRawBoardsFACT*)pList->FindCreateObj("MRawBoardsFACT");
     76    return fRawBoards!=0;
    6877}
    6978
     
    188197            return kFALSE;
    189198
     199    if (!fin.SetPtrAddress("BoardTime", fRawBoards->fFadTime, 40))
     200        return kFALSE;
     201
    190202    if (!fin.SetPtrAddress("Data", (int16_t*)(*data)->GetArray(), (*data)->GetSize()/2))
    191203        return kFALSE;
Note: See TracChangeset for help on using the changeset viewer.