BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
eformat::FullEventFragment< TPointer > Class Template Reference

#include <FullEventFragment.h>

Inheritance diagram for eformat::FullEventFragment< TPointer >:

Public Member Functions

 FullEventFragment (const TPointer &it)
 FullEventFragment ()
 FullEventFragment (const FullEventFragment &other)
virtual ~FullEventFragment ()
FullEventFragmentoperator= (const FullEventFragment &other)
FullEventFragmentassign (const TPointer &it)
virtual bool check () const
bool check_tree () const
uint32_t time () const
uint32_t global_id () const
uint32_t run_no () const
uint32_t lvl1_id () const
uint32_t lvl1_trigger_type () const
uint32_t lvl2_trigger_info () const
uint32_t nevent_filter_info () const
void event_filter_info (TPointer &it) const
 FullEventFragment (const TPointer &it)
 FullEventFragment ()
 FullEventFragment (const FullEventFragment &other)
virtual ~FullEventFragment ()
FullEventFragmentoperator= (const FullEventFragment &other)
FullEventFragmentassign (const TPointer &it)
virtual bool check () const
bool check_tree () const
uint32_t time () const
uint32_t global_id () const
uint32_t run_no () const
uint32_t lvl1_id () const
uint32_t lvl1_trigger_type () const
uint32_t lvl2_trigger_info () const
uint32_t nevent_filter_info () const
void event_filter_info (TPointer &it) const
 FullEventFragment (const TPointer &it)
 FullEventFragment ()
 FullEventFragment (const FullEventFragment &other)
virtual ~FullEventFragment ()
FullEventFragmentoperator= (const FullEventFragment &other)
FullEventFragmentassign (const TPointer &it)
virtual bool check () const
bool check_tree () const
uint32_t time () const
uint32_t global_id () const
uint32_t run_no () const
uint32_t lvl1_id () const
uint32_t lvl1_trigger_type () const
uint32_t lvl2_trigger_info () const
uint32_t nevent_filter_info () const
void event_filter_info (TPointer &it) const
Public Member Functions inherited from eformat::Header< TPointer >
 Header (const TPointer &it, uint32_t match)
 Header ()
 Header (const Header &other)
virtual ~Header ()
Headeroperator= (const Header &other)
Headerassign (const TPointer &it, uint32_t match)
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 nstatus () const
void start (TPointer &it) const
void payload (TPointer &it) const
void end (TPointer &it) const
uint32_t payload_size_word (void) const
void status (TPointer &it) const
uint32_t nspecific () const
void specific_header (TPointer &it) const
virtual uint32_t nchildren () const
virtual void child (TPointer &p, size_t n) const
virtual void child_check (TPointer &p, size_t n) const
virtual uint32_t children (TPointer *p, size_t max) const
 Header (const TPointer &it, uint32_t match)
 Header ()
 Header (const Header &other)
virtual ~Header ()
Headeroperator= (const Header &other)
Headerassign (const TPointer &it, uint32_t match)
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 nstatus () const
void start (TPointer &it) const
void payload (TPointer &it) const
void end (TPointer &it) const
uint32_t payload_size_word (void) const
void status (TPointer &it) const
uint32_t nspecific () const
void specific_header (TPointer &it) const
virtual uint32_t nchildren () const
virtual void child (TPointer &p, size_t n) const
virtual void child_check (TPointer &p, size_t n) const
virtual uint32_t children (TPointer *p, size_t max) const
 Header (const TPointer &it, uint32_t match)
 Header ()
 Header (const Header &other)
virtual ~Header ()
Headeroperator= (const Header &other)
Headerassign (const TPointer &it, uint32_t match)
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 nstatus () const
void start (TPointer &it) const
void payload (TPointer &it) const
void end (TPointer &it) const
uint32_t payload_size_word (void) const
void status (TPointer &it) const
uint32_t nspecific () const
void specific_header (TPointer &it) const
virtual uint32_t nchildren () const
virtual void child (TPointer &p, size_t n) const
virtual void child_check (TPointer &p, size_t n) const
virtual uint32_t children (TPointer *p, size_t max) const

Detailed Description

template<class TPointer>
class eformat::FullEventFragment< TPointer >

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

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

Constructor & Destructor Documentation

◆ FullEventFragment() [1/9]

template<class TPointer>
eformat::FullEventFragment< TPointer >::FullEventFragment ( const TPointer & 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 140 of file Event/eformat/include/eformat/FullEventFragment.h.

◆ FullEventFragment() [2/9]

template<class TPointer>
eformat::FullEventFragment< TPointer >::FullEventFragment ( )
inline

Builds an empty, otherwise useless FullEventFragment

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

◆ FullEventFragment() [3/9]

template<class TPointer>
eformat::FullEventFragment< TPointer >::FullEventFragment ( const FullEventFragment< TPointer > & other)
inline

Copy constructor

Parameters
otherThe fragment to be copied

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

50 : Header<TPointer>( other ), m_start( other.m_start ) {}

◆ ~FullEventFragment() [1/3]

template<class TPointer>
virtual eformat::FullEventFragment< TPointer >::~FullEventFragment ( )
inlinevirtual

Destructor virtualisation

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

55{}

◆ FullEventFragment() [4/9]

template<class TPointer>
eformat::FullEventFragment< TPointer >::FullEventFragment ( const TPointer & 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() [5/9]

template<class TPointer>
eformat::FullEventFragment< TPointer >::FullEventFragment ( )
inline

Builds an empty, otherwise useless FullEventFragment

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

42: Header<TPointer>(), m_start() {}

◆ FullEventFragment() [6/9]

template<class TPointer>
eformat::FullEventFragment< TPointer >::FullEventFragment ( const FullEventFragment< TPointer > & other)
inline

Copy constructor

Parameters
otherThe fragment to be copied

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

50 : Header<TPointer>( other ), m_start( other.m_start ) {}

◆ ~FullEventFragment() [2/3]

template<class TPointer>
virtual eformat::FullEventFragment< TPointer >::~FullEventFragment ( )
inlinevirtual

Destructor virtualisation

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

55{}

◆ FullEventFragment() [7/9]

template<class TPointer>
eformat::FullEventFragment< TPointer >::FullEventFragment ( const TPointer & 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() [8/9]

template<class TPointer>
eformat::FullEventFragment< TPointer >::FullEventFragment ( )
inline

Builds an empty, otherwise useless FullEventFragment

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

42: Header<TPointer>(), m_start() {}

◆ FullEventFragment() [9/9]

template<class TPointer>
eformat::FullEventFragment< TPointer >::FullEventFragment ( const FullEventFragment< TPointer > & other)
inline

Copy constructor

Parameters
otherThe fragment to be copied

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

50 : Header<TPointer>( other ), m_start( other.m_start ) {}

◆ ~FullEventFragment() [3/3]

template<class TPointer>
virtual eformat::FullEventFragment< TPointer >::~FullEventFragment ( )
inlinevirtual

Destructor virtualisation

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

55{}

Member Function Documentation

◆ assign() [1/3]

template<class TPointer>
eformat::FullEventFragment< TPointer > & eformat::FullEventFragment< TPointer >::assign ( const TPointer & it)

Manual re-assignment

Parameters
itThe position pointing the first word of this fragment

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

147 {
148 ERS_DEBUG_3( "Re-building FullEventFragment from pointer" );
151 ERS_DEBUG_1( "Initialized header with source identifier = %s",
153 return *this;
154}
#define ERS_DEBUG_1(...)
#define ERS_DEBUG_3(...)
Header & assign(const TPointer &it, uint32_t match)

◆ assign() [2/3]

template<class TPointer>
FullEventFragment & eformat::FullEventFragment< TPointer >::assign ( const TPointer & it)

Manual re-assignment

Parameters
itThe position pointing the first word of this fragment

◆ assign() [3/3]

template<class TPointer>
FullEventFragment & eformat::FullEventFragment< TPointer >::assign ( const TPointer & it)

Manual re-assignment

Parameters
itThe position pointing the first word of this fragment

◆ check() [1/3]

template<class TPointer>
bool eformat::FullEventFragment< TPointer >::check ( ) const
virtual

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

Reimplemented from eformat::Header< TPointer >.

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

162 {
163 ERS_DEBUG_2( "Checking for consistency of FullEventFragment" );
164 eformat::Header<TPointer>::check(); //< first do a generic check
165 if ( this->nspecific() != NSPECIFIC )
166 { throw EFORMAT_SIZE_CHECK( NSPECIFIC, this->nspecific() ); }
167 return true;
168}
#define EFORMAT_SIZE_CHECK(actual, informed)
#define ERS_DEBUG_2(...)

Referenced by check_tree().

◆ check() [2/3]

template<class TPointer>
virtual bool eformat::FullEventFragment< TPointer >::check ( ) const
virtual

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

Reimplemented from eformat::Header< TPointer >.

◆ check() [3/3]

template<class TPointer>
virtual bool eformat::FullEventFragment< TPointer >::check ( ) const
virtual

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

Reimplemented from eformat::Header< TPointer >.

◆ check_tree() [1/3]

template<class TPointer>
bool eformat::FullEventFragment< TPointer >::check_tree ( ) const

Says if the Fragment and all children are valid.

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

170 {
171 ERS_DEBUG_2( "Checking recursively for consistency of FullEventFragment" );
172 check(); // check myself
173 uint32_t total = this->nchildren();
174 for ( size_t i = 0; i < total; ++i )
175 {
176 TPointer fp;
179 f.check_tree();
180 }
181 return true;
182}
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")
virtual void child(TPointer &p, size_t n) const

Referenced by EFEventLoopMgr::executeEvent(), main(), main(), and RawDataOutputSvc::putEvent().

◆ check_tree() [2/3]

template<class TPointer>
bool eformat::FullEventFragment< TPointer >::check_tree ( ) const

Says if the Fragment and all children are valid.

◆ check_tree() [3/3]

template<class TPointer>
bool eformat::FullEventFragment< TPointer >::check_tree ( ) const

Says if the Fragment and all children are valid.

◆ event_filter_info() [1/3]

template<class TPointer>
void eformat::FullEventFragment< TPointer >::event_filter_info ( TPointer & it) const

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

Parameters
itAn updateable iterator you should provide.

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

157 {
158 it = m_start;
159 it += 6;
160}

◆ event_filter_info() [2/3]

template<class TPointer>
void eformat::FullEventFragment< TPointer >::event_filter_info ( TPointer & it) const

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

Parameters
itAn updateable iterator you should provide.

◆ event_filter_info() [3/3]

template<class TPointer>
void eformat::FullEventFragment< TPointer >::event_filter_info ( TPointer & it) const

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

Parameters
itAn updateable iterator you should provide.

◆ global_id() [1/3]

template<class TPointer>
uint32_t eformat::FullEventFragment< TPointer >::global_id ( ) const
inline

Returns the global identifier

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

94{ return m_start[1]; }

Referenced by EFEventLoopMgr::executeEvent().

◆ global_id() [2/3]

template<class TPointer>
uint32_t eformat::FullEventFragment< TPointer >::global_id ( ) const
inline

Returns the global identifier

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

94{ return m_start[1]; }

◆ global_id() [3/3]

template<class TPointer>
uint32_t eformat::FullEventFragment< TPointer >::global_id ( ) const
inline

Returns the global identifier

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

94{ return m_start[1]; }

◆ lvl1_id() [1/3]

template<class TPointer>
uint32_t eformat::FullEventFragment< TPointer >::lvl1_id ( ) const
inline

Returns the lvl1 identifier

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

104{ return m_start[3]; }

Referenced by main().

◆ lvl1_id() [2/3]

template<class TPointer>
uint32_t eformat::FullEventFragment< TPointer >::lvl1_id ( ) const
inline

Returns the lvl1 identifier

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

104{ return m_start[3]; }

◆ lvl1_id() [3/3]

template<class TPointer>
uint32_t eformat::FullEventFragment< TPointer >::lvl1_id ( ) const
inline

Returns the lvl1 identifier

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

104{ return m_start[3]; }

◆ lvl1_trigger_type() [1/3]

template<class TPointer>
uint32_t eformat::FullEventFragment< TPointer >::lvl1_trigger_type ( ) const
inline

Retursn the lvl1 trigger type

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

109{ return m_start[4]; }

◆ lvl1_trigger_type() [2/3]

template<class TPointer>
uint32_t eformat::FullEventFragment< TPointer >::lvl1_trigger_type ( ) const
inline

Retursn the lvl1 trigger type

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

109{ return m_start[4]; }

◆ lvl1_trigger_type() [3/3]

template<class TPointer>
uint32_t eformat::FullEventFragment< TPointer >::lvl1_trigger_type ( ) const
inline

Retursn the lvl1 trigger type

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

109{ return m_start[4]; }

◆ lvl2_trigger_info() [1/3]

template<class TPointer>
uint32_t eformat::FullEventFragment< TPointer >::lvl2_trigger_info ( ) const
inline

Returns the lvl2 trigger info

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

114{ return m_start[5]; }

◆ lvl2_trigger_info() [2/3]

template<class TPointer>
uint32_t eformat::FullEventFragment< TPointer >::lvl2_trigger_info ( ) const
inline

Returns the lvl2 trigger info

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

114{ return m_start[5]; }

◆ lvl2_trigger_info() [3/3]

template<class TPointer>
uint32_t eformat::FullEventFragment< TPointer >::lvl2_trigger_info ( ) const
inline

Returns the lvl2 trigger info

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

114{ return m_start[5]; }

◆ nevent_filter_info() [1/3]

template<class TPointer>
uint32_t eformat::FullEventFragment< TPointer >::nevent_filter_info ( ) const
inline

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

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

119{ return 4; }

◆ nevent_filter_info() [2/3]

template<class TPointer>
uint32_t eformat::FullEventFragment< TPointer >::nevent_filter_info ( ) const
inline

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

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

119{ return 4; }

◆ nevent_filter_info() [3/3]

template<class TPointer>
uint32_t eformat::FullEventFragment< TPointer >::nevent_filter_info ( ) const
inline

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

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

119{ return 4; }

◆ operator=() [1/3]

template<class TPointer>
FullEventFragment & eformat::FullEventFragment< TPointer >::operator= ( const FullEventFragment< TPointer > & other)
inline

Copy operator

Parameters
otherThe fragment to be copied

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

62 {
64 m_start = other.m_start;
65 return *this;
66 }
Header & operator=(const Header &other)

◆ operator=() [2/3]

template<class TPointer>
FullEventFragment & eformat::FullEventFragment< TPointer >::operator= ( const FullEventFragment< TPointer > & other)
inline

Copy operator

Parameters
otherThe fragment to be copied

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

62 {
64 m_start = other.m_start;
65 return *this;
66 }

◆ operator=() [3/3]

template<class TPointer>
FullEventFragment & eformat::FullEventFragment< TPointer >::operator= ( const FullEventFragment< TPointer > & other)
inline

Copy operator

Parameters
otherThe fragment to be copied

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

62 {
64 m_start = other.m_start;
65 return *this;
66 }

◆ run_no() [1/3]

template<class TPointer>
uint32_t eformat::FullEventFragment< TPointer >::run_no ( ) const
inline

Returns the run number

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

99{ return m_start[2]; }

Referenced by EFEventLoopMgr::executeEvent().

◆ run_no() [2/3]

template<class TPointer>
uint32_t eformat::FullEventFragment< TPointer >::run_no ( ) const
inline

Returns the run number

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

99{ return m_start[2]; }

◆ run_no() [3/3]

template<class TPointer>
uint32_t eformat::FullEventFragment< TPointer >::run_no ( ) const
inline

Returns the run number

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

99{ return m_start[2]; }

◆ time() [1/3]

template<class TPointer>
uint32_t eformat::FullEventFragment< TPointer >::time ( ) const
inline

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

  1. The timezone is fixed to UTC.

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

89{ return m_start[0]; }

Referenced by EFEventLoopMgr::executeEvent().

◆ time() [2/3]

template<class TPointer>
uint32_t eformat::FullEventFragment< TPointer >::time ( ) const
inline

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

  1. The timezone is fixed to UTC.

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

89{ return m_start[0]; }

◆ time() [3/3]

template<class TPointer>
uint32_t eformat::FullEventFragment< TPointer >::time ( ) const
inline

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

  1. The timezone is fixed to UTC.

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

89{ return m_start[0]; }

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