CMS 3D CMS Logo

EGEnergySysIndex.h
Go to the documentation of this file.
1 #ifndef RecoEgamma_EgammaTools_EGEnergySysIndex_h
2 #define RecoEgamma_EgammaTools_EGEnergySysIndex_h
3 
4 //Currently the Electron and Photon energy calibrators return a big vector of calculated
5 //energy and systematic values
6 //this class allows the elements to be indexed easier
7 //ultimately should become a class
8 
9 #include <array>
10 
12 public:
13  enum Index {
39  };
41 
42  static const std::string& name(size_t index){return names_[index];}
43 
44 private:
45  static const std::array<std::string,kNrSysErrs> names_;
46 
47 
48 
49 };
50 
51 #endif
static const std::string & name(size_t index)
#define constexpr
static const std::array< std::string, kNrSysErrs > names_
static constexpr size_t kNrSysErrs