Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
ptb::content::word::trigger_t Struct Reference

#include <CTB_content.h>

Public Types

typedef uint64_t ts_size_t
 
typedef uint64_t mask_size_t
 
typedef uint64_t wtype_size_t
 

Public Member Functions

bool IsHLT () const
 
bool IsLLT () const
 
bool IsTrigger (const unsigned int i) const
 

Public Attributes

ts_size_t timestamp
 
mask_size_t trigger_word: 61
 
wtype_size_t word_type: 3
 

Static Public Attributes

static size_t const size_bytes = 2*sizeof(uint64_t)
 
static size_t const size_u32 = size_bytes/sizeof(uint32_t)
 
static size_t const n_bits_timestamp = 64
 
static size_t const n_bits_tmask = 61
 
static size_t const n_bits_type = 3
 

Detailed Description

Definition at line 195 of file CTB_content.h.

Member Typedef Documentation

Definition at line 198 of file CTB_content.h.

Definition at line 197 of file CTB_content.h.

Definition at line 199 of file CTB_content.h.

Member Function Documentation

bool ptb::content::word::trigger_t::IsHLT ( ) const
inline

Definition at line 212 of file CTB_content.h.

bool ptb::content::word::trigger_t::IsLLT ( ) const
inline

Definition at line 213 of file CTB_content.h.

bool ptb::content::word::trigger_t::IsTrigger ( const unsigned int  i) const
inline

Definition at line 214 of file CTB_content.h.

214  {
215  if ( IsHLT() ) return trigger_word & ( 0x1 << i ) ;
216  if ( IsLLT() ) return i == 0 ? false : trigger_word & ( 0x1 << (i-1) ) ;
217  return false ;
218  }

Member Data Documentation

size_t const ptb::content::word::trigger_t::n_bits_timestamp = 64
static

Definition at line 208 of file CTB_content.h.

size_t const ptb::content::word::trigger_t::n_bits_tmask = 61
static

Definition at line 209 of file CTB_content.h.

size_t const ptb::content::word::trigger_t::n_bits_type = 3
static

Definition at line 210 of file CTB_content.h.

size_t const ptb::content::word::trigger_t::size_bytes = 2*sizeof(uint64_t)
static

Definition at line 205 of file CTB_content.h.

size_t const ptb::content::word::trigger_t::size_u32 = size_bytes/sizeof(uint32_t)
static

Definition at line 206 of file CTB_content.h.

ts_size_t ptb::content::word::trigger_t::timestamp

Definition at line 201 of file CTB_content.h.

mask_size_t ptb::content::word::trigger_t::trigger_word

Definition at line 202 of file CTB_content.h.

wtype_size_t ptb::content::word::trigger_t::word_type

Definition at line 203 of file CTB_content.h.


The documentation for this struct was generated from the following file: