public class MCTruth extends Object
MCTruthDriver
should
be added to the processing chain (usually as the first driver).Modifier and Type | Field and Description |
---|---|
private static Comparator<SimGroup> |
_compSimGroup |
private static Comparator<TrackerCluster> |
_compTrackerCluster |
private HashMap<DigiTrackerHit,SimGroup> |
_digiToSimGroup |
private EventHeader |
_event |
private MCTruthDriver |
_mcDriver |
private HashMap<MCParticle,ArrayList<SimGroup>> |
_mcToSimGroupList |
private HashMap<MCParticle,ArrayList<TrackerCluster>> |
_mcToTrackerCluster |
private ArrayList<SimGroup> |
_missedSimGroups |
private HashMap<Sensor,ArrayList<TrackerCluster>> |
_trackingClusters |
Constructor and Description |
---|
MCTruth(MCTruthDriver mcTruthDriver,
EventHeader event) |
Modifier and Type | Method and Description |
---|---|
void |
addSimGroup(Collection<SimTrackerHit> simTrackerHits,
Collection<DigiTrackerHit> digiTrackerHits)
This method is called by DigitizationDriver to create a new SimGroup
and store it in this MCTruth object.
|
MCParticle |
getMCParticle(SimGroup simGroup)
Returns MCParticle that produced SimTrackerHits in the given SimGroup.
|
List<MCParticle> |
getMCParticles(DigiTrackerHit hit)
Returns a list of MCParticles that contributed to the given DigiTrackerHit.
|
List<MCParticle> |
getMCParticles(TrackerCluster cluster)
Returns a list of MCParticles that contributed to the given TrackerCluster.
|
List<MCParticle> |
getMCParticles(TrackerHit hit)
Returns a list of MCParticles that contributed to the given TrackerHit.
|
List<MCParticle> |
getMCParticles(TrackerHit oldHit)
Returns a list of MCParticles that contributed to the given hit.
|
List<SimGroup> |
getMissedSimGroups()
Returns a collection of all SimGroup objects containing SimTrackerHits
that did not contribute to any DigiTrackerHits.
|
Collection<SimGroup> |
getSimGroups()
Returns a collection of all SimGroup objects containing SimTrackerHits
that contributed to any DigiTrackerHits.
|
List<SimGroup> |
getSimGroups(DigiTrackerHit hit)
Returns a list of SimGroup objects containing SimTrackerHits
that contributed to the given DigiTrackerHit.
|
List<SimGroup> |
getSimGroups(MCParticle mcParticle)
Returns a list of SimGroups associated with the given MCParticle, sorted by time.
|
List<SimGroup> |
getSimGroups(TrackerCluster cluster)
Returns a list of SimGroup objects containing SimTrackerHits
that contributed to the given TrackerCluster.
|
List<SimGroup> |
getSimGroups(TrackerHit hit)
Returns a list of SimGroup objects containing SimTrackerHits
that contributed to the given TrackerHit.
|
List<SimGroup> |
getSimGroups(TrackerHit oldHit)
Returns a list of SimGroup objects containing SimTrackerHits
that contributed to the given hit.
|
List<TrackerCluster> |
getTrackerClusters(MCParticle mcParticle)
Returns a list of TrackerClusters associated with the given MCParticle, sorted by time.
|
boolean |
isGhost(OldTrackerHit hit)
Returns true if the hit supplied as an argument is a cross between hits
in stereo layer, and no MCParticle contributed to both of its parent clusters.
|
void |
setTrackerClusters(HashMap<Sensor,ArrayList<TrackerCluster>> clusters)
Called by ClusteringDriver to store a reference to the TrackerCluster map.
|
private MCTruthDriver _mcDriver
private EventHeader _event
private HashMap<Sensor,ArrayList<TrackerCluster>> _trackingClusters
private HashMap<DigiTrackerHit,SimGroup> _digiToSimGroup
private HashMap<MCParticle,ArrayList<SimGroup>> _mcToSimGroupList
private HashMap<MCParticle,ArrayList<TrackerCluster>> _mcToTrackerCluster
private static Comparator<SimGroup> _compSimGroup
private static Comparator<TrackerCluster> _compTrackerCluster
MCTruth(MCTruthDriver mcTruthDriver, EventHeader event)
public List<SimGroup> getSimGroups(DigiTrackerHit hit)
public List<SimGroup> getSimGroups(TrackerCluster cluster)
public List<SimGroup> getSimGroups(TrackerHit hit)
public List<SimGroup> getSimGroups(TrackerHit oldHit)
public Collection<SimGroup> getSimGroups()
public List<SimGroup> getMissedSimGroups()
public MCParticle getMCParticle(SimGroup simGroup)
public List<MCParticle> getMCParticles(DigiTrackerHit hit)
public List<MCParticle> getMCParticles(TrackerCluster cluster)
public List<MCParticle> getMCParticles(TrackerHit hit)
public List<MCParticle> getMCParticles(TrackerHit oldHit)
public List<SimGroup> getSimGroups(MCParticle mcParticle)
public List<TrackerCluster> getTrackerClusters(MCParticle mcParticle)
public boolean isGhost(OldTrackerHit hit)
public void addSimGroup(Collection<SimTrackerHit> simTrackerHits, Collection<DigiTrackerHit> digiTrackerHits)
public void setTrackerClusters(HashMap<Sensor,ArrayList<TrackerCluster>> clusters)
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.