RawDaqSnarlHeader Class Reference

#include <RawDaqSnarlHeader.h>

Inheritance diagram for RawDaqSnarlHeader:
RawDaqHeader RawHeader RecMinosHdr

List of all members.

Public Member Functions

 RawDaqSnarlHeader ()
 RawDaqSnarlHeader (const VldContext &vldc, Int_t run, Short_t subrun, Short_t runtype, Int_t timeframe, Int_t snarl, UInt_t trigsrc, UInt_t errcode, Int_t nrawdigits, Int_t spilltype)
virtual ~RawDaqSnarlHeader ()
Int_t GetSnarl () const
UInt_t GetTrigSrc () const
UInt_t GetErrorCode () const
Int_t GetNumRawDigits () const
Int_t GetRemoteSpillType () const
virtual std::ostream & FormatToOStream (std::ostream &os, Option_t *option="") const

Protected Attributes

Int_t fSnarl
UInt_t fTrigSrc
UInt_t fErrorCode
Int_t fNumRawDigits
Int_t fRemoteSpillType

Detailed Description

Definition at line 19 of file RawDaqSnarlHeader.h.


Constructor & Destructor Documentation

RawDaqSnarlHeader::RawDaqSnarlHeader (  ) 

Definition at line 22 of file RawDaqSnarlHeader.cxx.

00022                                        :
00023     RawDaqHeader(), fSnarl(-1), fTrigSrc(0xFFFF), fErrorCode(0xFFFF),
00024     fNumRawDigits(-1), fRemoteSpillType(-1)
00025 {
00026    // Default constructor
00027 
00028 }

RawDaqSnarlHeader::RawDaqSnarlHeader ( const VldContext vldc,
Int_t  run,
Short_t  subrun,
Short_t  runtype,
Int_t  timeframe,
Int_t  snarl,
UInt_t  trigsrc,
UInt_t  errcode,
Int_t  nrawdigits,
Int_t  spilltype 
)

Definition at line 31 of file RawDaqSnarlHeader.cxx.

00036                                                       :
00037    RawDaqHeader(vldc,run,subrun,runtype,timeframe), 
00038    fSnarl(snarl), fTrigSrc(trigsrc), fErrorCode(errcode),
00039    fNumRawDigits(nrawdigits), fRemoteSpillType(spilltype)
00040 {
00041    
00042 }

virtual RawDaqSnarlHeader::~RawDaqSnarlHeader (  )  [inline, virtual]

Definition at line 28 of file RawDaqSnarlHeader.h.

00028 { ; }


Member Function Documentation

std::ostream & RawDaqSnarlHeader::FormatToOStream ( std::ostream &  os,
Option_t *  option = "" 
) const [virtual]

Reimplemented from RawDaqHeader.

Definition at line 45 of file RawDaqSnarlHeader.cxx.

References GetErrorCode(), GetNumRawDigits(), GetRemoteSpillType(), GetSnarl(), GetTrigSrc(), and Detector::MaskToString().

00047 {
00048    RawDaqHeader::FormatToOStream(os,option);
00049 
00050    Int_t trigSrc = GetTrigSrc();
00051    os << std::endl
00052       << " Snarl " << GetSnarl()
00053       << std::hex << std::setfill('0')
00054       << ", TrigSrc 0x"  << std::setw(8) << trigSrc
00055       << std::setfill(' ') << std::dec
00056       << " \"" << RawTriggerCodes::MaskToString(trigSrc) << "\""
00057       << std::endl
00058       << std::hex << std::setfill('0')
00059       << " ErrorCode 0x" << std::setw(8) << GetErrorCode()
00060       << std::setfill(' ') << std::dec
00061       << ", # RawDigits " << GetNumRawDigits()
00062       << ", SpillType " << GetRemoteSpillType();
00063    return os;
00064 }

UInt_t RawDaqSnarlHeader::GetErrorCode (  )  const [inline]
Int_t RawDaqSnarlHeader::GetNumRawDigits (  )  const [inline]
Int_t RawDaqSnarlHeader::GetRemoteSpillType (  )  const [inline]
Int_t RawDaqSnarlHeader::GetSnarl (  )  const [inline]
UInt_t RawDaqSnarlHeader::GetTrigSrc (  )  const [inline]

Member Data Documentation

UInt_t RawDaqSnarlHeader::fErrorCode [protected]

Definition at line 43 of file RawDaqSnarlHeader.h.

Referenced by GetErrorCode().

Definition at line 44 of file RawDaqSnarlHeader.h.

Referenced by GetNumRawDigits().

Definition at line 45 of file RawDaqSnarlHeader.h.

Referenced by GetRemoteSpillType().

Int_t RawDaqSnarlHeader::fSnarl [protected]

Definition at line 41 of file RawDaqSnarlHeader.h.

Referenced by GetSnarl().

UInt_t RawDaqSnarlHeader::fTrigSrc [protected]

Definition at line 42 of file RawDaqSnarlHeader.h.

Referenced by GetTrigSrc().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1