Belle II Software
release-08-01-10
|
The class for PXD cluster shape index payload. More...
#include <PXDClusterShapeIndexPar.h>
Public Member Functions | |
PXDClusterShapeIndexPar () | |
Default constructor. | |
~PXDClusterShapeIndexPar () | |
Destructor. | |
void | addShape (const std::string &name, int index) |
Add shape with name and index | |
int | getShapeIndex (const std::string &name) const |
Returns shape index from name. More... | |
const std::string & | getShapeName (int index) const |
Returns shape name from index. More... | |
const std::map< int, std::string > & | getIndexMap () const |
Returns shape index from shape string. | |
Private Member Functions | |
ClassDef (PXDClusterShapeIndexPar, 1) | |
ClassDef, must be the last term before the closing {}. | |
Private Attributes | |
std::map< int, std::string > | m_shapeIndexMap |
Map of shape names and indexes. | |
The class for PXD cluster shape index payload.
Definition at line 24 of file PXDClusterShapeIndexPar.h.
|
inline |
Returns shape index from name.
Returns -1 for invalid name.
Definition at line 38 of file PXDClusterShapeIndexPar.h.
|
inline |
Returns shape name from index.
Return 'None' for invalid index
Definition at line 47 of file PXDClusterShapeIndexPar.h.