1 #ifndef LCIO_INDEXMAP_H
2 #define LCIO_INDEXMAP_H 1
4 #include "EVENT/LCCollection.h"
5 #include "EVENT/LCParameters.h"
7 #include "LCIOSTLTypes.h"
64 int encode(
const std::string name);
67 const std::string&
decode(
int type)
const;
71 const std::string _key1;
72 const std::string _key2;
const std::string & decode(int type) const
decode int to string (e.g.
Definition: IndexMap.cc:41
std::vector< std::string > StringVec
Vector of strings.
Definition: LCIOSTLTypes.h:16
int encode(const std::string name)
encode string to index (e.g.
Definition: IndexMap.cc:20
std::vector< int > IntVec
Vector of ints.
Definition: LCIOSTLTypes.h:22
The generic collection used in LCIO.
Definition: LCCollection.h:29
IndexMap(const EVENT::LCCollection *col, const std::string &key1, const std::string &key2)
Constructor: takes as arguments the collection where the parameters are stored and the parameter name...
Definition: IndexMap.cc:11
utility class to manage indexes according to Collection Parameters
Definition: IndexMap.h:21