public class EcalGain extends Object
Modifier and Type | Field and Description |
---|---|
private FADCConfig |
config
The DAQ configuration from EVIO used to set EcalRawConverter parameters if useDAQConfig=true.
|
private boolean |
constantGain
If true, use a single gain factor for all channels.
|
private EcalConditions |
ecalConditions |
private double |
gain
A single gain factor for all channels (only used if constantGain=true)
|
private boolean |
use2014Gain
If true, the relationship between ADC and GeV is a convention that includes readoutPeriod and a global scaling
factor.
|
private boolean |
useDAQConfig
If true, use the DAQ configuration from EVIO to set EcalRawConverter parameters.
|
Constructor and Description |
---|
EcalGain()
Currently sets up a listener for DAQ configuration from EVIO.
|
Modifier and Type | Method and Description |
---|---|
double |
adcToEnergy(double adcSum,
long cellID)
return energy (units of GeV) corresponding to the ADC sum and crystal ID
|
EcalChannelConstants |
findChannel(long cellID)
Convert physical ID to gain value.
|
void |
setDetector(org.lcsim.geometry.Detector detector)
Must be set when an object EcalRawConverter is created.
|
void |
setGain(double gain)
Set global gain value and turn on constant gain.
|
void |
setUse2014Gain(boolean use2014Gain)
Chooses which ADC --> Energy convention is used.
|
void |
setUseDAQConfig(boolean state)
Set whether to use DAQ configuration read from EVIO to set EcalRawConverter parameters.
|
private boolean constantGain
private double gain
private boolean use2014Gain
private boolean useDAQConfig
private EcalConditions ecalConditions
private FADCConfig config
public EcalGain()
public void setUseDAQConfig(boolean state)
public void setGain(double gain)
public void setUse2014Gain(boolean use2014Gain)
public double adcToEnergy(double adcSum, long cellID)
public void setDetector(org.lcsim.geometry.Detector detector)
detector
- (long)public EcalChannelConstants findChannel(long cellID)
cellID
- (long)Copyright © 2019. All rights reserved.