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

#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 (logs for debug builds/configurations).
 
std::vector< int > getPayload () const
 Export payload as a fixed-order vector of integers.
 

Detailed Description

Definition at line 23 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 via logger configuration.

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

Definition at line 40 of file gIntegralPayload.h.

◆ ~GIntegralPayload()

GIntegralPayload::~GIntegralPayload ( )
inline

The payload owns no external resources; destruction is only relevant for lifecycle tracing.

Definition at line 52 of file gIntegralPayload.h.

Member Function Documentation

◆ getPayload()

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

Order is: 0) crate 1) slot 2) channel 3) charge 4) time

This ordering matches the expectation in addIntegralPayload().

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

Definition at line 73 of file gIntegralPayload.h.


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