public class DatabaseDAQConfigDriver extends DAQConfigDriver
DatabaseDAQConfigDriver
is a variant of the
standard DAQ configuration driver that reads configuration data from
the run database instead of either local files or an EvIO file.Modifier and Type | Field and Description |
---|---|
private static TriggerConfigData.Crate[] |
CRATES |
Constructor and Description |
---|
DatabaseDAQConfigDriver() |
Modifier and Type | Method and Description |
---|---|
void |
detectorChanged(org.lcsim.geometry.Detector detector)
Updates the DAQ configuration manager with DAQ settings from the
run database.
|
private static String[][] |
getDataFileArrays(TriggerConfigData triggerConfig)
Parses the text dump containing the DAQ configuration and parses
it into lines.
|
void |
process(org.lcsim.event.EventHeader event)
When loading from the database, information is pulled on detector
change rather than by looking for a specific object in event data.
|
getDataFileArrays, getRunNumber, setDataFileRepository, setReadDataFiles, setRunNumber, startOfData
private static final TriggerConfigData.Crate[] CRATES
public void detectorChanged(org.lcsim.geometry.Detector detector)
detectorChanged
in class org.lcsim.util.Driver
detector
- - The detector object. This is not actually used.public void process(org.lcsim.event.EventHeader event)
process
is overwritten to do nothing.process
in class DAQConfigDriver
event
- - Object containing event data.private static final String[][] getDataFileArrays(TriggerConfigData triggerConfig) throws IOException
triggerConfig
- - The DAQ configuration dump object.IOException
- Occurs if there is an error reading the dump
stream.Copyright © 2019. All rights reserved.