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

SCTDAL::SCT_Chip Class Reference

Chip settings, as in the production DB. More...

#include <SCT_Chip.h>


Public Member Functions

 SCT_Chip (::Configuration &conf,::ConfigObject &obj)
bool destroy (::Configuration &conf)
 Destroy object of the SCT_Chip class.

virtual void init (bool init_children)
virtual void print (unsigned int, bool, std::ostream &) const
unsigned short get_id () const
 Get "id" attribute value.

unsigned short id () const
bool set_id (unsigned short value)
 Set "id" attribute value.

unsigned short get_address () const
 Get "address" attribute value.

unsigned short address () const
bool set_address (unsigned short value)
 Set "address" attribute value.

bool get_active () const
 Get "active" attribute value. Set to true for active, and false for inactive.

bool active () const
bool set_active (bool value)
 Set "active" attribute value. Set to true for active, and false for inactive.

unsigned short get_vthr () const
 Get "vthr" attribute value.

unsigned short vthr () const
bool set_vthr (unsigned short value)
 Set "vthr" attribute value.

unsigned short get_vcal () const
 Get "vcal" attribute value.

unsigned short vcal () const
bool set_vcal (unsigned short value)
 Set "vcal" attribute value.

unsigned short get_delay () const
 Get "delay" attribute value.

unsigned short delay () const
bool set_delay (unsigned short value)
 Set "delay" attribute value.

unsigned short get_preamp () const
 Get "preamp" attribute value.

unsigned short preamp () const
bool set_preamp (unsigned short value)
 Set "preamp" attribute value.

unsigned short get_shaper () const
 Get "shaper" attribute value.

unsigned short shaper () const
bool set_shaper (unsigned short value)
 Set "shaper" attribute value.

const std::string & get_rc_function () const
 Get "rc_function" attribute value.

const std::string & rc_function () const
bool set_rc_function (const std::string &value)
 Set "rc_function" attribute value.

unsigned short get_rc_function_type () const
 Get "rc_function_type" attribute value.

unsigned short rc_function_type () const
bool set_rc_function_type (unsigned short value)
 Set "rc_function_type" attribute value.

const std::vector< unsigned
short > & 
get_config () const
 Get "config" attribute value. A list of 11 numbers. Usually looks something like "1 3 1 0 0 0 0 0 1 0 1" but the penultimate digit is sometimes a 1, and the third digit is sometimes a 1 or a 2.

const std::vector< unsigned
short > & 
config () const
bool set_config (const std::vector< unsigned short > &value)
 Set "config" attribute value. A list of 11 numbers. Usually looks something like "1 3 1 0 0 0 0 0 1 0 1" but the penultimate digit is sometimes a 1, and the third digit is sometimes a 1 or a 2.

float get_c_factor () const
 Get "c_factor" attribute value.

float c_factor () const
bool set_c_factor (float value)
 Set "c_factor" attribute value.

float get_target () const
 Get "target" attribute value.

float target () const
bool set_target (float value)
 Set "target" attribute value.

const std::vector< unsigned
long > & 
get_trims () const
 Get "trims" attribute value.

const std::vector< unsigned
long > & 
trims () const
bool set_trims (const std::vector< unsigned long > &value)
 Set "trims" attribute value.

const std::vector< unsigned
long > & 
get_mask () const
 Get "mask" attribute value.

const std::vector< unsigned
long > & 
mask () const
bool set_mask (const std::vector< unsigned long > &value)
 Set "mask" attribute value.

 SCT_Chip (::Configuration &conf,::ConfigObject &obj)
bool destroy (::Configuration &conf)
 Destroy object of the SCT_Chip class.

virtual void init (bool init_children)
virtual void print (unsigned int, bool, std::ostream &) const
unsigned short get_id () const
 Get "id" attribute value.

unsigned short id () const
bool set_id (unsigned short value)
 Set "id" attribute value.

unsigned short get_address () const
 Get "address" attribute value.

unsigned short address () const
bool set_address (unsigned short value)
 Set "address" attribute value.

bool get_active () const
 Get "active" attribute value. Set to true for active, and false for inactive.

bool active () const
bool set_active (bool value)
 Set "active" attribute value. Set to true for active, and false for inactive.

unsigned short get_vthr () const
 Get "vthr" attribute value.

unsigned short vthr () const
bool set_vthr (unsigned short value)
 Set "vthr" attribute value.

unsigned short get_vcal () const
 Get "vcal" attribute value.

unsigned short vcal () const
bool set_vcal (unsigned short value)
 Set "vcal" attribute value.

unsigned short get_delay () const
 Get "delay" attribute value.

unsigned short delay () const
bool set_delay (unsigned short value)
 Set "delay" attribute value.

unsigned short get_preamp () const
 Get "preamp" attribute value.

unsigned short preamp () const
bool set_preamp (unsigned short value)
 Set "preamp" attribute value.

unsigned short get_shaper () const
 Get "shaper" attribute value.

unsigned short shaper () const
bool set_shaper (unsigned short value)
 Set "shaper" attribute value.

const std::string & get_rc_function () const
 Get "rc_function" attribute value.

const std::string & rc_function () const
bool set_rc_function (const std::string &value)
 Set "rc_function" attribute value.

unsigned short get_rc_function_type () const
 Get "rc_function_type" attribute value.

unsigned short rc_function_type () const
bool set_rc_function_type (unsigned short value)
 Set "rc_function_type" attribute value.

const std::vector< unsigned
short > & 
get_config () const
 Get "config" attribute value. A list of 11 numbers. Usually looks something like "1 3 1 0 0 0 0 0 1 0 1" but the penultimate digit is sometimes a 1, and the third digit is sometimes a 1 or a 2.

const std::vector< unsigned
short > & 
config () const
bool set_config (const std::vector< unsigned short > &value)
 Set "config" attribute value. A list of 11 numbers. Usually looks something like "1 3 1 0 0 0 0 0 1 0 1" but the penultimate digit is sometimes a 1, and the third digit is sometimes a 1 or a 2.

float get_c_factor () const
 Get "c_factor" attribute value.

float c_factor () const
bool set_c_factor (float value)
 Set "c_factor" attribute value.

float get_target () const
 Get "target" attribute value.

float target () const
bool set_target (float value)
 Set "target" attribute value.

const std::vector< unsigned
long > & 
get_trims () const
 Get "trims" attribute value.

const std::vector< unsigned
long > & 
trims () const
bool set_trims (const std::vector< unsigned long > &value)
 Set "trims" attribute value.

const std::vector< unsigned
long > & 
get_mask () const
 Get "mask" attribute value.

const std::vector< unsigned
long > & 
mask () const
bool set_mask (const std::vector< unsigned long > &value)
 Set "mask" attribute value.


Static Public Member Functions

SCT_Chipcreate (::Configuration &conf, const std::string &id="")
 Create new object of the SCT_Chip class.

SCT_Chipcreate (::Configuration &conf, const std::string &id="")
 Create new object of the SCT_Chip class.


Static Public Attributes

const std::string s_class_name

Private Member Functions

void check_init () const
void check_init () const

Static Private Member Functions

void update (::Configuration &conf, const::ConfigurationChange *change)
void reset (::Configuration &conf, bool re_initialise_obj)
void update (::Configuration &conf, const::ConfigurationChange *change)
void reset (::Configuration &conf, bool re_initialise_obj)

Private Attributes

unsigned short m_id
unsigned short m_address
bool m_active
unsigned short m_vthr
unsigned short m_vcal
unsigned short m_delay
unsigned short m_preamp
unsigned short m_shaper
std::string m_rc_function
unsigned short m_rc_function_type
std::vector< unsigned short > m_config
float m_c_factor
float m_target
std::vector< unsigned long > m_trims
std::vector< unsigned long > m_mask
std::vector< unsigned short > m_config
std::vector< unsigned long > m_trims
std::vector< unsigned long > m_mask

Friends

class ::Configuration


Detailed Description

Chip settings, as in the production DB.

Definition at line 21 of file SCT_Chip.h.


Member Function Documentation

SCT_Chip* SCTDAL::SCT_Chip::create ::Configuration &  conf,
const std::string &  id = ""
[static]
 

Create new object of the SCT_Chip class.

Parameters:
conf configuration object
id optional identity for new object
Returns:
non-null pointer on new object in case of success or null pointer if failed

SCT_Chip* SCTDAL::SCT_Chip::create ::Configuration &  conf,
const std::string &  id = ""
[static]
 

Create new object of the SCT_Chip class.

Parameters:
conf configuration object
id optional identity for new object
Returns:
non-null pointer on new object in case of success or null pointer if failed

bool SCTDAL::SCT_Chip::destroy ::Configuration &  conf  ) 
 

Destroy object of the SCT_Chip class.

Returns:
true in case of success or false if failed

bool SCTDAL::SCT_Chip::destroy ::Configuration &  conf  ) 
 

Destroy object of the SCT_Chip class.

Returns:
true in case of success or false if failed

bool SCTDAL::SCT_Chip::get_active  )  const [inline]
 

Get "active" attribute value. Set to true for active, and false for inactive.

Definition at line 117 of file emp/SCT_Chip.h.

bool SCTDAL::SCT_Chip::get_active  )  const [inline]
 

Get "active" attribute value. Set to true for active, and false for inactive.

Definition at line 117 of file SCT_Chip.h.

unsigned short SCTDAL::SCT_Chip::get_address  )  const [inline]
 

Get "address" attribute value.

Definition at line 103 of file emp/SCT_Chip.h.

unsigned short SCTDAL::SCT_Chip::get_address  )  const [inline]
 

Get "address" attribute value.

Definition at line 103 of file SCT_Chip.h.

float SCTDAL::SCT_Chip::get_c_factor  )  const [inline]
 

Get "c_factor" attribute value.

Definition at line 237 of file emp/SCT_Chip.h.

float SCTDAL::SCT_Chip::get_c_factor  )  const [inline]
 

Get "c_factor" attribute value.

Definition at line 237 of file SCT_Chip.h.

const std::vector<unsigned short>& SCTDAL::SCT_Chip::get_config  )  const [inline]
 

Get "config" attribute value. A list of 11 numbers. Usually looks something like "1 3 1 0 0 0 0 0 1 0 1" but the penultimate digit is sometimes a 1, and the third digit is sometimes a 1 or a 2.

Definition at line 223 of file emp/SCT_Chip.h.

const std::vector<unsigned short>& SCTDAL::SCT_Chip::get_config  )  const [inline]
 

Get "config" attribute value. A list of 11 numbers. Usually looks something like "1 3 1 0 0 0 0 0 1 0 1" but the penultimate digit is sometimes a 1, and the third digit is sometimes a 1 or a 2.

Definition at line 223 of file SCT_Chip.h.

unsigned short SCTDAL::SCT_Chip::get_delay  )  const [inline]
 

Get "delay" attribute value.

Definition at line 157 of file emp/SCT_Chip.h.

unsigned short SCTDAL::SCT_Chip::get_delay  )  const [inline]
 

Get "delay" attribute value.

Definition at line 157 of file SCT_Chip.h.

unsigned short SCTDAL::SCT_Chip::get_id  )  const [inline]
 

Get "id" attribute value.

Definition at line 90 of file emp/SCT_Chip.h.

unsigned short SCTDAL::SCT_Chip::get_id  )  const [inline]
 

Get "id" attribute value.

Definition at line 90 of file SCT_Chip.h.

const std::vector<unsigned long>& SCTDAL::SCT_Chip::get_mask  )  const [inline]
 

Get "mask" attribute value.

Definition at line 276 of file emp/SCT_Chip.h.

const std::vector<unsigned long>& SCTDAL::SCT_Chip::get_mask  )  const [inline]
 

Get "mask" attribute value.

Definition at line 276 of file SCT_Chip.h.

unsigned short SCTDAL::SCT_Chip::get_preamp  )  const [inline]
 

Get "preamp" attribute value.

Definition at line 170 of file emp/SCT_Chip.h.

unsigned short SCTDAL::SCT_Chip::get_preamp  )  const [inline]
 

Get "preamp" attribute value.

Definition at line 170 of file SCT_Chip.h.

const std::string& SCTDAL::SCT_Chip::get_rc_function  )  const [inline]
 

Get "rc_function" attribute value.

Definition at line 196 of file emp/SCT_Chip.h.

const std::string& SCTDAL::SCT_Chip::get_rc_function  )  const [inline]
 

Get "rc_function" attribute value.

Definition at line 196 of file SCT_Chip.h.

unsigned short SCTDAL::SCT_Chip::get_rc_function_type  )  const [inline]
 

Get "rc_function_type" attribute value.

Definition at line 209 of file emp/SCT_Chip.h.

unsigned short SCTDAL::SCT_Chip::get_rc_function_type  )  const [inline]
 

Get "rc_function_type" attribute value.

Definition at line 209 of file SCT_Chip.h.

unsigned short SCTDAL::SCT_Chip::get_shaper  )  const [inline]
 

Get "shaper" attribute value.

Definition at line 183 of file emp/SCT_Chip.h.

unsigned short SCTDAL::SCT_Chip::get_shaper  )  const [inline]
 

Get "shaper" attribute value.

Definition at line 183 of file SCT_Chip.h.

float SCTDAL::SCT_Chip::get_target  )  const [inline]
 

Get "target" attribute value.

Definition at line 250 of file emp/SCT_Chip.h.

float SCTDAL::SCT_Chip::get_target  )  const [inline]
 

Get "target" attribute value.

Definition at line 250 of file SCT_Chip.h.

const std::vector<unsigned long>& SCTDAL::SCT_Chip::get_trims  )  const [inline]
 

Get "trims" attribute value.

Definition at line 263 of file emp/SCT_Chip.h.

const std::vector<unsigned long>& SCTDAL::SCT_Chip::get_trims  )  const [inline]
 

Get "trims" attribute value.

Definition at line 263 of file SCT_Chip.h.

unsigned short SCTDAL::SCT_Chip::get_vcal  )  const [inline]
 

Get "vcal" attribute value.

Definition at line 144 of file emp/SCT_Chip.h.

unsigned short SCTDAL::SCT_Chip::get_vcal  )  const [inline]
 

Get "vcal" attribute value.

Definition at line 144 of file SCT_Chip.h.

unsigned short SCTDAL::SCT_Chip::get_vthr  )  const [inline]
 

Get "vthr" attribute value.

Definition at line 131 of file emp/SCT_Chip.h.

unsigned short SCTDAL::SCT_Chip::get_vthr  )  const [inline]
 

Get "vthr" attribute value.

Definition at line 131 of file SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_active bool  value  )  [inline]
 

Set "active" attribute value. Set to true for active, and false for inactive.

Definition at line 125 of file emp/SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_active bool  value  )  [inline]
 

Set "active" attribute value. Set to true for active, and false for inactive.

Definition at line 125 of file SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_address unsigned short  value  )  [inline]
 

Set "address" attribute value.

Definition at line 110 of file emp/SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_address unsigned short  value  )  [inline]
 

Set "address" attribute value.

Definition at line 110 of file SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_c_factor float  value  )  [inline]
 

Set "c_factor" attribute value.

Definition at line 244 of file emp/SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_c_factor float  value  )  [inline]
 

Set "c_factor" attribute value.

Definition at line 244 of file SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_config const std::vector< unsigned short > &  value  )  [inline]
 

Set "config" attribute value. A list of 11 numbers. Usually looks something like "1 3 1 0 0 0 0 0 1 0 1" but the penultimate digit is sometimes a 1, and the third digit is sometimes a 1 or a 2.

Definition at line 231 of file emp/SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_config const std::vector< unsigned short > &  value  )  [inline]
 

Set "config" attribute value. A list of 11 numbers. Usually looks something like "1 3 1 0 0 0 0 0 1 0 1" but the penultimate digit is sometimes a 1, and the third digit is sometimes a 1 or a 2.

Definition at line 231 of file SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_delay unsigned short  value  )  [inline]
 

Set "delay" attribute value.

Definition at line 164 of file emp/SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_delay unsigned short  value  )  [inline]
 

Set "delay" attribute value.

Definition at line 164 of file SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_id unsigned short  value  )  [inline]
 

Set "id" attribute value.

Definition at line 97 of file emp/SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_id unsigned short  value  )  [inline]
 

Set "id" attribute value.

Definition at line 97 of file SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_mask const std::vector< unsigned long > &  value  )  [inline]
 

Set "mask" attribute value.

Definition at line 283 of file emp/SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_mask const std::vector< unsigned long > &  value  )  [inline]
 

Set "mask" attribute value.

Definition at line 283 of file SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_preamp unsigned short  value  )  [inline]
 

Set "preamp" attribute value.

Definition at line 177 of file emp/SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_preamp unsigned short  value  )  [inline]
 

Set "preamp" attribute value.

Definition at line 177 of file SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_rc_function const std::string &  value  )  [inline]
 

Set "rc_function" attribute value.

Definition at line 203 of file emp/SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_rc_function const std::string &  value  )  [inline]
 

Set "rc_function" attribute value.

Definition at line 203 of file SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_rc_function_type unsigned short  value  )  [inline]
 

Set "rc_function_type" attribute value.

Definition at line 216 of file emp/SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_rc_function_type unsigned short  value  )  [inline]
 

Set "rc_function_type" attribute value.

Definition at line 216 of file SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_shaper unsigned short  value  )  [inline]
 

Set "shaper" attribute value.

Definition at line 190 of file emp/SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_shaper unsigned short  value  )  [inline]
 

Set "shaper" attribute value.

Definition at line 190 of file SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_target float  value  )  [inline]
 

Set "target" attribute value.

Definition at line 257 of file emp/SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_target float  value  )  [inline]
 

Set "target" attribute value.

Definition at line 257 of file SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_trims const std::vector< unsigned long > &  value  )  [inline]
 

Set "trims" attribute value.

Definition at line 270 of file emp/SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_trims const std::vector< unsigned long > &  value  )  [inline]
 

Set "trims" attribute value.

Definition at line 270 of file SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_vcal unsigned short  value  )  [inline]
 

Set "vcal" attribute value.

Definition at line 151 of file emp/SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_vcal unsigned short  value  )  [inline]
 

Set "vcal" attribute value.

Definition at line 151 of file SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_vthr unsigned short  value  )  [inline]
 

Set "vthr" attribute value.

Definition at line 138 of file emp/SCT_Chip.h.

bool SCTDAL::SCT_Chip::set_vthr unsigned short  value  )  [inline]
 

Set "vthr" attribute value.

Definition at line 138 of file SCT_Chip.h.


The documentation for this class was generated from the following files:
Generated on Fri Dec 16 19:42:17 2005 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5