|
LCIO
02.17
|
Implementation of ParticleID. More...
#include <ParticleIDImpl.h>
Inheritance diagram for IMPL::ParticleIDImpl:Public Member Functions | |
| ParticleIDImpl () | |
| Default constructor, initializes values to 0. More... | |
| virtual | ~ParticleIDImpl () |
| Destructor. More... | |
| virtual int | id () const |
| Returns an object id for internal (debugging) use in LCIO. More... | |
| virtual int | getType () const |
| Type - userdefined. More... | |
| virtual int | getPDG () const |
| The PDG code of this id - UnknownPDG ( 999999 ) if unknown. More... | |
| virtual float | getLikelihood () const |
| The likelihood of this hypothesis - in a user defined normalization. More... | |
| 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. More... | |
| void | setType (int type) |
| void | setPDG (int pdg) |
| void | setLikelihood (float logL) |
| void | setAlgorithmType (int algorithmType) |
| void | addParameter (float p) |
Public Member Functions inherited from EVENT::ParticleID | |
| virtual | ~ParticleID () |
| Destructor. More... | |
Public Member Functions inherited from EVENT::LCObject | |
| virtual | ~LCObject () |
| Destructor. More... | |
| virtual LCObject * | clone () const |
| Returns an object id for internal (debugging) use in LCIO. More... | |
Public Member Functions inherited from lcrtrel::LCRTRelations | |
| 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,... More... | |
| template<class V > | |
| const V::ext_type | ext () const |
| 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,... More... | |
| 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. More... | |
Public Member Functions inherited from IMPL::AccessChecked | |
| AccessChecked () | |
| virtual | ~AccessChecked () |
| virtual int | simpleUID () const |
Protected Attributes | |
| int | _type |
| int | _pdg |
| float | _likelihood |
| int | _algorithmType |
| EVENT::FloatVec | _parameters {} |
Protected Attributes inherited from IMPL::AccessChecked | |
| bool | _readOnly {false} |
| int | _id {-1} |
Additional Inherited Members | |
Public Types inherited from EVENT::ParticleID | |
| typedef ParticleID | lcobject_type |
| Useful typedef for template programming with LCIO. More... | |
Public Types inherited from lcrtrel::LCRTRelations | |
| typedef std::type_index | ext_index |
| typedef std::shared_ptr< void > | ext_type |
| typedef std::map< ext_index, ext_type > | ext_map |
Static Public Attributes inherited from EVENT::ParticleID | |
| static const int | UnknownPDG = 999999 |
| Constant to be used if the PDG code is not known or undefined. More... | |
Protected Member Functions inherited from IMPL::AccessChecked | |
| virtual void | setReadOnly (bool readOnly) |
| void | checkAccess () |
| void | checkAccess (const char *what) |
Static Protected Attributes inherited from IMPL::AccessChecked | |
| static std::atomic_int | _lCObjectId |
Implementation of ParticleID.
Definition at line 28 of file ParticleIDImpl.h.
| IMPL::ParticleIDImpl::ParticleIDImpl | ( | ) |
Default constructor, initializes values to 0.
Definition at line 5 of file ParticleIDImpl.cc.
|
virtual |
Destructor.
Definition at line 12 of file ParticleIDImpl.cc.
| void IMPL::ParticleIDImpl::addParameter | ( | float | p | ) |
Definition at line 54 of file ParticleIDImpl.cc.
References _parameters, IMPL::AccessChecked::checkAccess(), and std::vector< T >::push_back().
Referenced by SIO::SIOClusterHandler::read().
|
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.
Definition at line 24 of file ParticleIDImpl.cc.
References _algorithmType.
|
virtual |
The likelihood of this hypothesis - in a user defined normalization.
Implements EVENT::ParticleID.
Definition at line 21 of file ParticleIDImpl.cc.
References _likelihood.
|
virtual |
Parameters associated with this hypothesis.
Check/set collection parameter ParameterNames_PIDAlgorithmTypeName for decoding the indices.
Implements EVENT::ParticleID.
Definition at line 27 of file ParticleIDImpl.cc.
References _parameters.
|
virtual |
The PDG code of this id - UnknownPDG ( 999999 ) if unknown.
Implements EVENT::ParticleID.
Definition at line 18 of file ParticleIDImpl.cc.
References _pdg.
|
virtual |
Type - userdefined.
Implements EVENT::ParticleID.
Definition at line 15 of file ParticleIDImpl.cc.
References _type.
|
inlinevirtual |
Returns an object id for internal (debugging) use in LCIO.
Implements EVENT::LCObject.
Definition at line 39 of file ParticleIDImpl.h.
References IMPL::AccessChecked::simpleUID().
|
virtual |
Access to parameters associated with this hypothesis.
Definition at line 31 of file ParticleIDImpl.cc.
References _parameters.
Referenced by UTIL::PIDHandler::setParticleID().
| void IMPL::ParticleIDImpl::setAlgorithmType | ( | int | algorithmType | ) |
Definition at line 49 of file ParticleIDImpl.cc.
References _algorithmType, and IMPL::AccessChecked::checkAccess().
Referenced by UTIL::PIDHandler::setParticleID().
| void IMPL::ParticleIDImpl::setLikelihood | ( | float | logL | ) |
Definition at line 44 of file ParticleIDImpl.cc.
References _likelihood, and IMPL::AccessChecked::checkAccess().
Referenced by UTIL::PIDHandler::setParticleID().
| void IMPL::ParticleIDImpl::setPDG | ( | int | pdg | ) |
Definition at line 39 of file ParticleIDImpl.cc.
References _pdg, and IMPL::AccessChecked::checkAccess().
Referenced by UTIL::PIDHandler::setParticleID().
| void IMPL::ParticleIDImpl::setType | ( | int | type | ) |
Definition at line 35 of file ParticleIDImpl.cc.
References _type, and IMPL::AccessChecked::checkAccess().
Referenced by UTIL::PIDHandler::setParticleID().
|
protected |
Definition at line 79 of file ParticleIDImpl.h.
Referenced by getAlgorithmType(), SIO::SIOClusterHandler::read(), and setAlgorithmType().
|
protected |
Definition at line 78 of file ParticleIDImpl.h.
Referenced by getLikelihood(), SIO::SIOClusterHandler::read(), and setLikelihood().
|
protected |
Definition at line 80 of file ParticleIDImpl.h.
Referenced by addParameter(), getParameters(), and parameters().
|
protected |
Definition at line 77 of file ParticleIDImpl.h.
Referenced by getPDG(), SIO::SIOClusterHandler::read(), and setPDG().
|
protected |
Definition at line 76 of file ParticleIDImpl.h.
Referenced by getType(), SIO::SIOClusterHandler::read(), and setType().
1.8.5