public class McTrack extends Object
We use a SortedSet to guarantee ordering in s.
The first state is the start of the trajectory (production or entering detector volume) and the last is the end of the trajectory (decay or volume exit).
The VTrack's represent the changing state of the track.
Users may fetch the entire set of states or may request the state at a specified surface.
Modifier and Type | Field and Description |
---|---|
(package private) int |
_mctrackid |
(package private) int |
_parentword |
(package private) int |
_pdgid |
private SortedSet |
_states |
private int |
_version |
private static McTrackState |
BadState |
Constructor and Description |
---|
McTrack()
Construct a default instance.
|
McTrack(McTrack mct)
Construct a replica of the McTrack (copy constructor).
|
McTrack(Set states,
int mcid,
int parentword,
int pdgid)
Construct n instance from a list of states, the MC Track ID, and a
packed parent word (see gtrbase/McParent).
|
Modifier and Type | Method and Description |
---|---|
void |
addState(McTrackState state)
Add an McTrackState to this track.
|
boolean |
equals(McTrack mct)
Equality
|
private int |
find(Surface srf) |
boolean |
hasSurface(Surface srf)
Return whether a surface can be matched.
|
boolean |
isValid()
Test track validity.
|
int |
mcTrackId()
Return the MC Id for the Track creating this track's states.
|
boolean |
notEquals(McTrack mct)
Test inequality.
|
McParent |
parent()
Return the parentage of this particle.
|
int |
pdgId()
Return the PDG particle Id for the Track creating this track's states.
|
void |
setMcTrackId(int mctrackid)
Set the MC Id for the Track creating this track's states.
|
void |
setParent(int parentword)
Set the MC parentage of this particle
|
void |
setParent(McParent parent)
Set the MC parentage of this particle.
|
void |
setPdgId(int pdgid)
Set the PDG particle Id for the Track creating this track's states
|
McTrackState |
state(Surface srf)
Return the state for a particular surface.
|
Set |
states()
Return the list of states.
|
String |
toString()
output stream
|
private static McTrackState BadState
private int _version
private SortedSet _states
int _mctrackid
int _pdgid
int _parentword
public McTrack()
public McTrack(McTrack mct)
mct
- The McTrack to replicate.public McTrack(Set states, int mcid, int parentword, int pdgid)
states
- A list of track states.mcid
- The MC track ID.parentword
- A packed parent word.pdgid
- The pdgid associated with this track.private int find(Surface srf)
public boolean isValid()
public Set states()
public boolean hasSurface(Surface srf)
srf
- The surface to check.public McTrackState state(Surface srf)
srf
- The surface for which the state is requested.public void addState(McTrackState state)
state
- The McTrackState to add.public int mcTrackId()
public void setMcTrackId(int mctrackid)
mctrackid
- The MC track ID.public int pdgId()
public void setPdgId(int pdgid)
pdgid
- The MC track pdg ID.public McParent parent()
public void setParent(McParent parent)
parent
- The MCParent for this track's MC track.public void setParent(int parentword)
parentword
- The packed MC parentage.public String toString()
public boolean equals(McTrack mct)
mct
- The McTrack to test.public boolean notEquals(McTrack mct)
mct
- The McTrack to test.Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.