Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef BinningPointByMap_h
0002 #define BinningPointByMap_h
0003 
0004 #include "CondFormats/PhysicsToolsObjects/interface/BinningVariables.h"
0005 
0006 #include <map>
0007 
0008 class BinningPointByMap {
0009 public:
0010   //  enum  BinningPointType{Eta=1, JetEt=2, Phi=3, NTracks=4};
0011 
0012   typedef std::map<BinningVariables::BinningVariablesType, float> BinningPointTypeMap;
0013 
0014   bool insert(BinningVariables::BinningVariablesType, float);
0015 
0016   float value(BinningVariables::BinningVariablesType);
0017 
0018   bool isKeyAvailable(BinningVariables::BinningVariablesType);
0019 
0020   void reset() { map_.clear(); }
0021 
0022   const BinningPointTypeMap& map() { return map_; }
0023 
0024 private:
0025   BinningPointTypeMap map_;
0026 };
0027 
0028 #endif