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