LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ParticleIDImpl.cc
Go to the documentation of this file.
1 #include "IMPL/ParticleIDImpl.h"
2 
3 namespace IMPL{
4 
6  _type(0) ,
7  _pdg(0) ,
8  _likelihood(0),
9  _algorithmType(0) {
10  }
11 
13  }
14 
16  return _type ;
17  }
19  return _pdg ;
20  }
22  return _likelihood ;
23  }
25  return _algorithmType ;
26  }
28  return _parameters ;
29  }
30 
32  return _parameters ;
33  }
34 
35  void ParticleIDImpl::setType( int type ){
36  checkAccess("ParticleIDImpl::setType") ;
37  _type = type ;
38  }
39  void ParticleIDImpl::setPDG( int pdg ){
40  checkAccess("ParticleIDImpl::setPDG") ;
41  _pdg = pdg ;
42  }
43 
44  void ParticleIDImpl::setLikelihood( float logL ){
45  checkAccess("ParticleIDImpl::setLikelihood") ;
46  _likelihood = logL ;
47  }
48 
49  void ParticleIDImpl::setAlgorithmType(int algorithmType ) {
50  checkAccess("ParticleIDImpl::setAlgorithmType") ;
51  _algorithmType = algorithmType ;
52  }
53 
55  checkAccess("ParticleIDImpl::addParameter") ;
56  _parameters.push_back( p ) ;
57  }
58 
59 }
void setType(int type)
void setAlgorithmType(int algorithmType)
virtual const EVENT::FloatVec & getParameters() const
Parameters associated with this hypothesis.
virtual ~ParticleIDImpl()
Destructor.
T push_back(T...args)
EVENT::FloatVec _parameters
void addParameter(float p)
virtual int getType() const
Type - userdefined.
void setLikelihood(float logL)
virtual int getAlgorithmType() const
Type of the algorithm/module that created this hypothesis - NOTE: must be unique within one collectio...
ParticleIDImpl()
Default constructor, initializes values to 0.
void setPDG(int pdg)
virtual float getLikelihood() const
The likelihood of this hypothesis - in a user defined normalization.
virtual int getPDG() const
The PDG code of this id - UnknownPDG ( 999999 ) if unknown.
virtual EVENT::FloatVec & parameters()
Access to parameters associated with this hypothesis.