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
EGEnergySysIndex::kEcalTrkPostCorr
Definition: EGEnergySysIndex.h:39
EGEnergySysIndex::kSmearRhoDown
Definition: EGEnergySysIndex.h:23
EGEnergySysIndex::Index
Index
Definition: EGEnergySysIndex.h:15
EGEnergySysIndex::kScaleGainUp
Definition: EGEnergySysIndex.h:20
EGEnergySysIndex::kEcalErrPostCorr
Definition: EGEnergySysIndex.h:36
EGEnergySysIndex::kEcalTrkPreCorr
Definition: EGEnergySysIndex.h:37
EGEnergySysIndex::kSmearRhoUp
Definition: EGEnergySysIndex.h:22
EGEnergySysIndex::kScaleValue
Definition: EGEnergySysIndex.h:30
EGEnergySysIndex::kScaleStatDown
Definition: EGEnergySysIndex.h:17
EGEnergySysIndex::kNrSysErrs
static constexpr size_t kNrSysErrs
Definition: EGEnergySysIndex.h:42
EGEnergySysIndex::kSmearNrSigma
Definition: EGEnergySysIndex.h:32
EGEnergySysIndex::kScaleGainDown
Definition: EGEnergySysIndex.h:21
EGEnergySysIndex::kScaleUp
Definition: EGEnergySysIndex.h:26
EGEnergySysIndex::kEcalErrPreCorr
Definition: EGEnergySysIndex.h:34
EGEnergySysIndex::kSmearDown
Definition: EGEnergySysIndex.h:29
EGEnergySysIndex::name
static const std::string & name(size_t index)
Definition: EGEnergySysIndex.h:44
EGEnergySysIndex::kEcalTrkErrPreCorr
Definition: EGEnergySysIndex.h:38
EGEnergySysIndex
Definition: EGEnergySysIndex.h:13
EGEnergySysIndex::kScaleDown
Definition: EGEnergySysIndex.h:27
EGEnergySysIndex::kEcalPostCorr
Definition: EGEnergySysIndex.h:35
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EGEnergySysIndex::names_
static const std::array< std::string, kNrSysErrs > names_
Definition: EGEnergySysIndex.h:47
EGEnergySysIndex::kEcalPreCorr
Definition: EGEnergySysIndex.h:33
EGEnergySysIndex::kSmearValue
Definition: EGEnergySysIndex.h:31
EGEnergySysIndex::kSmearUp
Definition: EGEnergySysIndex.h:28
EGEnergySysIndex::kSmearPhiDown
Definition: EGEnergySysIndex.h:25
EGEnergySysIndex::kScaleSystUp
Definition: EGEnergySysIndex.h:18
EGEnergySysIndex::kScaleSystDown
Definition: EGEnergySysIndex.h:19
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
EGEnergySysIndex::kScaleStatUp
Definition: EGEnergySysIndex.h:16
EGEnergySysIndex::kEcalTrkErrPostCorr
Definition: EGEnergySysIndex.h:40
EGEnergySysIndex::kSmearPhiUp
Definition: EGEnergySysIndex.h:24