lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
Pds::Eb::EbEvent Class Reference

One event being built by EventBuilder: its contributions (a variable-length array that follows the object), the bit list of contributors still missing, accumulated damage and payload size. More...

#include <EbEvent.hh>

Inherits Pds::LinkedList< T >.

Public Member Functions

 EbEvent (uint64_t contract, EbEvent *after, const Pds::EbDgram *ctrb, unsigned immData, const time_point_t &t0)
 Start an event with the first contribution ctrb, remove its source bit from contract to form the remaining list, and insert the event into the list after after.
 
 ~EbEvent ()
 Does nothing; empty body.
 
unsigned immData () const
 Return the immediate data kept for this event (from the first contribution, replaced by a later contribution whose value is greater than MAX_ENTRIES).
 
uint64_t sequence () const
 Return the pulse ID of the first contribution.
 
size_t size () const
 Return the sum of the XTC payload sizes of all contributions, in bytes.
 
uint64_t remaining () const
 Return the bit list of contributors that have not yet contributed; 0 means complete.
 
uint64_t contract () const
 Return the bit list of contributors expected for this event.
 
XtcData::Damage damage () const
 Return the accumulated damage.
 
void damage (XtcData::Damage::Value)
 Increase the accumulated damage by value (XtcData::Damage::increase()).
 
const Pds::EbDgram *const creator () const
 Return the first contribution, which created the event.
 
const Pds::EbDgram *const * begin () const
 Return a pointer to the first element of the contributions array.
 
const Pds::EbDgram **const end () const
 Return a pointer one past the last contribution.
 
void dump (unsigned detail, int number)
 Print one line about the event (pulse ID, control, env, size, source, remaining and contract bits, age and latency) to stderr; with non-zero detail, also number and the list pointers.
 

Public Attributes

 PoolDeclare
 Macro from Pool.hh that declares an operator new allocating from a Pds::Pool and an operator delete that returns the buffer to its pool.
 

Friends

class EventBuilder
 

Detailed Description

One event being built by EventBuilder: its contributions (a variable-length array that follows the object), the bit list of contributors still missing, accumulated damage and payload size.

Allocated from a pool sized by EventBuilder.

Constructor & Destructor Documentation

◆ EbEvent()

Pds::Eb::EbEvent::EbEvent ( uint64_t  contract,
EbEvent *  after,
const Pds::EbDgram *  ctrb,
unsigned  immData,
const time_point_t &  t0 
)

Start an event with the first contribution ctrb, remove its source bit from contract to form the remaining list, and insert the event into the list after after.

Throws a C string if the source is not in contract.

◆ ~EbEvent()

Pds::Eb::EbEvent::~EbEvent ( )
inline

Does nothing; empty body.

Member Function Documentation

◆ begin()

const Pds::EbDgram *const * Pds::Eb::EbEvent::begin ( ) const
inline

Return a pointer to the first element of the contributions array.

◆ contract()

uint64_t Pds::Eb::EbEvent::contract ( ) const
inline

Return the bit list of contributors expected for this event.

◆ creator()

const Pds::EbDgram *const Pds::Eb::EbEvent::creator ( ) const
inline

Return the first contribution, which created the event.

◆ damage() [1/2]

XtcData::Damage Pds::Eb::EbEvent::damage ( ) const
inline

Return the accumulated damage.

◆ damage() [2/2]

void Pds::Eb::EbEvent::damage ( XtcData::Damage::Value  value)
inline

Increase the accumulated damage by value (XtcData::Damage::increase()).

◆ dump()

void Pds::Eb::EbEvent::dump ( unsigned  detail,
int  number 
)

Print one line about the event (pulse ID, control, env, size, source, remaining and contract bits, age and latency) to stderr; with non-zero detail, also number and the list pointers.

◆ end()

const Pds::EbDgram **const Pds::Eb::EbEvent::end ( ) const
inline

Return a pointer one past the last contribution.

◆ immData()

unsigned Pds::Eb::EbEvent::immData ( ) const
inline

Return the immediate data kept for this event (from the first contribution, replaced by a later contribution whose value is greater than MAX_ENTRIES).

◆ remaining()

uint64_t Pds::Eb::EbEvent::remaining ( ) const
inline

Return the bit list of contributors that have not yet contributed; 0 means complete.

◆ sequence()

uint64_t Pds::Eb::EbEvent::sequence ( ) const
inline

Return the pulse ID of the first contribution.

◆ size()

size_t Pds::Eb::EbEvent::size ( ) const
inline

Return the sum of the XTC payload sizes of all contributions, in bytes.

Friends And Related Symbol Documentation

◆ EventBuilder

friend class EventBuilder
friend

Member Data Documentation

◆ PoolDeclare

Pds::Eb::EbEvent::PoolDeclare

Macro from Pool.hh that declares an operator new allocating from a Pds::Pool and an operator delete that returns the buffer to its pool.


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