lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
BldTebData.hh File Reference

BldTebData, the TEB input record that packs data from several BLD sources behind a bit mask of the sources present. More...

#include <string>
#include <cstdint>

Classes

class  Pds::Trg::BldTebData
 TEB input record for BLD: a 64-bit mask of sources present, followed by the record of each present source in BldSource order. More...
 

Namespaces

namespace  Pds
 Outer namespace of the HSD digitizer helpers.
 
namespace  Pds::Trg
 Namespace of the psdaq trigger code: TEB input data records, trigger primitives and trigger decisions.
 

Macros

#define DATADEF(N, T)
 Defines an accessor N() that returns the record of source N cast to T*, or null if the bit N_ is not set in sources.
 

Detailed Description

BldTebData, the TEB input record that packs data from several BLD sources behind a bit mask of the sources present.

Macro Definition Documentation

◆ DATADEF

#define DATADEF (   N,
  T 
)
Value:
T* N() \
{ return (sources>>N##_)&1 ? reinterpret_cast<T*>((char*)this+offset_(N##_)) : 0; }

Defines an accessor N() that returns the record of source N cast to T*, or null if the bit N_ is not set in sources.