src
CondFormats
PhysicsToolsObjects
src
BinningPointByMap.cc
Go to the documentation of this file.
1
#include "
CondFormats/PhysicsToolsObjects/interface/BinningPointByMap.h
"
2
3
bool
BinningPointByMap::insert
(
BinningVariables::BinningVariablesType
k
,
float
v
) {
4
map_
[
k
] =
v
;
5
return
true
;
6
}
7
bool
BinningPointByMap::isKeyAvailable
(
BinningVariables::BinningVariablesType
k
) {
8
return
(
map_
.find(
k
) !=
map_
.end());
9
}
10
11
float
BinningPointByMap::value
(
BinningVariables::BinningVariablesType
k
) {
12
if
(
isKeyAvailable
(
k
) ==
false
)
13
return
-100;
14
return
map_
[
k
];
15
}
BinningPointByMap.h
BinningPointByMap::isKeyAvailable
bool isKeyAvailable(BinningVariables::BinningVariablesType)
Definition:
BinningPointByMap.cc:7
findQualityFiles.v
v
Definition:
findQualityFiles.py:179
BinningVariables::BinningVariablesType
BinningVariablesType
Definition:
BinningVariables.h:10
BinningPointByMap::value
float value(BinningVariables::BinningVariablesType)
Definition:
BinningPointByMap.cc:11
BinningPointByMap::map_
BinningPointTypeMap map_
Definition:
BinningPointByMap.h:25
BinningPointByMap::insert
bool insert(BinningVariables::BinningVariablesType, float)
Definition:
BinningPointByMap.cc:3
isotrackApplyRegressor.k
k
Definition:
isotrackApplyRegressor.py:90
Generated for CMSSW Reference Manual by
1.8.14