144 message =
"lcio::UnknownAlgorithm: " + text ;
The generic object that is held in an LCCollection.
Base exception class for LCIO - all other exceptions extend this.
int getParameterIndex(int algorithmID, const std::string &pName)
The index of parameter pName for the algorithm with algorithmID - throws UnknownAlgoritm.
void init(const EVENT::LCCollection *col)
CollectionParameterMap CPM
Exception for unknown algorithms.
void setParticleIDUsed(IMPL::ReconstructedParticleImpl *particle, int algorithmID)
Set the particleID algorithm that is used for this particle's kinematic variables.
Helper class for setting and retrieving an std::map<string,int> as collection parameters.
PIDHandler & operator=(const PIDHandler &)=delete
Convenient class for setting and retrieving particle id information attached to ReconstructedParticle...
virtual ~UnknownAlgorithm()
const EVENT::StringVec & getParameterNames(int algorithmID)
The names of parameters for the algorithm with algorithmID - throws UnknownAlgoritm.
const std::string & getAlgorithmName(int algoID)
Return the name of the algorithm with id - throws UnknownAlgorithm.
const EVENT::IntVec & getAlgorithmIDs()
Return the IDs of all known Algorithms.
std::map< CPM::map_type::mapped_type, CPM::map_type::key_type > CPMINV
int addAlgorithm(const std::string &algoName, const EVENT::StringVec ¶meterNames)
Add a new algorithm and return the corresponding algorithm id.
Persistent interface for LCIO ParticleIDs.
int getAlgorithmID(const std::string &algoName)
Return the typeID of algorithm algoName - throws UnknownAlgorithm.
void setParticleID(EVENT::LCObject *p, int userType, int PDG, float likelihood, int algorithmID, const EVENT::FloatVec ¶ms)
Set the particleID information for this particle (or cluster) - throws UnknownAlgorithm.
EVENT::ParticleIDVec getParticleIDs(EVENT::LCObject *p, int id)
Return all PID objects for a given algorithm - ordered with decreasing likelihood - throws UnknownAlg...
EVENT::LCCollection * _col
The generic collection used in LCIO.
const EVENT::ParticleID & getParticleID(EVENT::LCObject *particle, int algorithmID)
Return the (first) ParticleID object for the given algorithm and particle (or cluster) - throws Unkno...
~PIDHandler()
Update the collection parameter when going out of scope.
std::map< int, EVENT::StringVec > PNM
UnknownAlgorithm(std::string text)
Implementation of ReconstructedParticle.