CMS 3D CMS Logo

EGEnergySysIndex.cc
Go to the documentation of this file.
2 
3 namespace {
4  std::array<std::string, EGEnergySysIndex::kNrSysErrs> makeEGEnergySysNames() {
5  std::array<std::string, EGEnergySysIndex::kNrSysErrs> names;
6  names[EGEnergySysIndex::kScaleUp] = "energyScaleUp";
7  names[EGEnergySysIndex::kScaleDown] = "energyScaleDown";
8  names[EGEnergySysIndex::kScaleStatUp] = "energyScaleStatUp";
9  names[EGEnergySysIndex::kScaleStatDown] = "energyScaleStatDown";
10  names[EGEnergySysIndex::kScaleSystUp] = "energyScaleSystUp";
11  names[EGEnergySysIndex::kScaleSystDown] = "energyScaleSystDown";
12  names[EGEnergySysIndex::kScaleGainUp] = "energyScaleGainUp";
13  names[EGEnergySysIndex::kScaleGainDown] = "energyScaleGainDown";
14  names[EGEnergySysIndex::kSmearUp] = "energySigmaUp";
15  names[EGEnergySysIndex::kSmearDown] = "energySigmaDown";
16  names[EGEnergySysIndex::kSmearRhoUp] = "energySigmaRhoUp";
17  names[EGEnergySysIndex::kSmearRhoDown] = "energySigmaRhoDown";
18  names[EGEnergySysIndex::kSmearPhiUp] = "energySigmaPhiUp";
19  names[EGEnergySysIndex::kSmearPhiDown] = "energySigmaPhiDown";
20  names[EGEnergySysIndex::kScaleValue] = "energyScaleValue";
21  names[EGEnergySysIndex::kSmearValue] = "energySigmaValue";
22  names[EGEnergySysIndex::kSmearNrSigma] = "energySmearNrSigma";
23  names[EGEnergySysIndex::kEcalPreCorr] = "ecalEnergyPreCorr";
24  names[EGEnergySysIndex::kEcalErrPreCorr] = "ecalEnergyErrPreCorr";
25  names[EGEnergySysIndex::kEcalPostCorr] = "ecalEnergyPostCorr";
26  names[EGEnergySysIndex::kEcalErrPostCorr] = "ecalEnergyErrPostCorr";
27  names[EGEnergySysIndex::kEcalTrkPreCorr] = "ecalTrkEnergyPreCorr";
28  names[EGEnergySysIndex::kEcalTrkErrPreCorr] = "ecalTrkEnergyErrPreCorr";
29  names[EGEnergySysIndex::kEcalTrkPostCorr] = "ecalTrkEnergyPostCorr";
30  names[EGEnergySysIndex::kEcalTrkErrPostCorr] = "ecalTrkEnergyErrPostCorr";
31  return names;
32  }
33 } // namespace
34 
35 const std::array<std::string, EGEnergySysIndex::kNrSysErrs> EGEnergySysIndex::names_ = makeEGEnergySysNames();
EGEnergySysIndex.h
EGEnergySysIndex::kEcalTrkPostCorr
Definition: EGEnergySysIndex.h:39
EGEnergySysIndex::kSmearRhoDown
Definition: EGEnergySysIndex.h:23
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::kSmearNrSigma
Definition: EGEnergySysIndex.h:32
EGEnergySysIndex::kScaleGainDown
Definition: EGEnergySysIndex.h:21
EGEnergySysIndex::kScaleUp
Definition: EGEnergySysIndex.h:26
names
const std::string names[nVars_]
Definition: PhotonIDValueMapProducer.cc:124
EGEnergySysIndex::kEcalErrPreCorr
Definition: EGEnergySysIndex.h:34
EGEnergySysIndex::kSmearDown
Definition: EGEnergySysIndex.h:29
EGEnergySysIndex::kEcalTrkErrPreCorr
Definition: EGEnergySysIndex.h:38
EGEnergySysIndex::kScaleDown
Definition: EGEnergySysIndex.h:27
EGEnergySysIndex::kEcalPostCorr
Definition: EGEnergySysIndex.h:35
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
EGEnergySysIndex::kScaleStatUp
Definition: EGEnergySysIndex.h:16
EGEnergySysIndex::kEcalTrkErrPostCorr
Definition: EGEnergySysIndex.h:40
EGEnergySysIndex::kSmearPhiUp
Definition: EGEnergySysIndex.h:24