![]() |
ATLAS Offline Software
|
#include <LabelIndex.h>
Public Types | |
| typedef std::string | Label |
| typedef unsigned int | Index |
Public Member Functions | |
| LabelIndex (Label nam) | |
| Ctor. | |
| Index | addLabel (const Label &lab) |
| Add a label and get its index. | |
| const Label & | name () const |
| Return the name of this map. | |
| Label | label (Index idx) const |
| Fetch the label for an index. | |
| Index | index (const Label &lab) const |
| Fetch the index for a label. | |
| xAOD::JetConstitScale | constitScale (Index idx) const |
| Fetch the constit scale corresponding to the index. | |
| Index | size () const |
| Number of label stored in this map. WARNING the index starts at 1, so range is [1...size()+1]. | |
Private Member Functions | |
| LabelIndex (const LabelIndex &nam) | |
| LabelIndex & | operator= (const Label &nam) |
Private Attributes | |
| Label | m_name |
| std::vector< Label > | m_labs |
| std::vector< xAOD::JetConstitScale > | m_constitScales |
Definition at line 22 of file LabelIndex.h.
| typedef unsigned int jet::LabelIndex::Index |
Definition at line 27 of file LabelIndex.h.
| typedef std::string jet::LabelIndex::Label |
Definition at line 26 of file LabelIndex.h.
|
explicit |
|
explicitprivate |
Definition at line 66 of file LabelIndex.cxx.
| Index LabelIndex::addLabel | ( | const Label & | lab | ) |
Add a label and get its index.
Current index is returned if the label is already indexed. Return 0 for error.
Definition at line 23 of file LabelIndex.cxx.
| xAOD::JetConstitScale LabelIndex::constitScale | ( | Index | idx | ) | const |
Fetch the constit scale corresponding to the index.
Definition at line 49 of file LabelIndex.cxx.
| Index LabelIndex::index | ( | const Label & | lab | ) | const |
Fetch the index for a label.
Returns "" for error, e.g. unknown label.
Definition at line 57 of file LabelIndex.cxx.
| Label LabelIndex::label | ( | Index | idx | ) | const |
Fetch the label for an index.
Returns "" for error, e.g. unused index.
Definition at line 41 of file LabelIndex.cxx.
| const Label & LabelIndex::name | ( | ) | const |
Return the name of this map.
Definition at line 35 of file LabelIndex.cxx.
|
private |
Definition at line 70 of file LabelIndex.cxx.
| Index LabelIndex::size | ( | ) | const |
Number of label stored in this map. WARNING the index starts at 1, so range is [1...size()+1].
Definition at line 76 of file LabelIndex.cxx.
|
private |
Definition at line 63 of file LabelIndex.h.
|
private |
Definition at line 62 of file LabelIndex.h.
|
private |
Definition at line 61 of file LabelIndex.h.