DQHeader Class Reference

#include <DQHeader.h>

List of all members.

Public Member Functions

 DQHeader ()
 DQHeader (const DQHeader &rhs)
 ~DQHeader ()
void Process (RawDaqHeader *hdr)
void Process (RawDaqSnarlHeader *hdr)
void Process (RawDaqHeaderBlock *rdb)
void Process (RawSnarlHeaderBlock *rdb)
Int_t GetTime () const
Int_t GetDetector () const
Int_t GetRunType () const
Int_t GetRun () const
Int_t GetSubRun () const
Int_t GetSnarl () const
Int_t GetTriggerSource () const
Int_t GetTimeFrame () const
Int_t GetBaseNanosec () const
Int_t GetTriggerNanosec () const
Int_t GetErrorCode () const

Private Member Functions

 ClassDef (DQHeader, 1)

Private Attributes

Int_t fTime
Int_t fDetector
Int_t fRunType
Int_t fRun
Int_t fSubRun
Int_t fSnarl
Int_t fTriggerSource
Int_t fTimeFrame
Int_t fBaseNanosec
Int_t fTriggerNanosec
Int_t fErrorCode

Detailed Description

Definition at line 16 of file DQHeader.h.


Constructor & Destructor Documentation

DQHeader::DQHeader (  ) 

Definition at line 13 of file DQHeader.cxx.

00013                    :
00014   fTime(-1),
00015   fDetector(0), 
00016   fRunType(-1),
00017   fRun(-1), 
00018   fSubRun(-1), 
00019   fSnarl(-1), 
00020   fTriggerSource(-1),
00021   fTimeFrame(-1), 
00022   fBaseNanosec(0),
00023   fTriggerNanosec(-1),
00024   fErrorCode(-1)
00025 {
00026  
00027 }
 

DQHeader::DQHeader ( const DQHeader rhs  ) 

Definition at line 29 of file DQHeader.cxx.

00029                                       :
00030   TObject(rhs),
00031   fTime(rhs.fTime),
00032   fDetector(rhs.fDetector), 
00033   fRunType(rhs.fRunType), 
00034   fRun(rhs.fRun), 
00035   fSubRun(rhs.fSubRun), 
00036   fSnarl(rhs.fSnarl),
00037   fTriggerSource(rhs.fTriggerSource),
00038   fTimeFrame(rhs.fTimeFrame), 
00039   fBaseNanosec(rhs.fBaseNanosec),
00040   fTriggerNanosec(rhs.fTriggerNanosec),
00041   fErrorCode(rhs.fErrorCode)
00042 {
00043  
00044 }
   

DQHeader::~DQHeader (  ) 

Definition at line 46 of file DQHeader.cxx.

00047 {
00048  
00049 }


Member Function Documentation

DQHeader::ClassDef ( DQHeader  ,
 
) [private]
Int_t DQHeader::GetBaseNanosec (  )  const [inline]

Definition at line 37 of file DQHeader.h.

References fBaseNanosec.

Referenced by AlgDataQuality::RunAlg().

00037 { return fBaseNanosec; }

Int_t DQHeader::GetDetector (  )  const [inline]

Definition at line 30 of file DQHeader.h.

References fDetector.

00030 { return fDetector; }

Int_t DQHeader::GetErrorCode (  )  const [inline]

Definition at line 39 of file DQHeader.h.

References fErrorCode.

Referenced by AlgDataQuality::RunAlg().

00039 { return fErrorCode; }

Int_t DQHeader::GetRun (  )  const [inline]

Definition at line 32 of file DQHeader.h.

References fRun.

Referenced by DataQualityReader::Reco(), and AlgDataQuality::RunAlg().

00032 { return fRun; }

Int_t DQHeader::GetRunType (  )  const [inline]

Definition at line 31 of file DQHeader.h.

References fRunType.

Referenced by AlgDataQuality::RunAlg().

00031 { return fRunType; }

Int_t DQHeader::GetSnarl (  )  const [inline]

Definition at line 34 of file DQHeader.h.

References fSnarl.

Referenced by DataQualityReader::Reco(), and AlgDataQuality::RunAlg().

00034 { return fSnarl; }

Int_t DQHeader::GetSubRun (  )  const [inline]

Definition at line 33 of file DQHeader.h.

References fSubRun.

Referenced by AlgDataQuality::RunAlg().

00033 { return fSubRun; }

Int_t DQHeader::GetTime (  )  const [inline]

Definition at line 29 of file DQHeader.h.

References fTime.

Referenced by AlgDataQuality::RunAlg().

00029 { return fTime; }

Int_t DQHeader::GetTimeFrame (  )  const [inline]

Definition at line 36 of file DQHeader.h.

References fTimeFrame.

Referenced by AlgDataQuality::RunAlg().

00036 { return fTimeFrame; }

Int_t DQHeader::GetTriggerNanosec (  )  const [inline]

Definition at line 38 of file DQHeader.h.

References fTriggerNanosec.

Referenced by AlgDataQuality::RunAlg().

00038 { return fTriggerNanosec; }

Int_t DQHeader::GetTriggerSource (  )  const [inline]

Definition at line 35 of file DQHeader.h.

References fTriggerSource.

Referenced by AlgDataQuality::RunAlg().

00035 { return fTriggerSource; }

void DQHeader::Process ( RawSnarlHeaderBlock rdb  ) 
void DQHeader::Process ( RawDaqHeaderBlock rdb  ) 

Definition at line 75 of file DQHeader.cxx.

References fBaseNanosec, fDetector, fErrorCode, fRun, fRunType, fSnarl, fSubRun, fTime, fTimeFrame, fTriggerNanosec, fTriggerSource, VldContext::GetDetector(), VldTimeStamp::GetNanoSec(), RawDaqHeaderBlock::GetRun(), RawDaqHeaderBlock::GetRunType(), VldTimeStamp::GetSec(), RawDaqHeaderBlock::GetSubRun(), RawDaqHeaderBlock::GetTimeFrameNum(), RawDaqHeaderBlock::GetTimeStamp(), RawDaqHeaderBlock::GetVldContext(), Msg::kVerbose, and MSG.

00076 {
00077   MSG("DataQuality",Msg::kVerbose) << " DQHeader::Process(RawDaqHeaderBlock) " << endl;  
00078 
00079   fTime = rdb->GetTimeStamp().GetSec();
00080   fDetector = rdb->GetVldContext().GetDetector();
00081   fRunType = rdb->GetRunType();
00082   fRun = rdb->GetRun();
00083   fSubRun = rdb->GetSubRun();
00084   fSnarl = -1;
00085   fTriggerSource = -1;
00086   fTimeFrame = rdb->GetTimeFrameNum();
00087   fBaseNanosec = rdb->GetTimeStamp().GetNanoSec();
00088   fTriggerNanosec = -1;
00089   fErrorCode = -1;
00090 
00091   MSG("DataQuality",Msg::kVerbose) << " DQHeader ["<< fRun << "|" << fSubRun << "|" << fSnarl << "|" << fTriggerSource << "|" << fErrorCode << "] [" << fTime << "|" << fTriggerNanosec << "|" << fBaseNanosec << "]" << endl;
00092 }

void DQHeader::Process ( RawDaqSnarlHeader hdr  ) 
void DQHeader::Process ( RawDaqHeader hdr  ) 

Definition at line 51 of file DQHeader.cxx.

References Msg::kVerbose, and MSG.

Referenced by DataQualityReader::ProcessBlock(), DumpBadElectronics::ProcessBlock(), DataQualityReader::ProcessHeader(), and DumpBadElectronics::ProcessHeader().

00052 {
00053   MSG("DataQuality",Msg::kVerbose) << " DQHeader::Process(RawDaqHeader) " << endl;  
00054 
00055 }


Member Data Documentation

Int_t DQHeader::fBaseNanosec [private]

Definition at line 51 of file DQHeader.h.

Referenced by GetBaseNanosec(), and Process().

Int_t DQHeader::fDetector [private]

Definition at line 44 of file DQHeader.h.

Referenced by GetDetector(), and Process().

Int_t DQHeader::fErrorCode [private]

Definition at line 53 of file DQHeader.h.

Referenced by GetErrorCode(), and Process().

Int_t DQHeader::fRun [private]

Definition at line 46 of file DQHeader.h.

Referenced by GetRun(), and Process().

Int_t DQHeader::fRunType [private]

Definition at line 45 of file DQHeader.h.

Referenced by GetRunType(), and Process().

Int_t DQHeader::fSnarl [private]

Definition at line 48 of file DQHeader.h.

Referenced by GetSnarl(), and Process().

Int_t DQHeader::fSubRun [private]

Definition at line 47 of file DQHeader.h.

Referenced by GetSubRun(), and Process().

Int_t DQHeader::fTime [private]

Definition at line 43 of file DQHeader.h.

Referenced by GetTime(), and Process().

Int_t DQHeader::fTimeFrame [private]

Definition at line 50 of file DQHeader.h.

Referenced by GetTimeFrame(), and Process().

Int_t DQHeader::fTriggerNanosec [private]

Definition at line 52 of file DQHeader.h.

Referenced by GetTriggerNanosec(), and Process().

Int_t DQHeader::fTriggerSource [private]

Definition at line 49 of file DQHeader.h.

Referenced by GetTriggerSource(), and Process().


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1