Changeset 14089 for trunk/Mars


Ignore:
Timestamp:
06/06/12 11:04:25 (12 years ago)
Author:
tbretz
Message:
Added reading of board times.
Location:
trunk/Mars/mraw
Files:
2 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;
  • trunk/Mars/mraw/MRawFitsRead.h

    r11871 r14089  
    88#include <vector>
    99
     10class MRawBoardsFACT;
     11
    1012class MRawFitsRead : public MRawFileRead
    1113{
     
    1416    std::vector<UShort_t> fPixelMap; //!
    1517
     18    MRawBoardsFACT *fRawBoards;
     19
     20    Int_t    PreProcess(MParList *pList);
    1621    istream *OpenFile(const char *filename);
    1722    Bool_t   ReadRunHeader(istream &fin);
Note: See TracChangeset for help on using the changeset viewer.