public class LCIODriver extends Driver
setIgnoreCollection(String)
, setIgnoreCollections(String[])
,
setWriteOnlyCollection(String)
, and setWriteOnlyCollections(String[])
.org.lcsim.util.lcio.LCIOWriter
Driver.AbortRunException, Driver.NextEventException
Modifier and Type | Field and Description |
---|---|
private Set<String> |
listIgnore |
private Set<String> |
listKeep |
private File |
outputFile |
private LCIOWriter |
writer |
HLEVEL_DEFAULT, HLEVEL_FULL, HLEVEL_HIGH, HLEVEL_NORMAL, HLEVEL_OFF
Constructor and Description |
---|
LCIODriver() |
LCIODriver(File file) |
LCIODriver(File file,
Collection<String> listIgnore) |
LCIODriver(String file) |
LCIODriver(String file,
Collection<String> listIgnore) |
Modifier and Type | Method and Description |
---|---|
private static String |
addFileExtension(String filePath) |
protected void |
endOfData()
Called when all data processing is finished.
|
protected void |
process(EventHeader event)
Called by the framework to process an event.
|
void |
setIgnoreCollection(String ignoreCollection) |
void |
setIgnoreCollections(String[] ignoreCollections) |
void |
setOutputFilePath(String filePath) |
private void |
setupWriter() |
void |
setWriteOnlyCollection(String writeOnlyCollection) |
void |
setWriteOnlyCollections(String[] keepCollections) |
protected void |
startOfData()
Called before the first event is processed, or after a rewind.
|
protected void |
suspend()
Called by the framework when event processing is suspended.
|
add, clearStatistics, contains, detectorChanged, drivers, getConditionsManager, getHistogramLevel, getLogger, getName, getRandom, printStatistics, processChildren, remove, resume, setHistogramLevel, setLogLevel, setRandom
private LCIOWriter writer
private File outputFile
public LCIODriver(String file)
public LCIODriver(File file)
public LCIODriver(String file, Collection<String> listIgnore)
public LCIODriver(File file, Collection<String> listIgnore)
public LCIODriver()
public void setOutputFilePath(String filePath)
public void setIgnoreCollections(String[] ignoreCollections)
public void setWriteOnlyCollections(String[] keepCollections)
public void setIgnoreCollection(String ignoreCollection)
public void setWriteOnlyCollection(String writeOnlyCollection)
private void setupWriter()
protected void startOfData()
Driver
startOfData
in class Driver
protected void endOfData()
Driver
protected void process(EventHeader event)
Driver
super.process(event)
to cause the child processes to be executed.
In addition the process event call can throw some special exceptions:
process
in class Driver
event
- The event to be processedDriver.NextEventException
,
Driver.AbortRunException
protected void suspend()
Driver
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.