public class EcalGainDriver
extends org.lcsim.util.Driver
Modifier and Type | Field and Description |
---|---|
private EcalGain |
converter |
private String |
ecalReadoutName
ecalCollectionName "type" (must match detector-data)
|
private String |
inputHitsCollectionName |
private boolean |
isTransient |
private String |
outputHitsCollectionName |
Constructor and Description |
---|
EcalGainDriver() |
Modifier and Type | Method and Description |
---|---|
void |
detectorChanged(org.lcsim.geometry.Detector detector) |
void |
process(org.lcsim.event.EventHeader event) |
void |
setGain(double gain)
Set a constant gain factor in the converter for all channels.
|
void |
setInputHitsCollectionName(String inputHitsCollectionName)
Set the input
CalorimeterHit collection name, |
void |
setIsTransient(boolean val) |
void |
setOutputHitsCollectionName(String name)
Set the output
CalorimeterHit collection name, |
void |
setUse2014Gain(boolean use2014Gain)
Set to
true to use the "2014" gain formula: |
void |
setUseDAQConfig(boolean state)
Sets whether the driver should use the DAQ configuration from EvIO file for its parameters.
|
private final String ecalReadoutName
private String inputHitsCollectionName
private String outputHitsCollectionName
private boolean isTransient
private EcalGain converter
public void setIsTransient(boolean val)
public void process(org.lcsim.event.EventHeader event)
process
in class org.lcsim.util.Driver
public void setUseDAQConfig(boolean state)
state
- - true
indicates that the configuration should be read from the DAQ data in an EvIO
file. Setting this to false
will cause the driver to use its regular manually-defined
settings and pull gains and pedestals from the conditions database.public void setUse2014Gain(boolean use2014Gain)
true
to use the "2014" gain formula:channelGain * adcSum * gainFactor * readoutPeriod
Set to false
to use the gain formula for the Test Run:
gain * adcSum * ECalUtils.MeV
use2014Gain
- True to use 2014 gain formulation.public void setGain(double gain)
gain
- The constant gain value.public void detectorChanged(org.lcsim.geometry.Detector detector)
detectorChanged
in class org.lcsim.util.Driver
public void setInputHitsCollectionName(String inputHitsCollectionName)
CalorimeterHit
collection name,ecalCollectionName
- The CalorimeterHit
collection name.public void setOutputHitsCollectionName(String name)
CalorimeterHit
collection name,ecalCollectionName
- The CalorimeterHit
collection name.Copyright © 2019. All rights reserved.