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