public class DetectorSimulator extends RandomSimulator
The base simulator is constructed from the detector reference. Subclasses add layer simulators either directly or by extraction from other detector simulators.
Methods to add or drop clusters invoke the corresponding method on each of the layer simulators.
Although this class is not abstract, the constructor is hidden and users must provide subclasses to instantiate. The expectation is that users will add layers or detectors in the subclass constructor.
Modifier and Type | Field and Description |
---|---|
private Detector |
_det |
private Map |
_lsims |
Modifier | Constructor and Description |
---|---|
protected |
DetectorSimulator(Detector det) |
Modifier and Type | Method and Description |
---|---|
void |
addClusters(VTrack trv)
Use the specified track to add clusters with each layer simulator.
|
void |
addClusters(VTrack trv,
int mcid)
Use the specified track to add clusters with each layer simulator.
|
protected DetSimReturnStatus |
addDetectorSimulator(DetectorSimulator dsim) |
protected DetSimReturnStatus |
addLayerSimulator(String name,
LayerSimulator lsim) |
Detector |
detector()
Return the detector.
|
void |
dropClusters()
Drop clusters from each layer simulator.
|
List |
generators()
Return the list of generators.
|
void |
printGenerators()
write out the generators
|
String |
toString()
output stream
|
registerGenerators
protected DetectorSimulator(Detector det)
protected DetSimReturnStatus addLayerSimulator(String name, LayerSimulator lsim)
protected DetSimReturnStatus addDetectorSimulator(DetectorSimulator dsim)
public Detector detector()
public List generators()
generators
in class RandomSimulator
public void addClusters(VTrack trv)
trv
- VTrack for which to generate clusterspublic void addClusters(VTrack trv, int mcid)
trv
- VTrack for which to generate clustersmcid
- MC track ID to associate with this trackpublic void dropClusters()
public void printGenerators()
public String toString()
toString
in class RandomSimulator
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.