Belle II Software development
RawTrailer_v1 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_v1.h>

Public Types

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

Public Member Functions

 RawTrailer_v1 ()
 Default constructor.
 
 ~RawTrailer_v1 ()
 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_v1 )
 

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 36 of file RawTrailer_v1.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Get magic word.

Definition at line 63 of file RawTrailer_v1.h.

63 {
64 RAWTRAILER_NWORDS = 2
65 };

◆ anonymous enum

anonymous enum

Definition at line 67 of file RawTrailer_v1.h.

67 {
68 MAGIC_WORD_TERM_TRAILER = 0x7fff0006
69 };

◆ anonymous enum

anonymous enum

Definition at line 71 of file RawTrailer_v1.h.

71 {
72 POS_CHKSUM = 0,
73 POS_TERM_WORD = 1
74 };

Constructor & Destructor Documentation

◆ RawTrailer_v1()

Default constructor.

Definition at line 15 of file RawTrailer_v1.cc.

16{
17 m_buffer = NULL;
18}
int * m_buffer
do not record buffer ( RawCOPPER includes buffer of RawHeader and RawTrailer_v1 )
Definition: RawTrailer_v1.h:78

◆ ~RawTrailer_v1()

Destructor.

Definition at line 20 of file RawTrailer_v1.cc.

21{
22}

Member Data Documentation

◆ m_buffer

int* m_buffer
private

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

Definition at line 78 of file RawTrailer_v1.h.


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