Main Page   Modules   Namespace List   Class Hierarchy   Data Structures   File List   Namespace Members   Data Fields   Globals   Related Pages  

SctData::ChipConfiguration Class Reference

This class represents the configuration of a chip. More...

#include <ChipConfiguration.h>

Inheritance diagram for SctData::ChipConfiguration:

Sct::Streamable

Public Member Functions

 ChipConfiguration (ABCDChip &chipConfig) throw ()
virtual ~ChipConfiguration () throw ()
virtual std::string getClassName () const throw ()
 Get the class name for this object.

bool isActive () const throw ()
 
Returns:
true if chip is participating in a scan


void setActive (const bool active) throw ()
 set the chip activity status
Parameters:
active if set true


unsigned char getAddress () const throw ()
 There is a had-coded address associated with each chip position on the module.

unsigned char getTrimTarget () const throw ()
 
Returns:
the trim target


void setTrimTarget (const unsigned char target) throw (LogicError)
 set the trim target
Parameters:
target in mV?


unsigned char getTrim (unsigned int channel) const throw (LogicError)
 get the trim
Parameters:
channel 0->127
Returns:
trim 0->15


void setTrim (const unsigned channel, const unsigned char trim) throw (LogicError)
 set the trim
Parameters:
channel 0->127
trim 0->15


unsigned char getThreshold () const throw ()
 get the value of the threshold in UNITS?

void setThreshold (const unsigned char threshold) throw (LogicError)
 set the threhold in UNITS?

unsigned char getCalCharge () const throw ()
 get the value of the calibration charge

void setCalCharge (const unsigned char calCharge) throw ()
 set the value of the calibration charge in UNITS

unsigned char getStrobeDelay () const throw ()
 get the value of the strobe delay in UNITS

void setStrobeDelay (const unsigned char strobeDelay) throw (LogicError)
 set the value of the strobe delay in UNITS

void resetMask () throw ()
 unmask all channels

void setMask (const unsigned ichannel, const bool value) throw (LogicError)
 mask mutator
Parameters:
channel index 0->127
mask if true, unmask if false


void mask (const unsigned ichannel) throw (LogicError)
 mask mutator
Parameters:
channel index 0->127


void unmask (const unsigned ichannel) throw (LogicError)
 mask mutator
Parameters:
channel index 0->127


bool isMasked (const unsigned ichannel) const throw (LogicError)
 mask access
Returns:
true if channel is masked
Parameters:
channel index 0->127


unsigned char getTrimRange () const throw ()
void setTrimRange (const unsigned char) throw (LogicError)
char getRcFunctionIndex () const throw ()
void setRcFunctionIndex (const char) throw (LogicError)
 Response curve function index.
Parameters:
 



double getRcParam (const unsigned ipar) const throw (LogicError)
 Get the response curve parameter
Parameters:
index of parameter 0->2;
Returns:
value of parameter.


void setRcParam (const unsigned ipar, const double val) const throw (LogicError)
 Set the response curve parameter.

void setCalFactor (const float factor) throw ()
 theshold calibration factor by which the nominal threshold must be multiplied

float getCalFactor () throw ()
 accessor @}

void setMaster (bool value) throw ()
void setEnd (bool value) throw ()
void setFeedThrough (bool value) throw ()
void setInputBypass (bool value) throw ()
void setOutputBypass (bool value) throw ()
bool isMaster () const throw ()
bool isEnd () const throw ()
bool isFeedThrough () const throw ()
bool isInputBypass () const throw ()
bool isOutputBypass () const throw ()

Private Attributes

ABCDChipconfig

Detailed Description

This class represents the configuration of a chip.

It is based on the data stored in ABCDChip

Author:
Matthew Palmer
Date:
28 May 2003

Definition at line 21 of file ChipConfiguration.h.


Constructor & Destructor Documentation

SctData::ChipConfiguration::ChipConfiguration ABCDChip   chipConfig throw () [inline]
 

Definition at line 222 of file ChipConfiguration.h.

virtual SctData::ChipConfiguration::~ChipConfiguration   throw () [inline, virtual]
 

Definition at line 24 of file ChipConfiguration.h.


Member Function Documentation

unsigned char SctData::ChipConfiguration::getAddress   const throw () [inline]
 

There is a had-coded address associated with each chip position on the module.

Returns:
the address.

Definition at line 152 of file ChipConfiguration.h.

unsigned char SctData::ChipConfiguration::getCalCharge   const throw () [inline]
 

get the value of the calibration charge

Definition at line 200 of file ChipConfiguration.h.

float SctData::ChipConfiguration::getCalFactor   throw () [inline]
 

accessor @}

Definition at line 232 of file ChipConfiguration.h.

std::string SctData::ChipConfiguration::getClassName   const throw () [inline, virtual]
 

Get the class name for this object.

This is used to identify the precise type.

Todo:
We could use typeid instead here, but that would probably mean removing the namespace stuff.
Returns:
the class name

Implements Sct::Streamable.

Definition at line 224 of file ChipConfiguration.h.

char SctData::ChipConfiguration::getRcFunctionIndex   const throw () [inline]
 

Definition at line 189 of file ChipConfiguration.h.

double SctData::ChipConfiguration::getRcParam const unsigned    ipar const throw (LogicError) [inline]
 

Get the response curve parameter

Parameters:
index of parameter 0->2;
Returns:
value of parameter.

Definition at line 175 of file ChipConfiguration.h.

unsigned char SctData::ChipConfiguration::getStrobeDelay   const throw () [inline]
 

get the value of the strobe delay in UNITS

Definition at line 211 of file ChipConfiguration.h.

unsigned char SctData::ChipConfiguration::getThreshold   const throw () [inline]
 

get the value of the threshold in UNITS?

Definition at line 164 of file ChipConfiguration.h.

unsigned char SctData::ChipConfiguration::getTrim unsigned int    channel const throw (LogicError)
 

get the trim

Parameters:
channel 0->127
Returns:
trim 0->15

unsigned char SctData::ChipConfiguration::getTrimRange   const throw () [inline]
 

Definition at line 256 of file ChipConfiguration.h.

unsigned char SctData::ChipConfiguration::getTrimTarget   const throw () [inline]
 

Returns:
the trim target

Definition at line 156 of file ChipConfiguration.h.

bool SctData::ChipConfiguration::isActive   const throw () [inline]
 

Returns:
true if chip is participating in a scan

Definition at line 144 of file ChipConfiguration.h.

bool SctData::ChipConfiguration::isEnd   const throw () [inline]
 

Definition at line 279 of file ChipConfiguration.h.

bool SctData::ChipConfiguration::isFeedThrough   const throw () [inline]
 

Definition at line 282 of file ChipConfiguration.h.

bool SctData::ChipConfiguration::isInputBypass   const throw () [inline]
 

Definition at line 285 of file ChipConfiguration.h.

bool SctData::ChipConfiguration::isMasked const unsigned    ichannel const throw (LogicError) [inline]
 

mask access

Returns:
true if channel is masked
Parameters:
channel index 0->127

Definition at line 115 of file ChipConfiguration.h.

bool SctData::ChipConfiguration::isMaster   const throw () [inline]
 

Definition at line 276 of file ChipConfiguration.h.

bool SctData::ChipConfiguration::isOutputBypass   const throw () [inline]
 

Definition at line 288 of file ChipConfiguration.h.

void SctData::ChipConfiguration::mask const unsigned    ichannel throw (LogicError) [inline]
 

mask mutator

Parameters:
channel index 0->127

Definition at line 131 of file ChipConfiguration.h.

void SctData::ChipConfiguration::resetMask   throw () [inline]
 

unmask all channels

Definition at line 138 of file ChipConfiguration.h.

void SctData::ChipConfiguration::setActive const bool    active throw () [inline]
 

set the chip activity status

Parameters:
active if set true

Definition at line 148 of file ChipConfiguration.h.

void SctData::ChipConfiguration::setCalCharge const unsigned char    calCharge throw () [inline]
 

set the value of the calibration charge in UNITS

Definition at line 204 of file ChipConfiguration.h.

void SctData::ChipConfiguration::setCalFactor const float    factor throw () [inline]
 

theshold calibration factor by which the nominal threshold must be multiplied

mutator

Parameters:
the factor

Definition at line 228 of file ChipConfiguration.h.

void SctData::ChipConfiguration::setEnd bool    value throw () [inline]
 

Definition at line 263 of file ChipConfiguration.h.

void SctData::ChipConfiguration::setFeedThrough bool    value throw () [inline]
 

Definition at line 266 of file ChipConfiguration.h.

void SctData::ChipConfiguration::setInputBypass bool    value throw () [inline]
 

Definition at line 269 of file ChipConfiguration.h.

void SctData::ChipConfiguration::setMask const unsigned    ichannel,
const bool    value
throw (LogicError) [inline]
 

mask mutator

Parameters:
channel index 0->127
mask if true, unmask if false

Definition at line 119 of file ChipConfiguration.h.

void SctData::ChipConfiguration::setMaster bool    value throw () [inline]
 

Definition at line 260 of file ChipConfiguration.h.

void SctData::ChipConfiguration::setOutputBypass bool    value throw () [inline]
 

Definition at line 272 of file ChipConfiguration.h.

void SctData::ChipConfiguration::setRcFunctionIndex const    char throw (LogicError) [inline]
 

Response curve function index.

Parameters:
 

Definition at line 193 of file ChipConfiguration.h.

void SctData::ChipConfiguration::setRcParam const unsigned    ipar,
const double    val
const throw (LogicError) [inline]
 

Set the response curve parameter.

Parameters:
index of parameter 0->2;
the value to set that parameter

Definition at line 182 of file ChipConfiguration.h.

void SctData::ChipConfiguration::setStrobeDelay const unsigned char    strobeDelay throw (LogicError) [inline]
 

set the value of the strobe delay in UNITS

Definition at line 215 of file ChipConfiguration.h.

void SctData::ChipConfiguration::setThreshold const unsigned char    threshold throw (LogicError) [inline]
 

set the threhold in UNITS?

Definition at line 168 of file ChipConfiguration.h.

void SctData::ChipConfiguration::setTrim const unsigned    channel,
const unsigned char    trim
throw (LogicError) [inline]
 

set the trim

Parameters:
channel 0->127
trim 0->15

Definition at line 242 of file ChipConfiguration.h.

void SctData::ChipConfiguration::setTrimRange const unsigned    char throw (LogicError) [inline]
 

Definition at line 250 of file ChipConfiguration.h.

void SctData::ChipConfiguration::setTrimTarget const unsigned char    target throw (LogicError) [inline]
 

set the trim target

Parameters:
target in mV?

Definition at line 160 of file ChipConfiguration.h.

References target.

void SctData::ChipConfiguration::unmask const unsigned    ichannel throw (LogicError) [inline]
 

mask mutator

Parameters:
channel index 0->127

mask register is 128 bits implimented as UINT32 mask[4];

Definition at line 123 of file ChipConfiguration.h.


Field Documentation

ABCDChip& SctData::ChipConfiguration::config [private]
 

Definition at line 110 of file ChipConfiguration.h.


The documentation for this class was generated from the following file:
Generated on Mon Dec 15 19:37:42 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3