CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_6/src/CondFormats/PhysicsToolsObjects/src/BinningPointByMap.cc

Go to the documentation of this file.
00001 #include "CondFormats/PhysicsToolsObjects/interface/BinningPointByMap.h"
00002 
00003 bool BinningPointByMap::insert(BinningVariables::BinningVariablesType k, float v){
00004   map_[k]=v;
00005   return true;
00006 }
00007 bool BinningPointByMap::isKeyAvailable(BinningVariables::BinningVariablesType k){
00008   return (map_.find(k) != map_.end());
00009 }
00010 
00011 float BinningPointByMap::value(BinningVariables::BinningVariablesType k){
00012   if (isKeyAvailable(k) == false) return -100;
00013   return map_[k];
00014 
00015 }
00016