2 #ifndef IMPL_PARTICLEIDIMPL_H
3 #define IMPL_PARTICLEIDIMPL_H 1
5 #include "EVENT/ParticleID.h"
6 #include "AccessChecked.h"
14 class PIDSort :
public std::binary_function<EVENT::ParticleID*,EVENT::ParticleID*,bool>{
40 virtual int id()
const {
return simpleUID() ; }
48 virtual int getPDG()
const ;
70 void setType(
int type ) ;
71 void setPDG(
int pdg ) ;
72 void setLikelihood(
float logL ) ;
73 void setAlgorithmType(
int algorithmType ) ;
74 void addParameter(
float p ) ;
virtual const EVENT::FloatVec & getParameters() const
Parameters associated with this hypothesis.
Definition: ParticleIDImpl.cc:27
Implementation of ParticleID.
Definition: ParticleIDImpl.h:29
std::vector< float > FloatVec
Vector of floats.
Definition: LCIOSTLTypes.h:18
virtual ~ParticleIDImpl()
Destructor.
Definition: ParticleIDImpl.cc:12
virtual float getLikelihood() const =0
The likelihood of this hypothesis - in a user defined normalization.
Helper class to sort ParticleIDs wrt.
Definition: ParticleIDImpl.h:14
virtual int id() const
Returns an object id for internal (debugging) use in LCIO.
Definition: ParticleIDImpl.h:40
Persistent interface for LCIO ParticleIDs.
Definition: ParticleID.h:28
virtual int getType() const
Type - userdefined.
Definition: ParticleIDImpl.cc:15
virtual int getAlgorithmType() const
Type of the algorithm/module that created this hypothesis - NOTE: must be unique within one collectio...
Definition: ParticleIDImpl.cc:24
ParticleIDImpl()
Default constructor, initializes values to 0.
Definition: ParticleIDImpl.cc:5
virtual float getLikelihood() const
The likelihood of this hypothesis - in a user defined normalization.
Definition: ParticleIDImpl.cc:21
Controls access to objects.
Definition: AccessChecked.h:17
virtual int getPDG() const
The PDG code of this id - UnknownPDG ( 999999 ) if unknown.
Definition: ParticleIDImpl.cc:18
virtual EVENT::FloatVec & parameters()
Access to parameters associated with this hypothesis.
Definition: ParticleIDImpl.cc:31