public class BaseReconstructedParticle extends Object implements ReconstructedParticle
Modifier and Type | Field and Description |
---|---|
protected double |
_charge |
protected List<Cluster> |
_clusters |
protected double[] |
_covMatrix |
protected HepLorentzVector |
_fourVec |
protected double |
_goodnessOfPid |
protected double |
_mass |
protected List<ParticleID> |
_particleIds |
protected ParticleID |
_particleIdUsed |
protected List<ReconstructedParticle> |
_particles |
protected Hep3Vector |
_referencePoint |
protected List<Track> |
_tracks |
protected int |
_type |
protected Vertex |
_vertex |
Constructor and Description |
---|
BaseReconstructedParticle()
Creates a new instance of BaseReconstructedParticle
|
BaseReconstructedParticle(double mass) |
BaseReconstructedParticle(double E,
double px,
double py,
double pz) |
BaseReconstructedParticle(double E,
Hep3Vector v) |
BaseReconstructedParticle(double mass,
HepLorentzVector v) |
BaseReconstructedParticle(HepLorentzVector v) |
Modifier and Type | Method and Description |
---|---|
void |
addCluster(Cluster cluster)
Adds a cluster that has been used to create this particle.
|
void |
addParticle(ReconstructedParticle particle)
Adds a particle that has been used to create this particle.
|
void |
addParticleID(ParticleID pid)
Add a ParticleID object.
|
void |
addTrack(Track track)
Adds a track that has been used to create this particle.
|
HepLorentzVector |
asFourVector()
Returns this particle's momentum and energy as a four vector
|
double |
getCharge()
Charge of the reconstructed particle.
|
List<Cluster> |
getClusters()
The clusters that have been used for this particle.
|
double[] |
getCovMatrix()
Covariance matrix of the reconstructed particle's 4vector (10 parameters).
|
double |
getEnergy()
Energy of the reconstructed particle
|
double |
getGoodnessOfPID()
The overall goodness of the PID on a scale of [0;1].
|
double |
getMass()
Mass of the reconstructed particle, set independently from four vector quantities
|
Hep3Vector |
getMomentum()
The magnitude of the reconstructed particle's momentum
|
List<ParticleID> |
getParticleIDs()
The particle Id's sorted by their likelihood.
|
ParticleID |
getParticleIDUsed()
The particle Id used for the kinematics of this particle.
|
List<ReconstructedParticle> |
getParticles()
The reconstructed particles that have been combined to this particle.
|
Hep3Vector |
getReferencePoint()
Reference point of the reconstructedParticle parameters.
|
Vertex |
getStartVertex()
Returns the start vertex, or
null if none is known |
List<Track> |
getTracks()
The tracks that have been used for this particle.
|
int |
getType()
Type of reconstructed particle.
|
void |
set4Vector(HepLorentzVector v) |
void |
setCharge(double c) |
void |
setGoodnessOfPid(double g) |
void |
setMass(double m) |
void |
setParticleIdUsed(ParticleID id) |
void |
setReferencePoint(double x,
double y,
double z) |
void |
setReferencePoint(Hep3Vector v) |
void |
setStartVertex(Vertex vertex) |
void |
setType(int t) |
String |
toString() |
protected int _type
protected HepLorentzVector _fourVec
protected double[] _covMatrix
protected double _mass
protected double _charge
protected Hep3Vector _referencePoint
protected List<ParticleID> _particleIds
protected ParticleID _particleIdUsed
protected double _goodnessOfPid
protected List<ReconstructedParticle> _particles
protected Vertex _vertex
public BaseReconstructedParticle()
public BaseReconstructedParticle(double mass)
public BaseReconstructedParticle(HepLorentzVector v)
public BaseReconstructedParticle(double mass, HepLorentzVector v)
public BaseReconstructedParticle(double E, Hep3Vector v)
public BaseReconstructedParticle(double E, double px, double py, double pz)
public void set4Vector(HepLorentzVector v)
public void setMass(double m)
public void setCharge(double c)
public void setType(int t)
public void setReferencePoint(Hep3Vector v)
public void setReferencePoint(double x, double y, double z)
public void setParticleIdUsed(ParticleID id)
public void setGoodnessOfPid(double g)
public int getType()
getType
in interface ReconstructedParticle
public Hep3Vector getMomentum()
getMomentum
in interface ReconstructedParticle
public double getEnergy()
getEnergy
in interface ReconstructedParticle
public double[] getCovMatrix()
getCovMatrix
in interface ReconstructedParticle
public double getMass()
getMass
in interface ReconstructedParticle
public double getCharge()
getCharge
in interface ReconstructedParticle
public Hep3Vector getReferencePoint()
getReferencePoint
in interface ReconstructedParticle
public List<ParticleID> getParticleIDs()
getParticleIDs
in interface ReconstructedParticle
ParticleID
public ParticleID getParticleIDUsed()
getParticleIDUsed
in interface ReconstructedParticle
ParticleID
public double getGoodnessOfPID()
getGoodnessOfPID
in interface ReconstructedParticle
public List<ReconstructedParticle> getParticles()
getParticles
in interface ReconstructedParticle
public List<Cluster> getClusters()
getClusters
in interface ReconstructedParticle
public List<Track> getTracks()
getTracks
in interface ReconstructedParticle
public void addParticleID(ParticleID pid)
addParticleID
in interface ReconstructedParticle
pid
- The ParticleID to associate with this ReconstructedParticleParticleID
public void addParticle(ReconstructedParticle particle)
addParticle
in interface ReconstructedParticle
particle
- A ReconstructedParticle which contributes to this ReconstructedParticle.public void addCluster(Cluster cluster)
addCluster
in interface ReconstructedParticle
cluster
- A Cluster which contributes to this ReconstructedParticle.public void addTrack(Track track)
addTrack
in interface ReconstructedParticle
track
- A Track which contributes to this ReconstructedParticle.public HepLorentzVector asFourVector()
asFourVector
in interface ReconstructedParticle
public Vertex getStartVertex()
ReconstructedParticle
null
if none is knowngetStartVertex
in interface ReconstructedParticle
public void setStartVertex(Vertex vertex)
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.