SctData.ChipConfiguration Class Reference

Collaboration diagram for SctData.ChipConfiguration:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ChipConfiguration (ABCDChip data)
ABCDChip getData ()
ChipOptions getOptions ()
boolean isActive ()
void setActive (boolean active)
 set the chip activity status
byte getAddress ()
 There is a had-coded address associated with each chip position on the module.
byte getTrimTarget ()
void setTrimTarget (byte target)
 set the trim target
byte getTrim (int channel)
 get the trim
void setTrim (int channel, byte trim) throws IllegalArgumentException
 set the trim
byte getThreshold ()
 get the value of the threshold DAC setting?
void setThreshold (byte threshold)
 set the threshold DAC setting - 0->255 No need for exception as threshold can take full range of byte values
byte getCalCharge ()
 get the value of the calibration charge DAC setting
void setCalCharge (byte calCharge)
 set the value of the calibration charge DAC setting No need for exception as calCharge can take full range of byte values
byte getStrobeDelay ()
 get the value of the strobe delay DAC setting.
void setStrobeDelay (byte strobeDelay) throws IllegalArgumentException
 set the value of the strobe delay DAC setting
void resetMask ()
 unmask all channels
void setMask (int ichannel, boolean value)
 mask mutator
void mask (int ichannel)
 mask mutator
void unmask (int ichannel)
 mask mutator
boolean isMasked (int ichannel)
 mask access
float getCalFactor ()
 accessor
String getClassName ()
void readObject (IStream s, ObjectManager o) throws java.io.IOException
void write (OStream s, ObjectManager o) throws java.io.IOException
byte getRcFunctionIndex ()
 A functional representation of the response curve (equivalent threshold as a function of charge) so that one may request ROD to set the threshold to a value specified in fC.
void setRcFunctionIndex (byte index) throws IllegalArgumentException
 Response curve function index.
double getRcParam (int ipar)
 Get the response curve parameter.
void setRcParam (int ipar, double val)
 Set the response curve parameter.
void setCalFactor (float factor)
 theshold calibration factor by which the nominal threshold must be multiplied mutator

Static Public Member Functions

static Streamable read (IStream s, ObjectManager o) throws java.io.IOException

Package Attributes

ABCDChip data
ChipOptions options

Detailed Description

Author:
Matthew Palmer

Definition at line 16 of file ChipConfiguration.java.


Member Function Documentation

byte SctData.ChipConfiguration.getAddress  ) 
 

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

Returns:
the address.

Definition at line 44 of file ChipConfiguration.java.

References sctConf.ABCDChip.address, and SctData.ChipConfiguration.data.

byte SctData.ChipConfiguration.getRcFunctionIndex  ) 
 

A functional representation of the response curve (equivalent threshold as a function of charge) so that one may request ROD to set the threshold to a value specified in fC.

get the index (type) of the RC function

Returns:
0 - no calibration information 1 - second order polynomial 2 - "grillo" function 3 - exponential 4 - straight line fit

Definition at line 140 of file ChipConfiguration.java.

double SctData.ChipConfiguration.getRcParam int  ipar  ) 
 

Get the response curve parameter.

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

Definition at line 151 of file ChipConfiguration.java.

byte SctData.ChipConfiguration.getTrim int  channel  ) 
 

get the trim

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

Definition at line 59 of file ChipConfiguration.java.

References SctData.ChipConfiguration.data, and sctConf.ABCDChip.trim.

byte SctData.ChipConfiguration.getTrimTarget  ) 
 

Returns:
the trim target

Definition at line 49 of file ChipConfiguration.java.

References SctData.ChipConfiguration.data, and sctConf.ABCDChip.target.

boolean SctData.ChipConfiguration.isActive  ) 
 

Returns:
true if chip is participating in a scan

Definition at line 32 of file ChipConfiguration.java.

References sctConf.ABCDChip.active, and SctData.ChipConfiguration.data.

boolean SctData.ChipConfiguration.isMasked int  ichannel  ) 
 

mask access

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

Definition at line 127 of file ChipConfiguration.java.

void SctData.ChipConfiguration.mask int  ichannel  ) 
 

mask mutator

Parameters:
channel index 0->127

Definition at line 117 of file ChipConfiguration.java.

void SctData.ChipConfiguration.setActive boolean  active  ) 
 

set the chip activity status

Parameters:
active if set true

Definition at line 37 of file ChipConfiguration.java.

References sctConf.ABCDChip.active, and SctData.ChipConfiguration.data.

void SctData.ChipConfiguration.setCalFactor float  factor  ) 
 

theshold calibration factor by which the nominal threshold must be multiplied mutator

Parameters:
the factor

Definition at line 169 of file ChipConfiguration.java.

void SctData.ChipConfiguration.setMask int  ichannel,
boolean  value
 

mask mutator

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

Definition at line 111 of file ChipConfiguration.java.

void SctData.ChipConfiguration.setRcFunctionIndex byte  index  )  throws IllegalArgumentException
 

Response curve function index.

Parameters:
 

Definition at line 145 of file ChipConfiguration.java.

void SctData.ChipConfiguration.setRcParam int  ipar,
double  val
 

Set the response curve parameter.

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

Definition at line 159 of file ChipConfiguration.java.

void SctData.ChipConfiguration.setTrim int  channel,
byte  trim
throws IllegalArgumentException
 

set the trim

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

Definition at line 64 of file ChipConfiguration.java.

References SctData.ChipConfiguration.data, and sctConf.ABCDChip.trim.

void SctData.ChipConfiguration.setTrimTarget byte  target  ) 
 

set the trim target

Parameters:
target in mV?

Definition at line 54 of file ChipConfiguration.java.

References SctData.ChipConfiguration.data, and sctConf.ABCDChip.target.

void SctData.ChipConfiguration.unmask int  ichannel  ) 
 

mask mutator

Parameters:
channel index 0->127

Definition at line 122 of file ChipConfiguration.java.


The documentation for this class was generated from the following file:
Generated on Mon Feb 6 14:16:59 2006 for SCT DAQ/DCS Software - Java by  doxygen 1.4.6