BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
eformat::old::FullEventFragment Class Reference

#include <FullEventFragment.h>

Inheritance diagram for eformat::old::FullEventFragment:

Public Member Functions

 FullEventFragment (const uint32_t *it)
virtual ~FullEventFragment ()
virtual bool check () const
bool check_tree () const
uint32_t date () const
uint32_t global_id () const
uint32_t lvl1_id () const
uint32_t lvl1_trigger_type () const
uint32_t lvl2_trigger_info () const
uint32_t nevent_filter_info () const
const uint32_t * event_filter_info (void) const
 FullEventFragment (const uint32_t *it)
virtual ~FullEventFragment ()
virtual bool check () const
bool check_tree () const
uint32_t date () const
uint32_t global_id () const
uint32_t lvl1_id () const
uint32_t lvl1_trigger_type () const
uint32_t lvl2_trigger_info () const
uint32_t nevent_filter_info () const
const uint32_t * event_filter_info (void) const
 FullEventFragment (const uint32_t *it)
virtual ~FullEventFragment ()
virtual bool check () const
bool check_tree () const
uint32_t date () const
uint32_t global_id () const
uint32_t lvl1_id () const
uint32_t lvl1_trigger_type () const
uint32_t lvl2_trigger_info () const
uint32_t nevent_filter_info () const
const uint32_t * event_filter_info (void) const
Public Member Functions inherited from eformat::old::Header
 Header (const uint32_t *it, uint32_t match)
virtual ~Header ()
uint32_t marker () const
uint32_t fragment_size_word () const
uint32_t header_size_word () const
uint32_t version () const
uint32_t source_id () const
uint32_t run_no () const
uint32_t nstatus () const
const uint32_t * status () const
uint32_t noffset () const
const uint32_t * offset (void) const
uint32_t nspecific () const
const uint32_t * specific_header (void) const
const uint32_t * child (size_t n) const
 Header (const uint32_t *it, uint32_t match)
virtual ~Header ()
uint32_t marker () const
uint32_t fragment_size_word () const
uint32_t header_size_word () const
uint32_t version () const
uint32_t source_id () const
uint32_t run_no () const
uint32_t nstatus () const
const uint32_t * status () const
uint32_t noffset () const
const uint32_t * offset (void) const
uint32_t nspecific () const
const uint32_t * specific_header (void) const
const uint32_t * child (size_t n) const
 Header (const uint32_t *it, uint32_t match)
virtual ~Header ()
uint32_t marker () const
uint32_t fragment_size_word () const
uint32_t header_size_word () const
uint32_t version () const
uint32_t source_id () const
uint32_t run_no () const
uint32_t nstatus () const
const uint32_t * status () const
uint32_t noffset () const
const uint32_t * offset (void) const
uint32_t nspecific () const
const uint32_t * specific_header (void) const
const uint32_t * child (size_t n) const

Detailed Description

Describes how to access the contents of an event fragment, as prescribed by the event format note.

Definition at line 27 of file Event/eformat/include/eformat/old/FullEventFragment.h.

Constructor & Destructor Documentation

◆ FullEventFragment() [1/3]

eformat::old::FullEventFragment::FullEventFragment ( const uint32_t * it)

To build a fragment given the containing buffer. I need to know where the fragment starts in order to do that.

Parameters
itThe exact position where this fragment should start.

Definition at line 18 of file FullEventFragment24.cxx.

19 : eformat::old::Header( it, eformat::FULL_EVENT ), m_start( specific_header() ) {}

◆ ~FullEventFragment() [1/3]

virtual eformat::old::FullEventFragment::~FullEventFragment ( )
inlinevirtual

Destructor virtualisation

Definition at line 41 of file Event/eformat/include/eformat/old/FullEventFragment.h.

41{}

◆ FullEventFragment() [2/3]

eformat::old::FullEventFragment::FullEventFragment ( const uint32_t * it)

To build a fragment given the containing buffer. I need to know where the fragment starts in order to do that.

Parameters
itThe exact position where this fragment should start.

◆ ~FullEventFragment() [2/3]

virtual eformat::old::FullEventFragment::~FullEventFragment ( )
inlinevirtual

Destructor virtualisation

Definition at line 41 of file InstallArea/x86_64-el9-gcc13-dbg/include/eformat/old/FullEventFragment.h.

41{}

◆ FullEventFragment() [3/3]

eformat::old::FullEventFragment::FullEventFragment ( const uint32_t * it)

To build a fragment given the containing buffer. I need to know where the fragment starts in order to do that.

Parameters
itThe exact position where this fragment should start.

◆ ~FullEventFragment() [3/3]

virtual eformat::old::FullEventFragment::~FullEventFragment ( )
inlinevirtual

Destructor virtualisation

Definition at line 41 of file InstallArea/x86_64-el9-gcc13-opt/include/eformat/old/FullEventFragment.h.

41{}

Member Function Documentation

◆ check() [1/3]

bool eformat::old::FullEventFragment::check ( ) const
virtual

Says if the the fragment is valid. This may throw exceptions.

Reimplemented from eformat::old::Header.

Definition at line 21 of file FullEventFragment24.cxx.

21 {
22 eformat::old::Header::check(); //< first do a generic check
23 if ( nspecific() != 10 )
24 { //@warning THIS IS WRONG!!! It should be 9
25 throw EFORMAT_SIZE_CHECK( 10, nspecific() );
26 }
27 return true;
28}
#define EFORMAT_SIZE_CHECK(actual, informed)
virtual bool check() const
Definition Header24.cxx:27

Referenced by check_tree().

◆ check() [2/3]

virtual bool eformat::old::FullEventFragment::check ( ) const
virtual

Says if the the fragment is valid. This may throw exceptions.

Reimplemented from eformat::old::Header.

◆ check() [3/3]

virtual bool eformat::old::FullEventFragment::check ( ) const
virtual

Says if the the fragment is valid. This may throw exceptions.

Reimplemented from eformat::old::Header.

◆ check_tree() [1/3]

bool eformat::old::FullEventFragment::check_tree ( ) const

Says if the Fragment and all children are valid.

Definition at line 30 of file FullEventFragment24.cxx.

30 {
31 check(); // check myself
32 for ( size_t i = 0; i < noffset(); ++i )
33 {
34 eformat::old::SubDetectorFragment sd( child( i ) );
35 sd.check_tree();
36 }
37 return true;
38}
const uint32_t * child(size_t n) const
Definition Header24.cxx:36

Referenced by eformat::old::convert(), and main().

◆ check_tree() [2/3]

bool eformat::old::FullEventFragment::check_tree ( ) const

Says if the Fragment and all children are valid.

◆ check_tree() [3/3]

bool eformat::old::FullEventFragment::check_tree ( ) const

Says if the Fragment and all children are valid.

◆ date() [1/3]

uint32_t eformat::old::FullEventFragment::date ( ) const
inline

Returns the date, in seconds elapsed since the 1st. January,

  1. The timezone is fixed to UTC.

Definition at line 57 of file Event/eformat/include/eformat/old/FullEventFragment.h.

57{ return m_start[0]; }

Referenced by eformat::old::convert().

◆ date() [2/3]

uint32_t eformat::old::FullEventFragment::date ( ) const
inline

Returns the date, in seconds elapsed since the 1st. January,

  1. The timezone is fixed to UTC.

Definition at line 57 of file InstallArea/x86_64-el9-gcc13-dbg/include/eformat/old/FullEventFragment.h.

57{ return m_start[0]; }

◆ date() [3/3]

uint32_t eformat::old::FullEventFragment::date ( ) const
inline

Returns the date, in seconds elapsed since the 1st. January,

  1. The timezone is fixed to UTC.

Definition at line 57 of file InstallArea/x86_64-el9-gcc13-opt/include/eformat/old/FullEventFragment.h.

57{ return m_start[0]; }

◆ event_filter_info() [1/3]

const uint32_t * eformat::old::FullEventFragment::event_filter_info ( void ) const
inline

Returns an iterator to the first of the (5) EF words

Definition at line 87 of file Event/eformat/include/eformat/old/FullEventFragment.h.

87{ return &m_start[5]; }

Referenced by eformat::old::convert().

◆ event_filter_info() [2/3]

const uint32_t * eformat::old::FullEventFragment::event_filter_info ( void ) const
inline

Returns an iterator to the first of the (5) EF words

Definition at line 87 of file InstallArea/x86_64-el9-gcc13-dbg/include/eformat/old/FullEventFragment.h.

87{ return &m_start[5]; }

◆ event_filter_info() [3/3]

const uint32_t * eformat::old::FullEventFragment::event_filter_info ( void ) const
inline

Returns an iterator to the first of the (5) EF words

Definition at line 87 of file InstallArea/x86_64-el9-gcc13-opt/include/eformat/old/FullEventFragment.h.

87{ return &m_start[5]; }

◆ global_id() [1/3]

uint32_t eformat::old::FullEventFragment::global_id ( ) const
inline

Returns the global identifier

Definition at line 62 of file Event/eformat/include/eformat/old/FullEventFragment.h.

62{ return m_start[1]; }

Referenced by eformat::old::convert().

◆ global_id() [2/3]

uint32_t eformat::old::FullEventFragment::global_id ( ) const
inline

Returns the global identifier

Definition at line 62 of file InstallArea/x86_64-el9-gcc13-dbg/include/eformat/old/FullEventFragment.h.

62{ return m_start[1]; }

◆ global_id() [3/3]

uint32_t eformat::old::FullEventFragment::global_id ( ) const
inline

Returns the global identifier

Definition at line 62 of file InstallArea/x86_64-el9-gcc13-opt/include/eformat/old/FullEventFragment.h.

62{ return m_start[1]; }

◆ lvl1_id() [1/3]

uint32_t eformat::old::FullEventFragment::lvl1_id ( ) const
inline

Returns the lvl1 identifier

Definition at line 67 of file Event/eformat/include/eformat/old/FullEventFragment.h.

67{ return m_start[2]; }

Referenced by eformat::old::convert(), and main().

◆ lvl1_id() [2/3]

uint32_t eformat::old::FullEventFragment::lvl1_id ( ) const
inline

Returns the lvl1 identifier

Definition at line 67 of file InstallArea/x86_64-el9-gcc13-dbg/include/eformat/old/FullEventFragment.h.

67{ return m_start[2]; }

◆ lvl1_id() [3/3]

uint32_t eformat::old::FullEventFragment::lvl1_id ( ) const
inline

Returns the lvl1 identifier

Definition at line 67 of file InstallArea/x86_64-el9-gcc13-opt/include/eformat/old/FullEventFragment.h.

67{ return m_start[2]; }

◆ lvl1_trigger_type() [1/3]

uint32_t eformat::old::FullEventFragment::lvl1_trigger_type ( ) const
inline

Retursn the lvl1 trigger type

Definition at line 72 of file Event/eformat/include/eformat/old/FullEventFragment.h.

72{ return m_start[3]; }

Referenced by eformat::old::convert().

◆ lvl1_trigger_type() [2/3]

uint32_t eformat::old::FullEventFragment::lvl1_trigger_type ( ) const
inline

Retursn the lvl1 trigger type

Definition at line 72 of file InstallArea/x86_64-el9-gcc13-dbg/include/eformat/old/FullEventFragment.h.

72{ return m_start[3]; }

◆ lvl1_trigger_type() [3/3]

uint32_t eformat::old::FullEventFragment::lvl1_trigger_type ( ) const
inline

Retursn the lvl1 trigger type

Definition at line 72 of file InstallArea/x86_64-el9-gcc13-opt/include/eformat/old/FullEventFragment.h.

72{ return m_start[3]; }

◆ lvl2_trigger_info() [1/3]

uint32_t eformat::old::FullEventFragment::lvl2_trigger_info ( ) const
inline

Returns the lvl2 trigger info

Definition at line 77 of file Event/eformat/include/eformat/old/FullEventFragment.h.

77{ return m_start[4]; }

Referenced by eformat::old::convert().

◆ lvl2_trigger_info() [2/3]

uint32_t eformat::old::FullEventFragment::lvl2_trigger_info ( ) const
inline

Returns the lvl2 trigger info

Definition at line 77 of file InstallArea/x86_64-el9-gcc13-dbg/include/eformat/old/FullEventFragment.h.

77{ return m_start[4]; }

◆ lvl2_trigger_info() [3/3]

uint32_t eformat::old::FullEventFragment::lvl2_trigger_info ( ) const
inline

Returns the lvl2 trigger info

Definition at line 77 of file InstallArea/x86_64-el9-gcc13-opt/include/eformat/old/FullEventFragment.h.

77{ return m_start[4]; }

◆ nevent_filter_info() [1/3]

uint32_t eformat::old::FullEventFragment::nevent_filter_info ( ) const
inline

Returns the number of Event Filter words (constant = 5)

Definition at line 82 of file Event/eformat/include/eformat/old/FullEventFragment.h.

82{ return 5; }

◆ nevent_filter_info() [2/3]

uint32_t eformat::old::FullEventFragment::nevent_filter_info ( ) const
inline

Returns the number of Event Filter words (constant = 5)

Definition at line 82 of file InstallArea/x86_64-el9-gcc13-dbg/include/eformat/old/FullEventFragment.h.

82{ return 5; }

◆ nevent_filter_info() [3/3]

uint32_t eformat::old::FullEventFragment::nevent_filter_info ( ) const
inline

Returns the number of Event Filter words (constant = 5)

Definition at line 82 of file InstallArea/x86_64-el9-gcc13-opt/include/eformat/old/FullEventFragment.h.

82{ return 5; }

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