PAASS
Software suite to Acquire and Analyze Data from Pixie16
XiaListModeDataEncoder Class Reference

#include <XiaListModeDataEncoder.hpp>

Public Member Functions

 XiaListModeDataEncoder ()
 Default constructor. More...
 
 ~XiaListModeDataEncoder ()
 Default destructor. More...
 
std::vector< unsigned int > EncodeXiaData (const XiaData &data, const DataProcessing::FIRMWARE &firmware, const unsigned int &frequency)
 

Private Member Functions

unsigned int EncodeWordZero (const XiaData &data, const XiaListModeDataMask &mask)
 
unsigned int EncodeWordOne (const XiaData &data, const XiaListModeDataMask &mask)
 
unsigned int EncodeWordTwo (const XiaData &data, const XiaListModeDataMask &mask)
 
unsigned int EncodeWordThree (const XiaData &data, const XiaListModeDataMask &mask)
 
std::vector< unsigned int > EncodeTrace (const std::vector< unsigned int > &trc, const std::pair< unsigned int, unsigned int > &mask)
 
std::vector< unsigned int > EncodeEsums (const XiaData &data, const XiaListModeDataMask &mask)
 

Detailed Description

Definition at line 15 of file XiaListModeDataEncoder.hpp.

Constructor & Destructor Documentation

§ XiaListModeDataEncoder()

XiaListModeDataEncoder::XiaListModeDataEncoder ( )
inline

Default constructor.

Definition at line 18 of file XiaListModeDataEncoder.hpp.

§ ~XiaListModeDataEncoder()

XiaListModeDataEncoder::~XiaListModeDataEncoder ( )
inline

Default destructor.

Definition at line 21 of file XiaListModeDataEncoder.hpp.

Here is the call graph for this function:

Member Function Documentation

§ EncodeEsums()

vector< unsigned int > XiaListModeDataEncoder::EncodeEsums ( const XiaData data,
const XiaListModeDataMask mask 
)
private

Encodes the Esums

Parameters
[in]data: The data to encode
[in]mask: The object with the data masks
Returns
The encoded data word.

This needs to be updated so that it actually formats the baseline in one of the IEEE standard formats properly before we return.

Definition at line 151 of file XiaListModeDataEncoder.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

§ EncodeTrace()

vector< unsigned int > XiaListModeDataEncoder::EncodeTrace ( const std::vector< unsigned int > &  trc,
const std::pair< unsigned int, unsigned int > &  mask 
)
private

Encodes the Trace

Parameters
[in]data: The data to encode
[in]mask: The object with the data masks
Returns
The encoded data word.

Definition at line 133 of file XiaListModeDataEncoder.cpp.

Here is the caller graph for this function:

§ EncodeWordOne()

unsigned int XiaListModeDataEncoder::EncodeWordOne ( const XiaData data,
const XiaListModeDataMask mask 
)
private

Encodes the second word of the data buffer.

Parameters
[in]data: The data to encode
[in]mask: The object with the data masks
Returns
The encoded data word.

Definition at line 104 of file XiaListModeDataEncoder.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

§ EncodeWordThree()

unsigned int XiaListModeDataEncoder::EncodeWordThree ( const XiaData data,
const XiaListModeDataMask mask 
)
private

Encodes the fourth word of the data buffer.

Parameters
[in]data: The data to encode
[in]mask: The object with the data masks
Returns
The encoded data word.

Definition at line 122 of file XiaListModeDataEncoder.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

§ EncodeWordTwo()

unsigned int XiaListModeDataEncoder::EncodeWordTwo ( const XiaData data,
const XiaListModeDataMask mask 
)
private

Encodes the third word of the data buffer.

Parameters
[in]data: The data to encode
[in]mask: The object with the data masks
Returns
The encoded data word.

Definition at line 109 of file XiaListModeDataEncoder.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

§ EncodeWordZero()

unsigned int XiaListModeDataEncoder::EncodeWordZero ( const XiaData data,
const XiaListModeDataMask mask 
)
private

Encodes the first word of the data buffer.

Parameters
[in]data: The data to encode
[in]mask: The object with the data masks
Returns
The encoded data word.

Definition at line 74 of file XiaListModeDataEncoder.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

§ EncodeXiaData()

std::vector< unsigned int > XiaListModeDataEncoder::EncodeXiaData ( const XiaData data,
const DataProcessing::FIRMWARE firmware,
const unsigned int &  frequency 
)

Method that will create a Pixie List Mode Data Event from an XiaData object.

Parameters
[in]data: The data that we want to encode
[in]firmware: The firmware version to encode into
[in]frequency: The sampling frequency in MHz or MS/s
Returns
A vector containing the encoded data.

Each QDC value takes up a single 32-bit word. No need to do anything special here.

Trace comes last since it comes after the header.

Definition at line 18 of file XiaListModeDataEncoder.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

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