|
lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
|
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). | |
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.
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. |
|
inline |
Store the mask of sources present.
|
static |
Return the source whose name (gmd, xgmd, pcav, pcavs, gasdet, ebeam, ebeams) equals detName, or NSOURCES if none does.
| 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.
|
static |
Return the largest record size: the header plus the records of all sources.
| uint64_t Pds::Trg::BldTebData::sources |
Bit mask of the sources whose records follow (bit numbers from BldSource).