public class BaseParticleID extends Object implements ParticleID
Modifier and Type | Field and Description |
---|---|
protected double[] |
_algorithmParameters |
protected int |
_algorithmType |
protected double |
_likelihood |
protected ParticleType |
_type |
UnknownPDG
Constructor and Description |
---|
BaseParticleID()
Creates a new instance of BaseParticleID
|
BaseParticleID(ParticleType type)
Fully qualified constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getAlgorithmType()
Type of the algorithm/module that created this hypothesis.
|
double |
getLikelihood()
The likelihood of this hypothesis - in a user defined normalization.
|
double[] |
getParameters()
Parameters associated with this hypothesis.
|
int |
getPDG()
The PDG code of this id - UnknownPDG ( 999999 ) if unknown.
|
int |
getType()
return the algorithm type.
|
void |
setAlgorithmType(int alg)
Set the algorithm type used to make this identification.
|
void |
setLikelihood(double p)
Set the likelihood for this type ID
|
void |
setParameters(double[] pars)
Set the parameters used in the algorithm.
|
void |
setType(ParticleType type)
Set the particle type.
|
protected ParticleType _type
protected double _likelihood
protected int _algorithmType
protected double[] _algorithmParameters
public BaseParticleID()
public BaseParticleID(ParticleType type)
type
- the ParticleType for this IDpublic void setType(ParticleType type)
type
- The ParticleType of this ID.public void setLikelihood(double p)
p
- The likelihood for this identification.public void setAlgorithmType(int alg)
alg
- The algorithm type. Not yet defined.public void setParameters(double[] pars)
pars
- an array of parameters appropriate for the algorithm typ.e Not yet defined.public int getType()
getType
in interface ParticleID
public int getPDG()
getPDG
in interface ParticleID
public double getLikelihood()
getLikelihood
in interface ParticleID
public int getAlgorithmType()
getAlgorithmType
in interface ParticleID
public double[] getParameters()
getParameters
in interface ParticleID
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.