Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

DQHeader.h

Go to the documentation of this file.
00001 
00002 // DQHeader
00003 // ========
00004 // This class extracts information from the raw header blocks
00005 
00006 #ifndef DQHEADER_H
00007 #define DQHEADER_H
00008  
00009 #include "RawData/RawDaqHeader.h"
00010 #include "RawData/RawDaqSnarlHeader.h"
00011 #include "RawData/RawDaqHeaderBlock.h"
00012 #include "RawData/RawSnarlHeaderBlock.h"
00013 
00014 #include "TObject.h"
00015  
00016 class DQHeader : public TObject
00017 {
00018  
00019  public:
00020   DQHeader();
00021   DQHeader(const DQHeader& rhs);
00022   ~DQHeader();
00023 
00024   void Process(RawDaqHeader* hdr);
00025   void Process(RawDaqSnarlHeader* hdr);
00026   void Process(RawDaqHeaderBlock* rdb);
00027   void Process(RawSnarlHeaderBlock* rdb);
00028 
00029   Int_t GetTime() const           { return fTime; }
00030   Int_t GetDetector() const       { return fDetector; }
00031   Int_t GetRunType() const        { return fRunType; }
00032   Int_t GetRun() const            { return fRun; }
00033   Int_t GetSubRun() const         { return fSubRun; }
00034   Int_t GetSnarl() const          { return fSnarl; }
00035   Int_t GetTriggerSource() const  { return fTriggerSource; }
00036   Int_t GetTimeFrame() const      { return fTimeFrame; }
00037   Int_t GetBaseNanosec() const    { return fBaseNanosec; }
00038   Int_t GetTriggerNanosec() const { return fTriggerNanosec; }
00039   Int_t GetErrorCode() const      { return fErrorCode; }
00040 
00041  private:
00042 
00043   Int_t fTime;
00044   Int_t fDetector;
00045   Int_t fRunType;
00046   Int_t fRun;
00047   Int_t fSubRun;
00048   Int_t fSnarl;
00049   Int_t fTriggerSource;
00050   Int_t fTimeFrame;
00051   Int_t fBaseNanosec;
00052   Int_t fTriggerNanosec;
00053   Int_t fErrorCode;
00054  
00055   ClassDef(DQHeader,1);
00056             
00057 };   
00058 
00059 #endif

Generated on Mon Feb 15 11:06:38 2010 for loon by  doxygen 1.3.9.1