Main Page
Namespaces
Classes
Package Documentation
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
11
class
EGEnergySysIndex
{
12
public
:
13
enum
Index
{
14
kScaleStatUp
=0,
15
kScaleStatDown
,
16
kScaleSystUp
,
17
kScaleSystDown
,
18
kScaleGainUp
,
19
kScaleGainDown
,
20
kSmearRhoUp
,
21
kSmearRhoDown
,
22
kSmearPhiUp
,
23
kSmearPhiDown
,
24
kScaleUp
,
25
kScaleDown
,
26
kSmearUp
,
27
kSmearDown
,
28
kScaleValue
,
29
kSmearValue
,
30
kSmearNrSigma
,
31
kEcalPreCorr
,
32
kEcalErrPreCorr
,
33
kEcalPostCorr
,
34
kEcalErrPostCorr
,
35
kEcalTrkPreCorr
,
36
kEcalTrkErrPreCorr
,
37
kEcalTrkPostCorr
,
38
kEcalTrkErrPostCorr
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
49
};
50
51
#endif
EGEnergySysIndex
Definition:
EGEnergySysIndex.h:11
EGEnergySysIndex::kSmearPhiUp
Definition:
EGEnergySysIndex.h:22
EGEnergySysIndex::kEcalTrkPreCorr
Definition:
EGEnergySysIndex.h:35
EGEnergySysIndex::kScaleGainDown
Definition:
EGEnergySysIndex.h:19
EGEnergySysIndex::kSmearUp
Definition:
EGEnergySysIndex.h:26
EGEnergySysIndex::kEcalPostCorr
Definition:
EGEnergySysIndex.h:33
EGEnergySysIndex::kScaleSystUp
Definition:
EGEnergySysIndex.h:16
EGEnergySysIndex::kEcalErrPreCorr
Definition:
EGEnergySysIndex.h:32
EGEnergySysIndex::kScaleDown
Definition:
EGEnergySysIndex.h:25
EGEnergySysIndex::kEcalTrkErrPostCorr
Definition:
EGEnergySysIndex.h:38
EGEnergySysIndex::name
static const std::string & name(size_t index)
Definition:
EGEnergySysIndex.h:42
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
EGEnergySysIndex::kScaleValue
Definition:
EGEnergySysIndex.h:28
EGEnergySysIndex::kEcalTrkErrPreCorr
Definition:
EGEnergySysIndex.h:36
EGEnergySysIndex::kScaleUp
Definition:
EGEnergySysIndex.h:24
EGEnergySysIndex::kScaleStatUp
Definition:
EGEnergySysIndex.h:14
EGEnergySysIndex::kScaleSystDown
Definition:
EGEnergySysIndex.h:17
EGEnergySysIndex::kSmearNrSigma
Definition:
EGEnergySysIndex.h:30
EGEnergySysIndex::kEcalTrkPostCorr
Definition:
EGEnergySysIndex.h:37
EGEnergySysIndex::names_
static const std::array< std::string, kNrSysErrs > names_
Definition:
EGEnergySysIndex.h:45
EGEnergySysIndex::kSmearRhoUp
Definition:
EGEnergySysIndex.h:20
AlignmentPI::index
index
Definition:
AlignmentPayloadInspectorHelper.h:36
EGEnergySysIndex::kScaleStatDown
Definition:
EGEnergySysIndex.h:15
EGEnergySysIndex::kNrSysErrs
static constexpr size_t kNrSysErrs
Definition:
EGEnergySysIndex.h:40
EGEnergySysIndex::kSmearPhiDown
Definition:
EGEnergySysIndex.h:23
EGEnergySysIndex::kEcalErrPostCorr
Definition:
EGEnergySysIndex.h:34
EGEnergySysIndex::kEcalPreCorr
Definition:
EGEnergySysIndex.h:31
EGEnergySysIndex::kScaleGainUp
Definition:
EGEnergySysIndex.h:18
EGEnergySysIndex::kSmearRhoDown
Definition:
EGEnergySysIndex.h:21
EGEnergySysIndex::kSmearDown
Definition:
EGEnergySysIndex.h:27
EGEnergySysIndex::Index
Index
Definition:
EGEnergySysIndex.h:13
EGEnergySysIndex::kSmearValue
Definition:
EGEnergySysIndex.h:29
constexpr
#define constexpr
Definition:
GCC11Compatibility.h:35
Generated for CMSSW Reference Manual by
1.8.11