LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
IMPL::ParticleIDImpl Class Reference

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::FloatVecgetParameters () const
 Parameters associated with this hypothesis. More...
 
virtual EVENT::FloatVecparameters ()
 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 LCObjectclone () 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
 

Detailed Description

Implementation of ParticleID.

See Also
ParticleID
Author
gaede
Version
Id:
ParticleIDImpl.h,v 1.11 2008-05-30 13:23:27 gaede Exp

Definition at line 28 of file ParticleIDImpl.h.

Constructor & Destructor Documentation

IMPL::ParticleIDImpl::ParticleIDImpl ( )

Default constructor, initializes values to 0.

Definition at line 5 of file ParticleIDImpl.cc.

IMPL::ParticleIDImpl::~ParticleIDImpl ( )
virtual

Destructor.

Definition at line 12 of file ParticleIDImpl.cc.

Member Function Documentation

void IMPL::ParticleIDImpl::addParameter ( float  p)
int IMPL::ParticleIDImpl::getAlgorithmType ( ) const
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.

float IMPL::ParticleIDImpl::getLikelihood ( ) const
virtual

The likelihood of this hypothesis - in a user defined normalization.

Implements EVENT::ParticleID.

Definition at line 21 of file ParticleIDImpl.cc.

References _likelihood.

const EVENT::FloatVec & IMPL::ParticleIDImpl::getParameters ( ) const
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.

int IMPL::ParticleIDImpl::getPDG ( ) const
virtual

The PDG code of this id - UnknownPDG ( 999999 ) if unknown.

Implements EVENT::ParticleID.

Definition at line 18 of file ParticleIDImpl.cc.

References _pdg.

int IMPL::ParticleIDImpl::getType ( ) const
virtual

Type - userdefined.

Implements EVENT::ParticleID.

Definition at line 15 of file ParticleIDImpl.cc.

References _type.

virtual int IMPL::ParticleIDImpl::id ( ) const
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().

EVENT::FloatVec & IMPL::ParticleIDImpl::parameters ( )
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)
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().

Member Data Documentation

int IMPL::ParticleIDImpl::_algorithmType
protected
float IMPL::ParticleIDImpl::_likelihood
protected

Definition at line 78 of file ParticleIDImpl.h.

Referenced by getLikelihood(), SIO::SIOClusterHandler::read(), and setLikelihood().

EVENT::FloatVec IMPL::ParticleIDImpl::_parameters {}
protected

Definition at line 80 of file ParticleIDImpl.h.

Referenced by addParameter(), getParameters(), and parameters().

int IMPL::ParticleIDImpl::_pdg
protected

Definition at line 77 of file ParticleIDImpl.h.

Referenced by getPDG(), SIO::SIOClusterHandler::read(), and setPDG().

int IMPL::ParticleIDImpl::_type
protected

Definition at line 76 of file ParticleIDImpl.h.

Referenced by getType(), SIO::SIOClusterHandler::read(), and setType().


The documentation for this class was generated from the following files: