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 #include <cstddef>
11 #include <string>
12 
14 public:
15  enum Index {
41  };
42  static constexpr size_t kNrSysErrs = kEcalTrkErrPostCorr + 1;
43 
44  static const std::string& name(size_t index) { return names_[index]; }
45 
46 private:
47  static const std::array<std::string, kNrSysErrs> names_;
48 };
49 
50 #endif
static const std::string & name(size_t index)
static const std::array< std::string, kNrSysErrs > names_
static constexpr size_t kNrSysErrs