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

Name list for SpectrometerDataV1 records: scalar results followed by the hproj, peakPos, peakHeight and FWHM arrays. More...

#include <BldNames.hh>

Inherits XtcData::VarDef.

Public Member Functions

 SpectrometerDataV1 ()
 Fill NameVec with width, hproj_y1, hproj_y2, comRaw, baseline, com, integral, nPeaks, and the arrays hproj (INT32), peakPos and peakHeight (DOUBLE) and FWHM (INT32).
 

Static Public Member Functions

static std::map< unsigned, unsigned > arraySizeMap ()
 Return a map from entry X to entry Y: X is a scalar if Y equals X, otherwise the value of entry Y is the array length of X (hproj uses width, the three peak arrays use nPeaks).
 
static std::vector< unsigned > byteSizes ()
 Return the element size in bytes of each entry in order: 4, 4, 4, 8, 8, 8, 8, 4, 4, 8, 8, 4.
 

Additional Inherited Members

- Public Attributes inherited from XtcData::VarDef
std::vector< Name > NameVec
 Name definitions, in order.
 

Detailed Description

Name list for SpectrometerDataV1 records: scalar results followed by the hproj, peakPos, peakHeight and FWHM arrays.

Constructor & Destructor Documentation

◆ SpectrometerDataV1()

BldNames::SpectrometerDataV1::SpectrometerDataV1 ( )

Fill NameVec with width, hproj_y1, hproj_y2, comRaw, baseline, com, integral, nPeaks, and the arrays hproj (INT32), peakPos and peakHeight (DOUBLE) and FWHM (INT32).

Member Function Documentation

◆ arraySizeMap()

static std::map< unsigned, unsigned > BldNames::SpectrometerDataV1::arraySizeMap ( )
static

Return a map from entry X to entry Y: X is a scalar if Y equals X, otherwise the value of entry Y is the array length of X (hproj uses width, the three peak arrays use nPeaks).

◆ byteSizes()

static std::vector< unsigned > BldNames::SpectrometerDataV1::byteSizes ( )
static

Return the element size in bytes of each entry in order: 4, 4, 4, 8, 8, 8, 8, 4, 4, 8, 8, 4.


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