BOSS 7.0.5
BESIII Offline Software System
|
#include <FullEventFragment.h>
Public Member Functions | |
FullEventFragment (uint32_t source_id, uint32_t global_id, uint32_t run_no, uint32_t lvl1_id, uint32_t lvl1_type, uint32_t lvl2_info, const uint32_t *ef_info) | |
FullEventFragment (uint32_t source_id, uint32_t use_time, uint32_t global_id, uint32_t run_no, uint32_t lvl1_id, uint32_t lvl1_type, uint32_t lvl2_info, const uint32_t *ef_info) | |
FullEventFragment (uint32_t *fe) | |
FullEventFragment (eformat::write::node_t *fe) | |
FullEventFragment () | |
FullEventFragment (const FullEventFragment &other) | |
virtual | ~FullEventFragment () |
FullEventFragment & | operator= (const FullEventFragment &other) |
void | status (uint32_t n, const uint32_t *status) |
uint32_t | nstatus (void) const |
const uint32_t * | status (void) const |
void | minor_version (uint16_t v) |
uint16_t | minor_version (void) const |
void | source_id (uint32_t s) |
uint32_t | source_id (void) const |
void | time (uint32_t s) |
uint32_t | time (void) const |
void | global_id (uint32_t s) |
uint32_t | global_id (void) const |
void | run_no (uint32_t s) |
uint32_t | run_no (void) const |
void | lvl1_id (uint32_t s) |
uint32_t | lvl1_id (void) const |
void | lvl1_trigger_type (uint32_t s) |
uint32_t | lvl1_trigger_type (void) const |
void | lvl2_trigger_info (uint32_t s) |
uint32_t | lvl2_trigger_info (void) const |
void | event_filter_info (const uint32_t *s) |
const uint32_t * | event_filter_info (void) const |
uint32_t | meta_size_word (void) const |
uint32_t | size_word (void) const |
void | append (eformat::write::SubDetectorFragment *sd) |
const SubDetectorFragment * | first_child (void) const |
void | size_change (uint32_t o, uint32_t n) |
uint32_t | page_count (void) const |
const eformat::write::node_t * | bind (void) |
const eformat::write::node_t * | rebind (void) |
FullEventFragment (uint32_t source_id, uint32_t global_id, uint32_t run_no, uint32_t lvl1_id, uint32_t lvl1_type, uint32_t lvl2_info, const uint32_t *ef_info) | |
FullEventFragment (uint32_t source_id, uint32_t use_time, uint32_t global_id, uint32_t run_no, uint32_t lvl1_id, uint32_t lvl1_type, uint32_t lvl2_info, const uint32_t *ef_info) | |
FullEventFragment (uint32_t *fe) | |
FullEventFragment (eformat::write::node_t *fe) | |
FullEventFragment () | |
FullEventFragment (const FullEventFragment &other) | |
virtual | ~FullEventFragment () |
FullEventFragment & | operator= (const FullEventFragment &other) |
void | status (uint32_t n, const uint32_t *status) |
uint32_t | nstatus (void) const |
const uint32_t * | status (void) const |
void | minor_version (uint16_t v) |
uint16_t | minor_version (void) const |
void | source_id (uint32_t s) |
uint32_t | source_id (void) const |
void | time (uint32_t s) |
uint32_t | time (void) const |
void | global_id (uint32_t s) |
uint32_t | global_id (void) const |
void | run_no (uint32_t s) |
uint32_t | run_no (void) const |
void | lvl1_id (uint32_t s) |
uint32_t | lvl1_id (void) const |
void | lvl1_trigger_type (uint32_t s) |
uint32_t | lvl1_trigger_type (void) const |
void | lvl2_trigger_info (uint32_t s) |
uint32_t | lvl2_trigger_info (void) const |
void | event_filter_info (const uint32_t *s) |
const uint32_t * | event_filter_info (void) const |
uint32_t | meta_size_word (void) const |
uint32_t | size_word (void) const |
void | append (eformat::write::SubDetectorFragment *sd) |
const SubDetectorFragment * | first_child (void) const |
void | size_change (uint32_t o, uint32_t n) |
uint32_t | page_count (void) const |
const eformat::write::node_t * | bind (void) |
const eformat::write::node_t * | rebind (void) |
Defines a helper class to aid the creation of FullEvent fragments.
Definition at line 26 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
eformat::write::FullEventFragment::FullEventFragment | ( | uint32_t | source_id, |
uint32_t | global_id, | ||
uint32_t | run_no, | ||
uint32_t | lvl1_id, | ||
uint32_t | lvl1_type, | ||
uint32_t | lvl2_info, | ||
const uint32_t * | ef_info | ||
) |
Builds a new FullEvent fragment from scratch, using the current time as the time label.
source_id | The source identifier to be using for this FullEvent |
global_id | The global identifier for this fragment |
run_no | The run number for this fragment |
lvl1_id | The LVL1 trigger identifier for this fragment |
lvl1_type | The LVL1 trigger type for this fragment |
lvl2_info | The LVL2 trigger info for this fragment @parma ef_info The Event Filter info for this fragment: a pointer to 4 pre-allocated words. |
Definition at line 54 of file FullEventFragment.cxx.
eformat::write::FullEventFragment::FullEventFragment | ( | uint32_t | source_id, |
uint32_t | use_time, | ||
uint32_t | global_id, | ||
uint32_t | run_no, | ||
uint32_t | lvl1_id, | ||
uint32_t | lvl1_type, | ||
uint32_t | lvl2_info, | ||
const uint32_t * | ef_info | ||
) |
Builds a new FullEvent fragment from scratch
source_id | The source identifier to be using for this FullEvent |
use_time | The creation time in seconds since 1/1/1970 00:00 UTC for this fragment |
global_id | The global identifier for this fragment |
run_no | The run number for this fragment |
lvl1_id | The LVL1 trigger identifier for this fragment |
lvl1_type | The LVL1 trigger type for this fragment |
lvl2_info | The LVL2 trigger info for this fragment @parma ef_info The Event Filter info for this fragment: a pointer to 4 pre-allocated words. |
Definition at line 20 of file FullEventFragment.cxx.
eformat::write::FullEventFragment::FullEventFragment | ( | uint32_t * | fe | ) |
Builds a new FullEvent fragment from an existing FullEvent fragment in contiguous memory.
fe | The existing FullEvent fragment |
Definition at line 87 of file FullEventFragment.cxx.
eformat::write::FullEventFragment::FullEventFragment | ( | eformat::write::node_t * | fe | ) |
Builds a new FullEvent fragment from an existing FullEvent fragment in non-contiguous memory. The top-level fragment header is expected to be on a contiguous area of memory, together with the first word of the first child fragment (i.e. the ROS header marker). The following data can be spread around.
fe | The existing FullEvent fragment, as a list of nodes, pre-concatenated by the caller. |
Definition at line 103 of file FullEventFragment.cxx.
eformat::write::FullEventFragment::FullEventFragment | ( | ) |
Builds a new empty FullEventFragment, otherwise invalid. This is useful for array builds and standard containers.
Definition at line 121 of file FullEventFragment.cxx.
eformat::write::FullEventFragment::FullEventFragment | ( | const FullEventFragment & | other | ) |
Copy constructor. This will only copy the meta data, not the fragment relationships and block-data (children and status block) contained in the to-be-copied fragment. If you wish this fragment has the same children of the copied fragment, you have to do this operation manually, after copying. If you wish to make a copy of the status as well, do it manually and then assign it to this fragment using the status() method.
other | The other fragment to take the meta data from. |
Definition at line 154 of file FullEventFragment.cxx.
|
inlinevirtual |
Base destructor
Definition at line 111 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
eformat::write::FullEventFragment::FullEventFragment | ( | uint32_t | source_id, |
uint32_t | global_id, | ||
uint32_t | run_no, | ||
uint32_t | lvl1_id, | ||
uint32_t | lvl1_type, | ||
uint32_t | lvl2_info, | ||
const uint32_t * | ef_info | ||
) |
Builds a new FullEvent fragment from scratch, using the current time as the time label.
source_id | The source identifier to be using for this FullEvent |
global_id | The global identifier for this fragment |
run_no | The run number for this fragment |
lvl1_id | The LVL1 trigger identifier for this fragment |
lvl1_type | The LVL1 trigger type for this fragment |
lvl2_info | The LVL2 trigger info for this fragment @parma ef_info The Event Filter info for this fragment: a pointer to 4 pre-allocated words. |
eformat::write::FullEventFragment::FullEventFragment | ( | uint32_t | source_id, |
uint32_t | use_time, | ||
uint32_t | global_id, | ||
uint32_t | run_no, | ||
uint32_t | lvl1_id, | ||
uint32_t | lvl1_type, | ||
uint32_t | lvl2_info, | ||
const uint32_t * | ef_info | ||
) |
Builds a new FullEvent fragment from scratch
source_id | The source identifier to be using for this FullEvent |
use_time | The creation time in seconds since 1/1/1970 00:00 UTC for this fragment |
global_id | The global identifier for this fragment |
run_no | The run number for this fragment |
lvl1_id | The LVL1 trigger identifier for this fragment |
lvl1_type | The LVL1 trigger type for this fragment |
lvl2_info | The LVL2 trigger info for this fragment @parma ef_info The Event Filter info for this fragment: a pointer to 4 pre-allocated words. |
eformat::write::FullEventFragment::FullEventFragment | ( | uint32_t * | fe | ) |
Builds a new FullEvent fragment from an existing FullEvent fragment in contiguous memory.
fe | The existing FullEvent fragment |
eformat::write::FullEventFragment::FullEventFragment | ( | eformat::write::node_t * | fe | ) |
Builds a new FullEvent fragment from an existing FullEvent fragment in non-contiguous memory. The top-level fragment header is expected to be on a contiguous area of memory, together with the first word of the first child fragment (i.e. the ROS header marker). The following data can be spread around.
fe | The existing FullEvent fragment, as a list of nodes, pre-concatenated by the caller. |
eformat::write::FullEventFragment::FullEventFragment | ( | ) |
Builds a new empty FullEventFragment, otherwise invalid. This is useful for array builds and standard containers.
eformat::write::FullEventFragment::FullEventFragment | ( | const FullEventFragment & | other | ) |
Copy constructor. This will only copy the meta data, not the fragment relationships and block-data (children and status block) contained in the to-be-copied fragment. If you wish this fragment has the same children of the copied fragment, you have to do this operation manually, after copying. If you wish to make a copy of the status as well, do it manually and then assign it to this fragment using the status() method.
other | The other fragment to take the meta data from. |
|
inlinevirtual |
Base destructor
Definition at line 111 of file InstallArea/include/eformat/eformat/write/FullEventFragment.h.
void eformat::write::FullEventFragment::append | ( | eformat::write::SubDetectorFragment * | sd | ) |
Appends a new SubDetector fragment to this FullEvent fragment.
sd | The SubDetector fragment to be appended to myself |
Definition at line 200 of file FullEventFragment.cxx.
Referenced by Builder::append2event(), eformat::old::convert(), and main().
void eformat::write::FullEventFragment::append | ( | eformat::write::SubDetectorFragment * | sd | ) |
Appends a new SubDetector fragment to this FullEvent fragment.
sd | The SubDetector fragment to be appended to myself |
const eformat::write::node_t * eformat::write::FullEventFragment::bind | ( | void | ) |
Returns the first node of a list of nodes that represent the fragment you have constructed. To make use of it, just browse the list as defined in node.h
Definition at line 224 of file FullEventFragment.cxx.
Referenced by eformat::old::convert(), main(), and RawDataOutputSvc::putEvent().
const eformat::write::node_t * eformat::write::FullEventFragment::bind | ( | void | ) |
Returns the first node of a list of nodes that represent the fragment you have constructed. To make use of it, just browse the list as defined in node.h
|
inline |
Changes the event filter trigger info in this fragment
s | The new value to set: a pointer with 4 word pre-allocated |
Definition at line 263 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
Referenced by HltBuilder::pack().
|
inline |
Changes the event filter trigger info in this fragment
s | The new value to set: a pointer with 4 word pre-allocated |
Definition at line 263 of file InstallArea/include/eformat/eformat/write/FullEventFragment.h.
|
inline |
Returns the event filter trigger info for this fragment
Definition at line 269 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
|
inline |
Returns the event filter trigger info for this fragment
Definition at line 269 of file InstallArea/include/eformat/eformat/write/FullEventFragment.h.
|
inline |
This returns the first child of this fragment. The system operates as a concatenated list of fragments. From this child you can get to the next.
Definition at line 306 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
Referenced by PackedRawDataCnvSvc::commitOutput().
|
inline |
This returns the first child of this fragment. The system operates as a concatenated list of fragments. From this child you can get to the next.
Definition at line 306 of file InstallArea/include/eformat/eformat/write/FullEventFragment.h.
|
inline |
Changes the global identifier for this event
s | The new value to set |
Definition at line 193 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
|
inline |
Changes the global identifier for this event
s | The new value to set |
Definition at line 193 of file InstallArea/include/eformat/eformat/write/FullEventFragment.h.
|
inline |
Returns the global identifier for this event
Definition at line 199 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
Referenced by FullEventFragment().
|
inline |
Returns the global identifier for this event
Definition at line 199 of file InstallArea/include/eformat/eformat/write/FullEventFragment.h.
|
inline |
Changes the lvl1 identifier in this fragment
s | The new value to set |
Definition at line 221 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
Referenced by Builder::append2event().
|
inline |
Changes the lvl1 identifier in this fragment
s | The new value to set |
Definition at line 221 of file InstallArea/include/eformat/eformat/write/FullEventFragment.h.
|
inline |
Returns the lvl1 identifier for this fragment
Definition at line 227 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
Referenced by FullEventFragment(), and operator=().
|
inline |
Returns the lvl1 identifier for this fragment
Definition at line 227 of file InstallArea/include/eformat/eformat/write/FullEventFragment.h.
|
inline |
Changes the lvl1 trigger type in this fragment
s | The new value to set |
Definition at line 235 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
|
inline |
Changes the lvl1 trigger type in this fragment
s | The new value to set |
Definition at line 235 of file InstallArea/include/eformat/eformat/write/FullEventFragment.h.
|
inline |
Returns the lvl1 trigger type for this fragment
Definition at line 241 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
|
inline |
Returns the lvl1 trigger type for this fragment
Definition at line 241 of file InstallArea/include/eformat/eformat/write/FullEventFragment.h.
|
inline |
Changes the lvl2 trigger info in this fragment
s | The new value to set |
Definition at line 249 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
|
inline |
Changes the lvl2 trigger info in this fragment
s | The new value to set |
Definition at line 249 of file InstallArea/include/eformat/eformat/write/FullEventFragment.h.
|
inline |
Returns the lvl2 trigger info for this fragment
Definition at line 255 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
|
inline |
Returns the lvl2 trigger info for this fragment
Definition at line 255 of file InstallArea/include/eformat/eformat/write/FullEventFragment.h.
|
inline |
Returns the total size for the meta data (everything that does not encompass the contents of the m_data pointer in the private representation of this class) in the fragment, in words
Definition at line 277 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
|
inline |
Returns the total size for the meta data (everything that does not encompass the contents of the m_data pointer in the private representation of this class) in the fragment, in words
Definition at line 277 of file InstallArea/include/eformat/eformat/write/FullEventFragment.h.
|
inline |
Changes the minor version number of the fragment
v | The new minor version for this header |
Definition at line 151 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
Referenced by eformat::old::convert().
|
inline |
Changes the minor version number of the fragment
v | The new minor version for this header |
Definition at line 151 of file InstallArea/include/eformat/eformat/write/FullEventFragment.h.
|
inline |
Returns the minor version number of the fragment
Definition at line 157 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
|
inline |
Returns the minor version number of the fragment
Definition at line 157 of file InstallArea/include/eformat/eformat/write/FullEventFragment.h.
|
inline |
Returns the number of status wors in this fragment
Definition at line 139 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
|
inline |
Returns the number of status wors in this fragment
Definition at line 139 of file InstallArea/include/eformat/eformat/write/FullEventFragment.h.
eformat::write::FullEventFragment & eformat::write::FullEventFragment::operator= | ( | const FullEventFragment & | other | ) |
Assigment operator. This will only copy the meta data, not the fragment relationships and block-data (children and parent and status block) contained in the to-be-copied fragment. If you wish this fragment has the same parents, and children of the copied fragment, you have to do this operation manually, after copying. If you wish to make a copy of the status as well, do it manually and then assign it to this fragment using the status() method.
other | The other fragment to take the meta data from. |
Definition at line 168 of file FullEventFragment.cxx.
FullEventFragment & eformat::write::FullEventFragment::operator= | ( | const FullEventFragment & | other | ) |
Assigment operator. This will only copy the meta data, not the fragment relationships and block-data (children and parent and status block) contained in the to-be-copied fragment. If you wish this fragment has the same parents, and children of the copied fragment, you have to do this operation manually, after copying. If you wish to make a copy of the status as well, do it manually and then assign it to this fragment using the status() method.
other | The other fragment to take the meta data from. |
uint32_t eformat::write::FullEventFragment::page_count | ( | void | ) | const |
Returns the total number of (raw memory) pages this fragment is composed of.
Definition at line 215 of file FullEventFragment.cxx.
uint32_t eformat::write::FullEventFragment::page_count | ( | void | ) | const |
Returns the total number of (raw memory) pages this fragment is composed of.
|
inline |
Definition at line 337 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
|
inline |
Definition at line 337 of file InstallArea/include/eformat/eformat/write/FullEventFragment.h.
|
inline |
Changes the run number
s | The new value to set |
Definition at line 207 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
Referenced by Builder::append2event().
|
inline |
Changes the run number
s | The new value to set |
Definition at line 207 of file InstallArea/include/eformat/eformat/write/FullEventFragment.h.
|
inline |
Returns the run number for this fragment
Definition at line 213 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
Referenced by FullEventFragment(), and operator=().
|
inline |
Returns the run number for this fragment
Definition at line 213 of file InstallArea/include/eformat/eformat/write/FullEventFragment.h.
|
inline |
This method is used by children of this fragment to notify fragment size changes.
o | The old size, in 32-bit words |
n | The new size, in 32-bit words |
Definition at line 316 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
|
inline |
This method is used by children of this fragment to notify fragment size changes.
o | The old size, in 32-bit words |
n | The new size, in 32-bit words |
Definition at line 316 of file InstallArea/include/eformat/eformat/write/FullEventFragment.h.
|
inline |
Returns the total size for this fragment, in words
Definition at line 283 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
Referenced by PackedRawDataCnvSvc::commitOutput().
|
inline |
Returns the total size for this fragment, in words
Definition at line 283 of file InstallArea/include/eformat/eformat/write/FullEventFragment.h.
|
inline |
Changes the source identifier for this fragment
s | The new value to set |
Definition at line 165 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
|
inline |
Changes the source identifier for this fragment
s | The new value to set |
Definition at line 165 of file InstallArea/include/eformat/eformat/write/FullEventFragment.h.
|
inline |
Returns the source identifier of this fragment
Definition at line 171 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
Referenced by FullEventFragment(), and operator=().
|
inline |
Returns the source identifier of this fragment
Definition at line 171 of file InstallArea/include/eformat/eformat/write/FullEventFragment.h.
void eformat::write::FullEventFragment::status | ( | uint32_t | n, |
const uint32_t * | status | ||
) |
Changes the number of status words and the status words themselves from the fragment
n | How many status words the underlying FullEventFragment fragment supposed to have. |
status | A pointer to n pre-allocated words |
Definition at line 189 of file FullEventFragment.cxx.
Referenced by PackedRawDataCnvSvc::connectOutput(), and eformat::old::convert().
void eformat::write::FullEventFragment::status | ( | uint32_t | n, |
const uint32_t * | status | ||
) |
Changes the number of status words and the status words themselves from the fragment
n | How many status words the underlying FullEventFragment fragment supposed to have. |
status | A pointer to n pre-allocated words |
|
inline |
Returns a pointer to the first status word to be used by this fragment
Definition at line 144 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
|
inline |
Returns a pointer to the first status word to be used by this fragment
Definition at line 144 of file InstallArea/include/eformat/eformat/write/FullEventFragment.h.
|
inline |
Changes the time this fragment was produced at
s | The new value to set |
Definition at line 179 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
|
inline |
Changes the time this fragment was produced at
s | The new value to set |
Definition at line 179 of file InstallArea/include/eformat/eformat/write/FullEventFragment.h.
|
inline |
Returns the time for this fragment
Definition at line 185 of file Event/eformat/eformat-00-00-04/eformat/write/FullEventFragment.h.
|
inline |
Returns the time for this fragment
Definition at line 185 of file InstallArea/include/eformat/eformat/write/FullEventFragment.h.