private class BasicReadoutChip.ADC extends Object
Modifier and Type | Field and Description |
---|---|
private double |
_dynamic_range |
private int |
_nbits |
Modifier | Constructor and Description |
---|---|
private |
BasicReadoutChip.ADC() |
Modifier and Type | Method and Description |
---|---|
private double |
conversionConstant()
Compute the conversion constant in ADC/fC
|
int |
convert(double charge)
Perform analog to digital conversion
|
double |
decodeCharge(int adc_value)
Decode charge from ADC value
|
private int |
maxADCValue()
Compute the maximum ADC value
|
private void |
setDynamicRange(double dynamic_range)
Set the dynamic range in fC
|
private void |
setNbits(int nbits)
Set the ADC resolution in number of bits.
|
private void setNbits(int nbits)
nbits
- number of bitsprivate void setDynamicRange(double dynamic_range)
dynamic
- rangeprivate int maxADCValue()
private double conversionConstant()
public int convert(double charge)
public double decodeCharge(int adc_value)
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.