CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
BinningPointByMap Class Reference

#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 BinningPointTypeMapmap ()
 
void reset ()
 
float value (BinningVariables::BinningVariablesType)
 

Private Attributes

BinningPointTypeMap map_
 

Detailed Description

Definition at line 9 of file BinningPointByMap.h.

Member Typedef Documentation

Definition at line 13 of file BinningPointByMap.h.

Member Function Documentation

bool BinningPointByMap::insert ( BinningVariables::BinningVariablesType  k,
float  v 
)
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().

7  {
8  return (map_.find(k) != map_.end());
9 }
BinningPointTypeMap map_
int k[5][pyjets_maxn]
const BinningPointTypeMap& BinningPointByMap::map ( )
inline

Definition at line 23 of file BinningPointByMap.h.

References map_.

23 {return map_;}
BinningPointTypeMap map_
void BinningPointByMap::reset ( void  )
inline

Definition at line 21 of file BinningPointByMap.h.

References map_.

Referenced by MatrixReader.MatrixReader::__init__(), main(), and MatrixReader.MatrixReader::showRaw().

21 {map_.clear();}
BinningPointTypeMap map_
float BinningPointByMap::value ( BinningVariables::BinningVariablesType  k)

Definition at line 11 of file BinningPointByMap.cc.

References isKeyAvailable(), gen::k, and map_.

Referenced by Types.int32::__nonzero__(), Types.uint32::__nonzero__(), Types.int64::__nonzero__(), Types.uint64::__nonzero__(), Types.double::__nonzero__(), Types.bool::__nonzero__(), Types.string::__nonzero__(), average.Average::average(), Vispa.Views.PropertyView.FileProperty::buttonClicked(), Types.string::configValue(), Types.FileInPath::configValue(), Mixins.UsingBlock::dumpPython(), PerformancePayloadFromBinnedTFormula::getResult(), PerformancePayloadFromTFormula::getResult(), Types.int32::insertInto(), Types.uint32::insertInto(), Types.int64::insertInto(), Types.uint64::insertInto(), Types.double::insertInto(), Mixins.UsingBlock::insertInto(), Types.bool::insertInto(), Types.string::insertInto(), Types.FileInPath::insertInto(), Types.vint32::insertInto(), Types.vuint32::insertInto(), Types.vint64::insertInto(), Types.vuint64::insertInto(), Types.vdouble::insertInto(), Types.vbool::insertInto(), Types.vstring::insertInto(), PerformancePayloadFromBinnedTFormula::isOk(), PerformancePayloadFromTFormula::isOk(), Vispa.Views.PropertyView.FileProperty::labelDoubleClicked(), and PerformancePayloadFromTable::matches().

11  {
12  if (isKeyAvailable(k) == false) return -100;
13  return map_[k];
14 
15 }
bool isKeyAvailable(BinningVariables::BinningVariablesType)
BinningPointTypeMap map_
int k[5][pyjets_maxn]

Member Data Documentation

BinningPointTypeMap BinningPointByMap::map_
private

Definition at line 27 of file BinningPointByMap.h.

Referenced by insert(), isKeyAvailable(), map(), reset(), and value().