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 }
34 
35 
36 const std::array<std::string,EGEnergySysIndex::kNrSysErrs>
37 EGEnergySysIndex::names_ = makeEGEnergySysNames();
38 
const std::string names[nVars_]
static const std::array< std::string, kNrSysErrs > names_