#include <TauFeature.h>
◆ FeatureMap
◆ FeatureMapConstIter
◆ FeatureMapIter
◆ VectorFeatureMap
◆ VectorFeatureMapConstIter
◆ VectorFeatureMapIter
◆ TauFeature()
PanTau::TauFeature::TauFeature |
( |
| ) |
|
◆ ~TauFeature()
PanTau::TauFeature::~TauFeature |
( |
| ) |
|
|
virtualdefault |
◆ add()
Definition at line 74 of file TauFeature.cxx.
79 throw std::runtime_error(
"PanTau::TauFeature::add( PanTau::TauFeature* ): Error when adding scalar feature " +
p.first);
86 throw std::runtime_error(
"PanTau::TauFeature::add( PanTau::TauFeature* ): Error when adding vector feature " +
p.first);
◆ addFeature()
bool PanTau::TauFeature::addFeature |
( |
const std::string & |
name, |
|
|
const double |
value |
|
) |
| |
adds a new feature
Definition at line 44 of file TauFeature.cxx.
46 if (std::isnan(
value)) {
47 throw std::runtime_error(
"TauFeature::addFeature: Given " +
name +
" value is NaN!");
49 if (std::isinf(
value)){
50 throw std::runtime_error(
"TauFeature::addFeature: Given " +
name +
" value is inf!");
◆ addVecFeature()
bool PanTau::TauFeature::addVecFeature |
( |
const std::string & |
name, |
|
|
const std::vector< double > & |
value |
|
) |
| |
◆ nValues()
int PanTau::TauFeature::nValues |
( |
| ) |
const |
returns the size of the m_featureMap
Definition at line 64 of file TauFeature.cxx.
◆ nVecValues()
int PanTau::TauFeature::nVecValues |
( |
| ) |
const |
returns the size of the m_vecFeatureMap
Definition at line 69 of file TauFeature.cxx.
◆ value()
double PanTau::TauFeature::value |
( |
const std::string & |
name, |
|
|
bool & |
isValid |
|
) |
| const |
returns the value of the feature given by its name
Definition at line 23 of file TauFeature.cxx.
31 return (*iter).second;
◆ vecValue()
const std::vector< double > & PanTau::TauFeature::vecValue |
( |
const std::string & |
name | ) |
const |
returns the value of a vector feature given by its name
Definition at line 35 of file TauFeature.cxx.
40 return (*iter).second;
◆ m_featureMap
The map containg all features.
Definition at line 61 of file TauFeature.h.
◆ m_vecFeatureMap
The map containg all features.
Definition at line 63 of file TauFeature.h.
The documentation for this class was generated from the following files: