CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/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