CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_1/src/CondFormats/PhysicsToolsObjects/interface/BinningPointByMap.h

Go to the documentation of this file.
00001 #ifndef BinningPointByMap_h
00002 #define BinningPointByMap_h
00003 
00004 
00005 #include "CondFormats/PhysicsToolsObjects/interface/BinningVariables.h"
00006 
00007 #include <map>
00008 
00009 class BinningPointByMap {
00010  public:
00011   //  enum  BinningPointType{Eta=1, JetEt=2, Phi=3, NTracks=4};
00012 
00013   typedef std::map<BinningVariables::BinningVariablesType, float> BinningPointTypeMap;
00014 
00015   bool insert(BinningVariables::BinningVariablesType, float);
00016 
00017   float value(BinningVariables::BinningVariablesType);
00018 
00019   bool isKeyAvailable(BinningVariables::BinningVariablesType);
00020 
00021   void reset() {map_.clear();}
00022 
00023   const BinningPointTypeMap & map(){return map_;}
00024   
00025 
00026  private:
00027   BinningPointTypeMap map_;
00028 };
00029 
00030 
00031 #endif