Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:24

0001 #include "CondFormats/PhysicsToolsObjects/interface/BinningPointByMap.h"
0002 
0003 bool BinningPointByMap::insert(BinningVariables::BinningVariablesType k, float v) {
0004   map_[k] = v;
0005   return true;
0006 }
0007 bool BinningPointByMap::isKeyAvailable(BinningVariables::BinningVariablesType k) {
0008   return (map_.find(k) != map_.end());
0009 }
0010 
0011 float BinningPointByMap::value(BinningVariables::BinningVariablesType k) {
0012   if (isKeyAvailable(k) == false)
0013     return -100;
0014   return map_[k];
0015 }