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

#include <ROSFragment.h>

Inheritance diagram for eformat::old::ROSFragment:

Public Member Functions

 ROSFragment (const uint32_t *it)
virtual ~ROSFragment ()
virtual bool check () const
bool check_tree () const
uint32_t lvl1_id () const
uint32_t bc_id () const
 ROSFragment (const uint32_t *it)
virtual ~ROSFragment ()
virtual bool check () const
bool check_tree () const
uint32_t lvl1_id () const
uint32_t bc_id () const
 ROSFragment (const uint32_t *it)
virtual ~ROSFragment ()
virtual bool check () const
bool check_tree () const
uint32_t lvl1_id () const
uint32_t bc_id () 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 a subdetector fragment, as prescribed by the event format note.

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

Constructor & Destructor Documentation

◆ ROSFragment() [1/3]

eformat::old::ROSFragment::ROSFragment ( 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 ROSFragment24.cxx.

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

◆ ~ROSFragment() [1/3]

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

Destructor virtualisation

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

41{}

◆ ROSFragment() [2/3]

eformat::old::ROSFragment::ROSFragment ( 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.

◆ ~ROSFragment() [2/3]

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

Destructor virtualisation

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

41{}

◆ ROSFragment() [3/3]

eformat::old::ROSFragment::ROSFragment ( 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.

◆ ~ROSFragment() [3/3]

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

Destructor virtualisation

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

41{}

Member Function Documentation

◆ bc_id() [1/3]

uint32_t eformat::old::ROSFragment::bc_id ( ) const
inline

Returns the bunch crossing identifier

Definition at line 61 of file Event/eformat/include/eformat/old/ROSFragment.h.

61{ return m_start[1]; }

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

◆ bc_id() [2/3]

uint32_t eformat::old::ROSFragment::bc_id ( ) const
inline

Returns the bunch crossing identifier

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

61{ return m_start[1]; }

◆ bc_id() [3/3]

uint32_t eformat::old::ROSFragment::bc_id ( ) const
inline

Returns the bunch crossing identifier

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

61{ return m_start[1]; }

◆ check() [1/3]

bool eformat::old::ROSFragment::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 ROSFragment24.cxx.

21 {
22 eformat::old::Header::check(); //< first do a generic check
23 if ( nspecific() != 2 ) { throw EFORMAT_SIZE_CHECK( 2, nspecific() ); }
24 return true;
25}
#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::ROSFragment::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::ROSFragment::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::ROSFragment::check_tree ( ) const

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

Definition at line 27 of file ROSFragment24.cxx.

27 {
28 check(); // check myself
29 for ( size_t i = 0; i < noffset(); ++i )
30 {
31 eformat::old::ROBFragment rob( child( i ) );
32 rob.check_tree();
33 }
34 return true;
35}
const uint32_t * child(size_t n) const
Definition Header24.cxx:36
virtual bool check() const

Referenced by eformat::old::SubDetectorFragment::check_tree(), convert_ros(), and main().

◆ check_tree() [2/3]

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

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

◆ check_tree() [3/3]

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

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

◆ lvl1_id() [1/3]

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

Returns the lvl1 identifier

Definition at line 56 of file Event/eformat/include/eformat/old/ROSFragment.h.

56{ return m_start[0]; }

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

◆ lvl1_id() [2/3]

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

Returns the lvl1 identifier

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

56{ return m_start[0]; }

◆ lvl1_id() [3/3]

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

Returns the lvl1 identifier

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

56{ return m_start[0]; }

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