ldas-tools-framecpp  2.6.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
FrameCPP::Version_4::FrAdcDataNPS Class Reference

#include <FrAdcDataNPS.hh>

Inheritance diagram for FrameCPP::Version_4::FrAdcDataNPS:
FrameCPP::Version_4::FrAdcData

Public Types

typedef STRING name_type
 
typedef STRING comment_type
 
typedef
FR_ADC_DATA_CHANNEL_GROUP_TYPE 
channelGroup_type
 
typedef
FR_ADC_DATA_CHANNEL_NUMBER_TYPE 
channelNumber_type
 
typedef FR_ADC_DATA_N_BITS_TYPE nBits_type
 
typedef FR_ADC_DATA_BIAS_TYPE bias_type
 
typedef FR_ADC_DATA_SLOPE_TYPE slope_type
 
typedef STRING units_type
 
typedef FR_ADC_DATA_SAMPLERATE_TYPE sampleRate_type
 
typedef
FR_ADC_DATA_TIMEOFFSETS_TYPE 
timeOffsetS_type
 
typedef
FR_ADC_DATA_TIMEOFFSETN_TYPE 
timeOffsetN_type
 
typedef FR_ADC_DATA_FSHIFT_TYPE fShift_type
 
typedef FR_ADC_DATA_DATAVALID_TYPE dataValid_type
 

Public Member Functions

const std::string & GetName () const
 Return the name associate with the FrAdcData structure. More...
 
const std::string & GetComment () const
 A brief description of the FrAdcData structure. More...
 
channelGroup_type GetChannelGroup () const
 The channel group for the FrAdcData. More...
 
channelNumber_type GetChannelNumber () const
 The channel number for the FrAdcData. More...
 
nBits_type GetNBits () const
 Tne number of bits in the A/D output. More...
 
bias_type GetBias () const
 DC bias on channel. More...
 
slope_type GetSlope () const
 ADC calibration units per count. More...
 
STRING GetUnits () const
 The units used in the ADC calibration. More...
 
sampleRate_type GetSampleRate () const
 The data acquisition rate. More...
 
timeOffsetS_type GetTimeOffsetS () const
 The offset of the first sample relative to the frame start time. More...
 
timeOffsetN_type GetTimeOffsetN () const
 The offset of the first sample relative to the frame start time. More...
 
fShift_type GetFShift () const
 The frequency in the original data corresponding to 0 Hz. More...
 
dataValid_type GetDataValid () const
 Retrieve the overRange value. More...
 
void AppendComment (const std::string &comment)
 Extend the comment associated with the FrAdcData structure. More...
 
void SetDataValid (INT_2U flag)
 Establish the value of the dataValid field. More...
 
void SetBias (REAL_4 Value)
 Establish the value of the bias field. More...
 
void SetSlope (REAL_4 Value)
 Establish the value of the slope field. More...
 
void SetTimeOffset (INT_4U Seconds, INT_4U Nanoseconds)
 Establish the value of the timeOffset field. More...
 

Static Public Attributes

static const bias_type DEFAULT_BIAS = FR_ADC_DATA_DEFAULT_BIAS
 
static const slope_type DEFAULT_SLOPE = FR_ADC_DATA_DEFAULT_SLOPE
 
static const fShift_type DEFAULT_FSHIFT = FR_ADC_DATA_DEFAULT_FSHIFT
 
static const timeOffsetS_type DEFAULT_TIME_OFFSET_S = FR_ADC_DATA_DEFAULT_TIME_OFFSET_S
 
static const timeOffsetN_type DEFAULT_TIME_OFFSET_N = FR_ADC_DATA_DEFAULT_TIME_OFFSET_N
 
static const dataValid_type DEFAULT_DATA_VALID = FR_ADC_DATA_DEFAULT_DATA_VALID
 

Protected Member Functions

 FrAdcDataNPS ()
 Default constructor. More...
 
 FrAdcDataNPS (Common::IStream &Stream)
 Stream constructor. More...
 
 FrAdcDataNPS (const Previous::FrAdcData &Source, Common::IStream *Stream)
 Promotion constructor. More...
 
cmn_streamsize_type bytes (const Common::StreamBase &Stream) const
 Number of bytes needed to write this structure. More...
 
void write (Common::OStream &Stream) const
 Write contents to the stream. More...
 
bool operator== (const FrAdcDataNPS &RHS) const
 Comparison operator. More...
 

Static Protected Member Functions

template<typename DescriptionType , typename FrSEType >
static void structDescription (DescriptionType &Desc)
 

Protected Attributes

name_type name
 Channel name – must be unique with the frame. More...
 
comment_type comment
 Comment for the ADC. More...
 
channelGroup_type channelGroup
 
channelNumber_type channelNumber
 
nBits_type nBits
 Number of bits in A/D output. More...
 
bias_type bias
 DC bias on channel (Units @ ADC counts = 0) More...
 
slope_type slope
 ADC calibration: input units/count. More...
 
units_type units
 
sampleRate_type sampleRate
 Data acquisition rate, samples per second. More...
 
timeOffsetS_type timeOffsetS
 
timeOffsetN_type timeOffsetN
 
fShift_type fShift
 
dataValid_type dataValid
 

Member Typedef Documentation

Constructor & Destructor Documentation

FrAdcDataNPS::FrAdcDataNPS ( )
protected

Default constructor.

FrAdcDataNPS::FrAdcDataNPS ( Common::IStream Stream)
protected

Stream constructor.

FrAdcDataNPS::FrAdcDataNPS ( const Previous::FrAdcData &  Source,
Common::IStream Stream 
)
protected

Promotion constructor.

Member Function Documentation

void FrAdcDataNPS::AppendComment ( const std::string &  comment)
inline

Extend the comment associated with the FrAdcData structure.

cmn_streamsize_type FrAdcDataNPS::bytes ( const Common::StreamBase Stream) const
inlineprotected

Number of bytes needed to write this structure.

Parameters
[in]StreamThe stream from which to the object is being read or written.
Returns
The number of bytes need to read or write this object.
FrAdcDataNPS::bias_type FrAdcDataNPS::GetBias ( ) const
inline

DC bias on channel.

Returns
DC bias on channel.
FrAdcDataNPS::channelGroup_type FrAdcDataNPS::GetChannelGroup ( ) const
inline

The channel group for the FrAdcData.

Returns
The crate number for the FrAdcData
FrAdcDataNPS::channelNumber_type FrAdcDataNPS::GetChannelNumber ( ) const
inline

The channel number for the FrAdcData.

Returns
The channel number for the FrAdcData
const std::string & FrAdcDataNPS::GetComment ( ) const
inline

A brief description of the FrAdcData structure.

Returns
A brief description of the FrAdcData structure
INT_2U FrAdcDataNPS::GetDataValid ( ) const
inline

Retrieve the overRange value.

Returns
The value of the overRange field.
FrAdcDataNPS::fShift_type FrAdcDataNPS::GetFShift ( ) const
inline

The frequency in the original data corresponding to 0 Hz.

Returns
The frequency in the original data corresponding to 0 Hz.
const std::string & FrAdcDataNPS::GetName ( ) const

Return the name associate with the FrAdcData structure.

Returns
The name associated with the FrAdcData structure
FrAdcDataNPS::nBits_type FrAdcDataNPS::GetNBits ( ) const
inline

Tne number of bits in the A/D output.

Returns
Tne number of bits in the A/D output.
FrAdcDataNPS::sampleRate_type FrAdcDataNPS::GetSampleRate ( ) const
inline

The data acquisition rate.

Returns
The data acquisition rate.
FrAdcDataNPS::slope_type FrAdcDataNPS::GetSlope ( ) const
inline

ADC calibration units per count.

Returns
ADC calibration units per count.
FrAdcDataNPS::timeOffsetN_type FrAdcDataNPS::GetTimeOffsetN ( ) const
inline

The offset of the first sample relative to the frame start time.

Returns
The offset of the first sample relative to the frame start time.
FrAdcDataNPS::timeOffsetS_type FrAdcDataNPS::GetTimeOffsetS ( ) const
inline

The offset of the first sample relative to the frame start time.

Returns
The offset of the first sample relative to the frame start time.
STRING FrAdcDataNPS::GetUnits ( ) const
inline

The units used in the ADC calibration.

Returns
The units used in the ADC calibration
bool FrAdcDataNPS::operator== ( const FrAdcDataNPS RHS) const
inlineprotected

Comparison operator.

void FrAdcDataNPS::SetBias ( REAL_4  Value)
inline

Establish the value of the bias field.

Parameters
[in]ValueThe desired value of the bias field.
void FrAdcDataNPS::SetDataValid ( INT_2U  flag)
inline

Establish the value of the dataValid field.

Parameters
[in]flagThe desired value of the overRange field.
void FrAdcDataNPS::SetSlope ( REAL_4  Value)
inline

Establish the value of the slope field.

Parameters
[in]ValueThe desired value of the slope field.
void FrAdcDataNPS::SetTimeOffset ( INT_4U  Seconds,
INT_4U  Nanoseconds 
)
inline

Establish the value of the timeOffset field.

Parameters
[in]SecondsThe value for the timeOffsetS field.
[in]NanosecondsThe value for the timeOffsetN field.
template<typename DescriptionType , typename FrSEType >
void FrAdcDataNPS::structDescription ( DescriptionType &  Desc)
inlinestaticprotected
void FrameCPP::Version_4::FrAdcDataNPS::write ( Common::OStream Stream) const
protected

Write contents to the stream.

Member Data Documentation

bias_type FrameCPP::Version_4::FrAdcDataNPS::bias
protected

DC bias on channel (Units @ ADC counts = 0)

channelGroup_type FrameCPP::Version_4::FrAdcDataNPS::channelGroup
protected

Channel grouping number containing ADC.

Note
This variable is determined by the site and must be unique over all detectors.
channelNumber_type FrameCPP::Version_4::FrAdcDataNPS::channelNumber
protected

Channel number

Note
This variable is determined by the site and must be unique over all detectors.
comment_type FrameCPP::Version_4::FrAdcDataNPS::comment
protected

Comment for the ADC.

dataValid_type FrameCPP::Version_4::FrAdcDataNPS::dataValid
protected

Data valid flag

Note
dataValid = 0 -> ADC ddata valid; dataValid != 0 -> ADC data suspect/not valid
const FrAdcDataNPS::bias_type FrAdcDataNPS::DEFAULT_BIAS = FR_ADC_DATA_DEFAULT_BIAS
static
const FrAdcDataNPS::dataValid_type FrAdcDataNPS::DEFAULT_DATA_VALID = FR_ADC_DATA_DEFAULT_DATA_VALID
static
const FrAdcDataNPS::fShift_type FrAdcDataNPS::DEFAULT_FSHIFT = FR_ADC_DATA_DEFAULT_FSHIFT
static
const FrAdcDataNPS::slope_type FrAdcDataNPS::DEFAULT_SLOPE = FR_ADC_DATA_DEFAULT_SLOPE
static
const FrAdcDataNPS::timeOffsetN_type FrAdcDataNPS::DEFAULT_TIME_OFFSET_N = FR_ADC_DATA_DEFAULT_TIME_OFFSET_N
static
const FrAdcDataNPS::timeOffsetS_type FrAdcDataNPS::DEFAULT_TIME_OFFSET_S = FR_ADC_DATA_DEFAULT_TIME_OFFSET_S
static
fShift_type FrameCPP::Version_4::FrAdcDataNPS::fShift
protected

The frequency (in HZ) in the original data that corresponds to zero Hz in the heterodyned series.

Note
In the heterodyning process the real time series in multiplied by cos[2pi fShift(t-to) + phase] to get the real part and by -sin[2pi fShift(t-t(0)) + phase] to get the imaginary part of the resulting complex time series. The time origin t(0) is the beginning of the frame.
name_type FrameCPP::Version_4::FrAdcDataNPS::name
protected

Channel name – must be unique with the frame.

nBits_type FrameCPP::Version_4::FrAdcDataNPS::nBits
protected

Number of bits in A/D output.

sampleRate_type FrameCPP::Version_4::FrAdcDataNPS::sampleRate
protected

Data acquisition rate, samples per second.

slope_type FrameCPP::Version_4::FrAdcDataNPS::slope
protected

ADC calibration: input units/count.

timeOffsetN_type FrameCPP::Version_4::FrAdcDataNPS::timeOffsetN
protected

For Triggered data lasting less than one frame, integer residual nanoseconds start time relative to frame start

timeOffsetS_type FrameCPP::Version_4::FrAdcDataNPS::timeOffsetS
protected

For Triggered data lasting less than one frame, integer seconds start time relative to frame start

units_type FrameCPP::Version_4::FrAdcDataNPS::units
protected

ADC calibration: input units for slope If dimensionless, then units == <NONE>, in CAPITALS (without <...>).


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