public class IterateGainFactorDriver
extends org.lcsim.util.Driver
Modifier and Type | Field and Description |
---|---|
private EcalConditions |
ecalConditions |
private String |
ecalReadoutName |
private Map<Integer,Double> |
gainFileGains
Read in a text file that has multiplicative factors on the original gain values.
|
String |
gainFileName |
private String |
inputCollectionName
Set the input collection name (source).
|
private String |
outputCollectionName
Set the output collection name (target).
|
Constructor and Description |
---|
IterateGainFactorDriver()
Basic no argument constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
detectorChanged(org.lcsim.geometry.Detector detector) |
EcalChannelConstants |
findChannel(long cellID)
Convert physical ID to gain value.
|
Integer |
findChannelId(long cellID) |
List<org.lcsim.event.CalorimeterHit> |
iterateHits(List<org.lcsim.event.CalorimeterHit> hits)
Copy hits to a new collection (list) while multiplying the energies by the new gain factors.
|
void |
process(org.lcsim.event.EventHeader event)
Process an event, copying the input collection to the output collection.
|
private void |
readGainFile() |
void |
setGainFile(String filename) |
void |
setInputCollectionName(String inputCollectionName) |
void |
setOutputCollectionName(String outputCollectionName) |
void |
startOfData()
Start of data hook which will make sure required arguments are set properly.
|
private EcalConditions ecalConditions
private String inputCollectionName
private String outputCollectionName
private final String ecalReadoutName
private Map<Integer,Double> gainFileGains
public String gainFileName
public IterateGainFactorDriver()
public void setInputCollectionName(String inputCollectionName)
public void setOutputCollectionName(String outputCollectionName)
public void setGainFile(String filename)
private void readGainFile()
public void detectorChanged(org.lcsim.geometry.Detector detector)
detectorChanged
in class org.lcsim.util.Driver
public List<org.lcsim.event.CalorimeterHit> iterateHits(List<org.lcsim.event.CalorimeterHit> hits)
hits
- the input hit listpublic void process(org.lcsim.event.EventHeader event)
process
in class org.lcsim.util.Driver
event
- the LCSim eventpublic void startOfData()
startOfData
in class org.lcsim.util.Driver
public EcalChannelConstants findChannel(long cellID)
cellID
- (long)public Integer findChannelId(long cellID)
Copyright © 2019. All rights reserved.