#include <BinningPointByMap.h>
Public Types | |
typedef std::map < BinningVariables::BinningVariablesType, float > | BinningPointTypeMap |
Public Member Functions | |
bool | insert (BinningVariables::BinningVariablesType, float) |
bool | isKeyAvailable (BinningVariables::BinningVariablesType) |
const BinningPointTypeMap & | map () |
void | reset () |
float | value (BinningVariables::BinningVariablesType) |
Private Attributes | |
BinningPointTypeMap | map_ |
Definition at line 9 of file BinningPointByMap.h.
typedef std::map<BinningVariables::BinningVariablesType, float> BinningPointByMap::BinningPointTypeMap |
Definition at line 13 of file BinningPointByMap.h.
bool BinningPointByMap::insert | ( | BinningVariables::BinningVariablesType | k, |
float | v | ||
) |
Definition at line 3 of file BinningPointByMap.cc.
References gen::k, map_, and v.
Referenced by PFEnergyCalibration::aBarrel(), PFEnergyCalibration::aEndcap(), PFEnergyCalibration::aEtaBarrel(), PFEnergyCalibration::aEtaEndcap(), PFEnergyCalibration::bBarrel(), PFEnergyCalibration::bEndcap(), PFEnergyCalibration::bEtaBarrel(), PFEnergyCalibration::bEtaEndcap(), PFEnergyCalibration::cBarrel(), PFEnergyCalibration::cEndcap(), and main().
bool BinningPointByMap::isKeyAvailable | ( | BinningVariables::BinningVariablesType | k | ) |
Definition at line 7 of file BinningPointByMap.cc.
References map_.
Referenced by PerformancePayloadFromTable::isInPayload(), PerformancePayloadFromBinnedTFormula::isOk(), PerformancePayloadFromTFormula::isOk(), and value().
const BinningPointTypeMap& BinningPointByMap::map | ( | ) | [inline] |
void BinningPointByMap::reset | ( | void | ) | [inline] |
Definition at line 21 of file BinningPointByMap.h.
References map_.
Referenced by main().
{map_.clear();}
float BinningPointByMap::value | ( | BinningVariables::BinningVariablesType | k | ) |
Definition at line 11 of file BinningPointByMap.cc.
References isKeyAvailable(), gen::k, and map_.
Referenced by PerformancePayloadFromBinnedTFormula::getResult(), PerformancePayloadFromTFormula::getResult(), PerformancePayloadFromBinnedTFormula::isOk(), PerformancePayloadFromTFormula::isOk(), and PerformancePayloadFromTable::matches().
{ if (isKeyAvailable(k) == false) return -100; return map_[k]; }
BinningPointTypeMap BinningPointByMap::map_ [private] |
Definition at line 27 of file BinningPointByMap.h.
Referenced by insert(), isKeyAvailable(), map(), reset(), and value().