Belle II Software development
RawTrailer_latest Class Reference

The Raw Trailer class ver.1 ( the latest version since May, 2014 ) This class defines the format of the trailer of RawCOPPER class data and used for extracting trailer info from RawCOPPER object. More...

#include <RawTrailer_latest.h>

Public Types

enum  { RAWTRAILER_NWORDS = 4 }
 Get magic word. More...
 
enum  { MAGIC_WORD_TERM_TRAILER = 0x7fff0006 }
 
enum  {
  POS_ERROR_BIT_CH1 = 0 ,
  POS_ERROR_CH2 = 1 ,
  POS_CHKSUM = 2 ,
  POS_TERM_WORD = 3
}
 

Public Member Functions

 RawTrailer_latest ()
 Default constructor.
 
 ~RawTrailer_latest ()
 Destructor.
 
void CheckBuffer ()
 set buffer
 
int * GetBuffer ()
 set buffer
 
void SetBuffer (int *bufin)
 return buffer
 
void Initialize ()
 set buffer
 
void SetChksum (int chksum)
 set buffer
 
void SetMagicWord ()
 initialize header
 
int GetTrlNwords ()
 Set magic word.
 
unsigned int GetChksum ()
 Set # of trailer words.
 
int GetMagicWord ()
 initialize header
 

Private Attributes

int * m_buffer
 do not record buffer ( RawCOPPER includes buffer of RawHeader and RawTrailer_latest )
 

Detailed Description

The Raw Trailer class ver.1 ( the latest version since May, 2014 ) This class defines the format of the trailer of RawCOPPER class data and used for extracting trailer info from RawCOPPER object.

Definition at line 34 of file RawTrailer_latest.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Get magic word.

Definition at line 61 of file RawTrailer_latest.h.

61 {
62 RAWTRAILER_NWORDS = 4
63 };

◆ anonymous enum

anonymous enum

Definition at line 65 of file RawTrailer_latest.h.

65 {
66 MAGIC_WORD_TERM_TRAILER = 0x7fff0006
67 };

◆ anonymous enum

anonymous enum

Definition at line 69 of file RawTrailer_latest.h.

69 {
70 POS_ERROR_BIT_CH1 = 0,
71 POS_ERROR_CH2 = 1,
72 POS_CHKSUM = 2,
73 POS_TERM_WORD = 3
74 };

Constructor & Destructor Documentation

◆ RawTrailer_latest()

Default constructor.

Definition at line 15 of file RawTrailer_latest.cc.

16{
17 m_buffer = NULL;
18}
int * m_buffer
do not record buffer ( RawCOPPER includes buffer of RawHeader and RawTrailer_latest )

◆ ~RawTrailer_latest()

Destructor.

Definition at line 20 of file RawTrailer_latest.cc.

21{
22}

Member Data Documentation

◆ m_buffer

int* m_buffer
private

do not record buffer ( RawCOPPER includes buffer of RawHeader and RawTrailer_latest )

Definition at line 78 of file RawTrailer_latest.h.


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