public class MergeEventsDriver extends Driver
Driver.AbortRunException, Driver.NextEventException
Modifier and Type | Field and Description |
---|---|
protected Map<String,Map<Long,SimCalorimeterHit>> |
caloHitMaps |
protected EventHeader |
currentEvent |
protected int |
currentEventNumber |
protected Collection<String> |
ignoreCollections |
protected int |
nEvts |
protected String |
outputFile |
protected boolean |
writeOnlyFullEvents |
protected LCIOWriter |
writer |
HLEVEL_DEFAULT, HLEVEL_FULL, HLEVEL_HIGH, HLEVEL_NORMAL, HLEVEL_OFF
Constructor and Description |
---|
MergeEventsDriver() |
Modifier and Type | Method and Description |
---|---|
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 collectionName) |
void |
setIgnoreCollections(String[] collectionNames) |
void |
setNumberOfEvents(int nEvts)
Number of events merged into one event.
|
void |
setOutputFile(String outputFile)
Defines the output file
|
void |
setWriteOnlyFullEvents(boolean writeOnlyFullEvents)
Decides if an event at the end of the sample which has less than the desired number
of events is written to the output file
|
protected void |
startOfData()
Called before the first event is processed, or after a rewind.
|
protected void |
writeCurrentEvent() |
add, clearStatistics, contains, detectorChanged, doProcess, drivers, getConditionsManager, getHistogramLevel, getLogger, getName, getRandom, pathToMother, printStatistics, processChildren, remove, resume, setHistogramLevel, setLogLevel, setRandom, suspend
protected int nEvts
protected String outputFile
protected EventHeader currentEvent
protected int currentEventNumber
protected LCIOWriter writer
protected Collection<String> ignoreCollections
protected boolean writeOnlyFullEvents
protected Map<String,Map<Long,SimCalorimeterHit>> caloHitMaps
public void setNumberOfEvents(int nEvts)
nEvts
- number of eventspublic void setWriteOnlyFullEvents(boolean writeOnlyFullEvents)
writeOnlyFullEvents
- public void setOutputFile(String outputFile)
outputFile
- public void setIgnoreCollection(String collectionName)
public void setIgnoreCollections(String[] collectionNames)
protected void startOfData()
Driver
startOfData
in class 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 endOfData()
Driver
protected void writeCurrentEvent()
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.