QLCSlowConfig Class Reference

List of all members.

Detailed Description

data collector for load curve single measurement front end settings

Author:
sergio.didomizio@ge.infn.it
This class contains front end measurement settings needed for load curves procedure. Front end parameters are represented by the integer value associated to the register binary configuration for that parameter, or by a bool value in case that setting is determined by a single bit. For each parameter 2 different getter exist:


Public Member Functions

 QLCSlowConfig ()
 constructor
 QLCSlowConfig (const QLCSlowConfig &config)
virtual ~QLCSlowConfig ()
 destructor
void SetInput (bool input)
 set FE input
void Dump (std::ostream &o) const
 dump data on stream
bool operator< (const QLCSlowConfig &other) const
 operator< based on lg
bool operator== (const QLCSlowConfig &other) const
 operator== based on every member except fConfigId
unsigned short GetLg () const
 get logical channel number
unsigned short GetBias () const
 get bias voltage bitwise code
float GetRealBias () const
 get bias voltage in units of volts
unsigned short GetGain () const
 get gain bitwise code
float GetRealGain () const
 get gain in real units
bool GetBiasPolarity () const
 get bias voltage polarity
bool GetLoadResistance () const
 get load resistance
float GetRealLoadResistance () const
 get load resistance (in GigaOhm)
unsigned short GetOffsetDac () const
 get offset dac bits
unsigned short GetOffsetHiBits () const
 get offset Hi bits
bool GetOffsetSBit () const
 get offset dac bits
bool GetOffsetPolarity () const
 get offset polarity
float GetRealOffset () const
 get offset voltage
float GetExternalBias () const
 get nominal value of external bias in Volts
float GetRealExternalBias () const
 get real value of external bias in Volts
bool GetAdjustOffset () const
 get logical channel number
unsigned int GetId () const
 get congif Id
bool GetInput () const
 get input
bool SetLg (const unsigned short lg)
 set logical channel
bool SetBias (const unsigned short bias)
 set bias
bool SetGain (const unsigned short gain)
 set amplifier gain
void SetBiasPolarity (const bool polarity)
 set bias polarity
void SetLoadResistance (const bool resistance)
 set load resistance
bool SetOffset (const unsigned short dacBits, const unsigned short hBits, const bool polarity, const bool sBit)
 set offset bits
void SetAdjustOffset ()
 set offset to be adjusted by mean of automatic hw procedure
void SetExternalBias (float externalBias)
 set nominal value of external bias in Volts
void SetRealExternalBias (float realExtBias)
 set real value of external bias in Volts

Protected Attributes

unsigned short fLgChannel
 logical channel
unsigned int fConfigId
unsigned short fBias
unsigned short fGain
bool fBiasPolarity
bool fLoadResistance
unsigned short fOffDac
unsigned short fOffHiBits
bool fOffSBit
 offset s-bit
bool fOffPolarity
float fExternalBias
float fRealExternalBias
bool fAdjustOffset
bool fInput

Friends

class QLCSlowConfigHandler
class QWPSlowConfigHandler


Member Function Documentation

float QLCSlowConfig::GetRealOffset (  )  const

get offset voltage

Returns:
a rough estimation of offset voltage before the pre-amplifier
The estimation of the offset is based on the assumption (not true) that when the offset bits are set to zero the output offset is zero, and that all the 14 bits that can be used to tune the offset are linear between 0 and 80 mV (or 0 and -80 mV, depending on the offset polarity). Actually the zero point is smaller than zero for positive polarity and bigger than zero for negative polarity, in order to avoid possible gaps. Moreover the range might be something different from 80 mV and the linearity of the 2 MSB is not guaranteed.

bool QLCSlowConfig::SetGain ( const unsigned short  gain  ) 

set amplifier gain

Parameters:
gain amplifier gain bitwise code

void QLCSlowConfig::SetBiasPolarity ( const bool  polarity  )  [inline]

set bias polarity

Parameters:
polarity bias polarity (true positive, false negative)

bool QLCSlowConfig::SetOffset ( const unsigned short  dacBits,
const unsigned short  hBits,
const bool  polarity,
const bool  sBit 
)

set offset bits

Parameters:
dacBits offset DAC bits between 0 and 4095
hBits high order bits (0..3)
polarity offset polarity (false=negative, true=positive)
sBit special bit
Returns:
true unless one of dacBits or hBits is out of range. in this case none of the offset values is modified

void QLCSlowConfig::SetAdjustOffset (  ) 

set offset to be adjusted by mean of automatic hw procedure

Calling this function will reset all offset-related quantities that are stored into the object


Member Data Documentation

unsigned int QLCSlowConfig::fConfigId [protected]

front end settings identifier

unsigned short QLCSlowConfig::fBias [protected]

front end bias value (0..31)

unsigned short QLCSlowConfig::fGain [protected]

front end gain value (0..31)

bool QLCSlowConfig::fBiasPolarity [protected]

front end bias polarity

bool QLCSlowConfig::fLoadResistance [protected]

load resistance (2 possible values)

unsigned short QLCSlowConfig::fOffDac [protected]

offset dac bits, 0..4095)

unsigned short QLCSlowConfig::fOffHiBits [protected]

offset high order bits (0..3)

bool QLCSlowConfig::fOffSBit [protected]

offset s-bit

this bit adds further ~ +40mV to the offset, no matter what the offset polarity is

bool QLCSlowConfig::fOffPolarity [protected]

offset polarity

float QLCSlowConfig::fExternalBias [protected]

nominal external bias voltage

float QLCSlowConfig::fRealExternalBias [protected]

real external bias voltage

bool QLCSlowConfig::fAdjustOffset [protected]

used request a call to the automatic offset adjustment procedure to be executed


The documentation for this class was generated from the following files:
Generated on Fri Mar 6 13:40:43 2009 for CUORE Software by  doxygen 1.5.1