public class SimToDigiDriver extends Driver
SimTrackerHit
objects collections
found in a simulated event into a collection of DigiTrackerHit
objects.
The actual conversion of a group of SimTrackerHits produced by a particle
crossing sensitive detector into a group DigiTrackerHits is done by the
SimToDigiConverter
object supplied in the constructor. The driver handles reading and
writing collections, dividing SimTrackerHits into groups corresponding to
single particle-sensor crossings, passing those groups to the SimToDigiConverter,
and combining DigiTrackerHits corresponding to the same channel.
On input, lists of SimTrackerHits with names added through calls to set("ADD_INPUT_LIST_NAME", name) will be processed. If no input list names have been added, all SimTrackerHit lists found in the event will be processed.
On output, a map of Sensor
objects to lists of created DigiTrackerHits
is added to the event, with a name supplied through a call to set("OUTPUT_MAP_NAME", name)
(type HashMap<Sensor, ArrayList<DigiTrackerHit>>).
Driver.AbortRunException, Driver.NextEventException
Modifier and Type | Field and Description |
---|---|
protected SimToDigiConverter |
_converter |
protected double |
_distCut2 |
protected ArrayList<String> |
_inListNames |
protected String |
_outMapName |
HLEVEL_DEFAULT, HLEVEL_FULL, HLEVEL_HIGH, HLEVEL_NORMAL, HLEVEL_OFF
Constructor and Description |
---|
SimToDigiDriver(SimToDigiConverter converter)
Create digitization driver with the given SimToDigiConverter and the default
distance cut of 200 microns.
|
Modifier and Type | Method and Description |
---|---|
SimToDigiConverter |
getConverter()
Returns SimToDigiConverter object used by this driver.
|
void |
process(EventHeader event)
Called by the framework to process an event.
|
void |
set(String name,
double value)
Set any double parameter.
|
void |
set(String name,
String value)
Set any String parameter.
|
void |
setConverter(SimToDigiConverter converter)
Set SimToDigiConverter to be used by this driver.
|
add, clearStatistics, contains, detectorChanged, drivers, endOfData, getConditionsManager, getHistogramLevel, getLogger, getName, getRandom, printStatistics, processChildren, remove, resume, setHistogramLevel, setLogLevel, setRandom, startOfData, suspend
protected SimToDigiConverter _converter
protected String _outMapName
protected double _distCut2
public SimToDigiDriver(SimToDigiConverter converter)
public SimToDigiConverter getConverter()
public void setConverter(SimToDigiConverter converter)
public void set(String name, double value)
name
- Name of parameter to be set (case is ignored).value
- Value to be assigned to the parameter.NoSuchParameterException
- Thrown if the supplied parameter name is unknown.
Subclasses may catch this exception after a call to super.set()
and set their own parameters.public void set(String name, String value)
name
- Name of parameter to be set. Case is ignored.value
- Value to be assigned to the parameter.NoSuchParameterException
- Thrown if the supplied parameter name is unknown.
Subclasses may catch this exception after a call to super.set()
and set their own parameters.public 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
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.