public class LCSimEngRunEventBuilder extends LCSimTestRunEventBuilder
LCSimEventBuilder
implementation for the
Engineering Run and the Commissioning Run for converting EVIO to LCIO events.
It has several modifications from the Test Run builder including different values for certain bank tags.
Additionally, this builder will write DAQ config information, EPICS control data, and scalar bank data into the output LCSim events if these banks are present in the EVIO data.
Modifier and Type | Field and Description |
---|---|
private Long |
currentTiTimeOffset
The current TI time offset in nanoseconds from the run manager.
|
private EpicsEvioProcessor |
epicsProcessor
EVIO processor for extracting EPICS data.
|
private static Logger |
LOGGER
Setup logger.
|
private ScalersEvioProcessor |
scalerProcessor
EVIO processor for extracting scaler data.
|
private SvtEventFlagger |
svtEventFlagger
Writes event flags describing the SVT state.
|
private long |
timestampCycle
Modulus of TI timestamp offset (units of nanoseconds).
|
private TriggerConfigEvioReader |
triggerConfigReader
Reads trigger config.
|
ecalReader, intBanks, sspBankTag, sspCrateBankTag, svtReader, time
Constructor and Description |
---|
LCSimEngRunEventBuilder()
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
conditionsChanged(org.lcsim.conditions.ConditionsEvent conditionsEvent) |
protected long |
getTime(List<AbstractIntData> triggerList)
Get the time from the TI data with time offset applied from run database.
|
org.lcsim.event.EventHeader |
makeLCSimEvent(org.jlab.coda.jevio.EvioEvent evioEvent)
Make an lcsim event from EVIO data.
|
void |
readEvioEvent(org.jlab.coda.jevio.EvioEvent evioEvent)
Pre-read an EVIO event.
|
private void |
writeEpicsData(org.lcsim.event.EventHeader lcsimEvent)
Write
EpicsData into the event. |
private void |
writeScalerData(org.jlab.coda.jevio.EvioEvent evioEvent,
org.lcsim.event.EventHeader lcsimEvent)
Write EVIO scaler data into the LCSim event, if it exists.
|
getEventData, getTriggerData, setEcalHitCollectionName
private static final Logger LOGGER
private final EpicsEvioProcessor epicsProcessor
private final ScalersEvioProcessor scalerProcessor
private final SvtEventFlagger svtEventFlagger
private TriggerConfigEvioReader triggerConfigReader
private final long timestampCycle
private Long currentTiTimeOffset
public void conditionsChanged(org.lcsim.conditions.ConditionsEvent conditionsEvent)
conditionsChanged
in interface org.lcsim.conditions.ConditionsListener
conditionsChanged
in class LCSimTestRunEventBuilder
protected long getTime(List<AbstractIntData> triggerList)
getTime
in class LCSimTestRunEventBuilder
triggerList
- the TI data listpublic org.lcsim.event.EventHeader makeLCSimEvent(org.jlab.coda.jevio.EvioEvent evioEvent)
makeLCSimEvent
in interface LCSimEventBuilder
makeLCSimEvent
in class LCSimTestRunEventBuilder
evioEvent
- the input EVIO eventpublic void readEvioEvent(org.jlab.coda.jevio.EvioEvent evioEvent)
readEvioEvent
in interface LCSimEventBuilder
readEvioEvent
in class LCSimTestRunEventBuilder
evioEvent
- the EVIO eventprivate void writeEpicsData(org.lcsim.event.EventHeader lcsimEvent)
EpicsData
into the event.lcsimEvent
- the lcsim eventprivate void writeScalerData(org.jlab.coda.jevio.EvioEvent evioEvent, org.lcsim.event.EventHeader lcsimEvent)
evioEvent
- The EVIO event data.lcsimEvent
- The output LCSim event.Copyright © 2019. All rights reserved.