jet::LabelIndex Class Reference

List of all members.

Public Types

typedef std::string Label
typedef unsigned int Index

Public Member Functions

 LabelIndex (Label nam)
 Ctor.
Index addLabel (Label lab)
Label name () const
 Return the name of this map.
Label label (Index idx) const
Index index (Label lab) const
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].

Static Public Member Functions

static LabelIndexmutable_instance (Label name)
static const LabelIndexinstance (Label name)

Member Function Documentation

Index LabelIndex::addLabel ( Label  lab  ) 

Add a label and get its index. Current index is returned if the label is already indexed. Return 0 for error.

Index LabelIndex::index ( Label  lab  )  const

Fetch the index for a label. Returns "" for error, e.g. unknown label.

Label LabelIndex::label ( Index  idx  )  const

Fetch the label for an index. Returns "" for error, e.g. unused index.

LabelIndex & LabelIndex::mutable_instance ( Label  name  )  [static]

Return a global shared map by name. E.g. LabelIndex& labidx = LabelIndex::instance("ConstituentLabels");


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1