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

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

#include <BldTebData.hh>

Public Types

enum  BldSource {
  gmd_ , xgmd_ , pcav_ , pcavs_ ,
  gasdet_ , ebeam_ , ebeams_ , NSOURCES
}
 BLD sources, in the order of their bits in sources and of their records after the header. More...
 

Public Member Functions

 BldTebData (uint64_t sources_)
 Store the mask of sources present.
 
unsigned offset_ (unsigned)
 Return the byte offset of the record of source src: the header size plus the sizes of the present sources before it.
 

Static Public Member Functions

static BldSource lookup (const std::string &detName)
 Return the source whose name (gmd, xgmd, pcav, pcavs, gasdet, ebeam, ebeams) equals detName, or NSOURCES if none does.
 
static unsigned sizeof_ ()
 Return the largest record size: the header plus the records of all sources.
 

Public Attributes

uint64_t sources
 Bit mask of the sources whose records follow (bit numbers from BldSource).
 

Detailed Description

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

The accessor functions generated by DATADEF return a pointer to a source record, or null if that source is absent.

Member Enumeration Documentation

◆ BldSource

BLD sources, in the order of their bits in sources and of their records after the header.

Enumerator
gmd_ 

Bit 0: gmd (GmdTebData).

xgmd_ 

Bit 1: xgmd (XGmdTebData).

pcav_ 

Bit 2: pcav (PhaseCavityTebData).

pcavs_ 

Bit 3: pcavs (PhaseCavityTebData).

gasdet_ 

Bit 4: gasdet (GasDetTebData).

ebeam_ 

Bit 5: ebeam (EBeamTebData).

ebeams_ 

Bit 6: ebeams (EBeamTebData).

NSOURCES 

Number of sources (7); also returned by lookup() for an unknown name.

Constructor & Destructor Documentation

◆ BldTebData()

Pds::Trg::BldTebData::BldTebData ( uint64_t  sources_)
inline

Store the mask of sources present.

Member Function Documentation

◆ lookup()

static BldSource Pds::Trg::BldTebData::lookup ( const std::string &  detName)
static

Return the source whose name (gmd, xgmd, pcav, pcavs, gasdet, ebeam, ebeams) equals detName, or NSOURCES if none does.

◆ offset_()

unsigned Pds::Trg::BldTebData::offset_ ( unsigned  )

Return the byte offset of the record of source src: the header size plus the sizes of the present sources before it.

◆ sizeof_()

static unsigned Pds::Trg::BldTebData::sizeof_ ( )
static

Return the largest record size: the header plus the records of all sources.

Member Data Documentation

◆ sources

uint64_t Pds::Trg::BldTebData::sources

Bit mask of the sources whose records follow (bit numbers from BldSource).


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