Belle II Software  release-08-01-10
SendHeader Class Reference

Public Types

enum  { SENDHDR_NWORDS = 6 }
 
enum  {
  POS_NWORDS = 0 ,
  POS_HDR_NWORDS = 1 ,
  POS_NUM_EVE_NUM_NODES = 2 ,
  POS_EXP_RUN_NUM = 3 ,
  POS_EVE_NUM = 4 ,
  POS_NODE_ID = 5
}
 
enum  {
  EXP_MASK = 0xFFC00000 ,
  EXP_SHIFT = 22 ,
  RUNNO_MASK = 0x003FFF00 ,
  RUNNO_SHIFT = 8 ,
  SUBRUNNO_MASK = 0x000000FF
}
 

Public Member Functions

 SendHeader ()
 Default constructor.
 
 SendHeader (int *)
 Constructor using existing pointer to raw data buffer.
 
 ~SendHeader ()
 Destructor.
 
int * GetBuffer (void)
 Get Header contents.
 
void SetBuffer (int *hdr)
 set buffer
 
void Initialize ()
 
void SetNwords (int total_data_nwords)
 initialize Header
 
void SetNumEventsinPacket (int num_events)
 set contents of Header
 
void SetNumNodesinPacket (int num_nodes)
 
void SetEventNumber (int eve_num)
 
void SetNodeID (int node_id)
 
void SetExpRunWord (unsigned int exp_run)
 
void SetRunNum (int run_num)
 
void SetSubRunNum (int subrun_num)
 
void SetExpNum (int exp_num)
 
int GetTotalNwords ()
 
int GetHdrNwords ()
 get contents of Header
 
int GetNumEventsinPacket ()
 get contents of Header
 
int GetNumNodesinPacket ()
 
int GetEventNumber ()
 
int GetNodeID ()
 
int GetRunNum ()
 
int GetSubRunNum ()
 
int GetExpNum ()
 
int GetRunNumSubRunNum ()
 

Private Attributes

int m_buffer [SENDHDR_NWORDS]
 

Detailed Description

Definition at line 21 of file SendHeader.h.


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