gdata
Loading...
Searching...
No Matches
GIntegralPayload Struct Reference

Stores one integrated readout payload sample. More...

#include <gIntegralPayload.h>

Public Member Functions

 GIntegralPayload (int c, int s, int ch, int q, int t, std::shared_ptr< GLogger > logger)
 Construct an integral payload.
 
 ~GIntegralPayload ()
 Destructor.
 
std::vector< int > getPayload () const
 Exports the payload as a fixed-order vector of integers.
 

Detailed Description

Definition at line 36 of file gIntegralPayload.h.

Constructor & Destructor Documentation

◆ GIntegralPayload()

GIntegralPayload::GIntegralPayload ( int c,
int s,
int ch,
int q,
int t,
std::shared_ptr< GLogger > logger )
inline

Stores the provided values and emits a debug log message. Logging is intended for diagnostics in examples/tests and can be controlled through logger configuration.

Parameters
cCrate number, the first readout-address component.
sSlot number, the module position within the crate.
chChannel number within the slot or module.
qIntegrated charge or ADC proxy.
tTime value or TDC proxy.
loggerLogger instance used for debug traces.

Definition at line 53 of file gIntegralPayload.h.

◆ ~GIntegralPayload()

GIntegralPayload::~GIntegralPayload ( )
inline

The payload owns no external resources. Destruction logging is useful mainly for lifecycle tracing in tests and examples.

Definition at line 66 of file gIntegralPayload.h.

Member Function Documentation

◆ getPayload()

std::vector< int > GIntegralPayload::getPayload ( ) const
inline

Order is:

  • element 0 : crate
  • element 1 : slot
  • element 2 : channel
  • element 3 : charge
  • element 4 : time

This ordering matches the expectation in addIntegralPayload().

Returns
Vector {crate, slot, channel, charge, time}.

Definition at line 87 of file gIntegralPayload.h.


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