Implementation of ParticleID. More...
#include <IMPL/ParticleIDImpl.h>
Public Member Functions | |
ParticleIDImpl () | |
Default constructor, initializes values to 0. | |
virtual | ~ParticleIDImpl () |
Destructor. | |
virtual int | id () const |
Returns an object id for internal (debugging) use in LCIO. | |
virtual int | getType () const |
Type - userdefined. | |
virtual int | getPDG () const |
The PDG code of this id - UnknownPDG ( 999999 ) if unknown. | |
virtual float | getLikelihood () const |
The likelihood of this hypothesis - in a user defined normalization. | |
virtual int | getAlgorithmType () const |
Type of the algorithm/module that created this hypothesis - NOTE: must be unique within one collection. More... | |
virtual const EVENT::FloatVec & | getParameters () const |
Parameters associated with this hypothesis. More... | |
virtual EVENT::FloatVec & | parameters () |
Access to parameters associated with this hypothesis. | |
void | setType (int type) |
void | setPDG (int pdg) |
void | setLikelihood (float logL) |
void | setAlgorithmType (int algorithmType) |
void | addParameter (float p) |
![]() | |
virtual | ~ParticleID () |
Destructor. | |
![]() | |
virtual | ~LCObject () |
Destructor. | |
virtual LCObject * | clone () const |
Returns an object id for internal (debugging) use in LCIO. More... | |
![]() | |
template<class V > | |
V::ext_type | ext () |
Provides access to an extension object - the type and ownership is defined by the class V which should be a subtype of LCExtension, LCOwnedExtension, LCExtensionVector, LCExtensionList,... | |
template<class V > | |
const V::ext_type | ext () const |
template<class V > | |
V::rel_type | rel () |
Provides read access to relations - the object types and their connectivity are defined by the class V which has to be a subtype of either LC1To1Relation, LC1ToNRelation or LCNToNRelation. | |
![]() | |
virtual int | simpleUID () const |
Protected Attributes | |
int | _type |
int | _pdg |
float | _likelihood |
int | _algorithmType |
EVENT::FloatVec | _parameters |
![]() | |
bool | _readOnly |
int | _id |
Additional Inherited Members | |
![]() | |
typedef ParticleID | lcobject_type |
Useful typedef for template programming with LCIO. | |
![]() | |
static const int | UnknownPDG = 999999 |
Constant to be used if the PDG code is not known or undefined. | |
![]() | |
template<class V > | |
V::ptr & | ptr () const |
Returns the reference to the pointer to the extension/relation object. | |
![]() | |
virtual void | setReadOnly (bool readOnly) |
void | checkAccess () throw ( EVENT::ReadOnlyException ) |
void | checkAccess (const char *what) throw ( EVENT::ReadOnlyException ) |
Implementation of ParticleID.
|
virtual |
Type of the algorithm/module that created this hypothesis - NOTE: must be unique within one collection.
Check/set collection parameters PIDAlgorithmTypeName and PIDAlgorithmTypeID.
Implements EVENT::ParticleID.
|
virtual |
Parameters associated with this hypothesis.
Check/set collection parameter ParameterNames_PIDAlgorithmTypeName for decoding the indices.
Implements EVENT::ParticleID.