BOSS 7.0.9
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) |
Defines a helper class to aid the creation of FullEvent fragments.
Definition at line 26 of file 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 |
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().
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().
|
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 write/FullEventFragment.h.
Referenced by HltBuilder::pack().
|
inline |
Returns the event filter trigger info for this fragment
Definition at line 269 of file 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 write/FullEventFragment.h.
Referenced by PackedRawDataCnvSvc::commitOutput().
|
inline |
Changes the global identifier for this event
s | The new value to set |
Definition at line 193 of file write/FullEventFragment.h.
|
inline |
Returns the global identifier for this event
Definition at line 199 of file write/FullEventFragment.h.
Referenced by FullEventFragment().
|
inline |
Changes the lvl1 identifier in this fragment
s | The new value to set |
Definition at line 221 of file write/FullEventFragment.h.
Referenced by Builder::append2event().
|
inline |
Returns the lvl1 identifier for this fragment
Definition at line 227 of file write/FullEventFragment.h.
Referenced by FullEventFragment(), and operator=().
|
inline |
Changes the lvl1 trigger type in this fragment
s | The new value to set |
Definition at line 235 of file write/FullEventFragment.h.
|
inline |
Returns the lvl1 trigger type for this fragment
Definition at line 241 of file write/FullEventFragment.h.
|
inline |
Changes the lvl2 trigger info in this fragment
s | The new value to set |
Definition at line 249 of file write/FullEventFragment.h.
|
inline |
Returns the lvl2 trigger info for this fragment
Definition at line 255 of file 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 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 write/FullEventFragment.h.
Referenced by eformat::old::convert().
|
inline |
Returns the minor version number of the fragment
Definition at line 157 of file write/FullEventFragment.h.
|
inline |
Returns the number of status wors in this fragment
Definition at line 139 of file 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.
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.
|
inline |
Definition at line 337 of file write/FullEventFragment.h.
|
inline |
Changes the run number
s | The new value to set |
Definition at line 207 of file write/FullEventFragment.h.
Referenced by Builder::append2event().
|
inline |
Returns the run number for this fragment
Definition at line 213 of file write/FullEventFragment.h.
Referenced by FullEventFragment(), and operator=().
|
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 write/FullEventFragment.h.
|
inline |
Returns the total size for this fragment, in words
Definition at line 283 of file write/FullEventFragment.h.
Referenced by PackedRawDataCnvSvc::commitOutput().
|
inline |
Changes the source identifier for this fragment
s | The new value to set |
Definition at line 165 of file write/FullEventFragment.h.
|
inline |
Returns the source identifier of this fragment
Definition at line 171 of file write/FullEventFragment.h.
Referenced by FullEventFragment(), and operator=().
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().
|
inline |
Returns a pointer to the first status word to be used by this fragment
Definition at line 144 of file write/FullEventFragment.h.
|
inline |
Changes the time this fragment was produced at
s | The new value to set |
Definition at line 179 of file write/FullEventFragment.h.
|
inline |