ATLAS Offline Software
Event
xAOD
xAODTau
xAODTau
versions
TauJetCalibMapper_v3.h
Go to the documentation of this file.
1
// Dear emacs, this is -*- c++ -*-
2
3
/*
4
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// $Id$
8
#ifndef XAODTAU_VERSIONS_TAUJETCALIBMAPPER_V3_H
9
#define XAODTAU_VERSIONS_TAUJETCALIBMAPPER_V3_H
10
11
// System include(s):
12
#include <iostream>
13
#include "
xAODTau/TauDefs.h
"
14
namespace
xAOD
{
15
struct
TauJetCalibTypeMapper_v3
{
16
bool
getValue
(
TauJetParameters::TauCalibType
type
, std::string& stringPt, std::string& stringEta, std::string& stringPhi, std::string& stringM){
17
switch
(
type
){
18
case
TauJetParameters::JetSeed
:
19
stringPt =
"ptJetSeed"
;
20
stringEta =
"etaJetSeed"
;
21
stringPhi =
"phiJetSeed"
;
22
stringM =
"mJetSeed"
;
23
return
true
;
24
case
TauJetParameters::DetectorAxis
:
25
stringPt =
"ptDetectorAxis"
;
26
stringEta =
"etaDetectorAxis"
;
27
stringPhi =
"phiDetectorAxis"
;
28
stringM =
"mDetectorAxis"
;
29
return
true
;
30
case
TauJetParameters::IntermediateAxis
:
31
stringPt =
"ptIntermediateAxis"
;
32
stringEta =
"etaIntermediateAxis"
;
33
stringPhi =
"phiIntermediateAxis"
;
34
stringM =
"mIntermediateAxis"
;
35
return
true
;
36
case
TauJetParameters::TauEnergyScale
:
37
stringPt =
"ptTauEnergyScale"
;
//only energy is scaled
38
stringEta =
""
;
39
stringPhi =
""
;
40
stringM =
""
;
41
return
true
;
42
case
TauJetParameters::TauEtaCalib
:
43
stringPt =
"ptTauEtaCalib"
;
44
stringEta =
"etaTauEtaCalib"
;
//only eta changes, but pt must be be adjusted, so we store pt as well
45
stringPhi =
""
;
46
stringM =
""
;
47
return
true
;
48
case
TauJetParameters::PanTauCellBasedProto
:
49
stringPt =
"ptPanTauCellBasedProto"
;
50
stringEta =
"etaPanTauCellBasedProto"
;
51
stringPhi =
"phiPanTauCellBasedProto"
;
52
stringM =
"mPanTauCellBasedProto"
;
53
return
true
;
54
case
TauJetParameters::PanTauCellBased
:
55
stringPt =
"ptPanTauCellBased"
;
56
stringEta =
"etaPanTauCellBased"
;
57
stringPhi =
"phiPanTauCellBased"
;
58
stringM =
"mPanTauCellBased"
;
59
return
true
;
60
case
TauJetParameters::TrigCaloOnly
:
61
stringPt =
"ptTrigCaloOnly"
;
62
stringEta =
"etaTrigCaloOnly"
;
63
stringPhi =
"phiTrigCaloOnly"
;
64
stringM =
"mTrigCaloOnly"
;
65
return
true
;
66
}
//switch
67
return
false
;
68
}
//getValue
69
70
};
71
72
}
73
74
#endif
xAOD::TauJetParameters::PanTauCellBasedProto
@ PanTauCellBasedProto
Definition:
TauDefs.h:343
xAOD::TauJetParameters::IntermediateAxis
@ IntermediateAxis
Definition:
TauDefs.h:338
xAOD::TauJetParameters::TauEtaCalib
@ TauEtaCalib
Definition:
TauDefs.h:340
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition:
ICaloAffectedTool.h:24
xAOD::TauJetParameters::JetSeed
@ JetSeed
Definition:
TauDefs.h:336
xAOD::TauJetCalibTypeMapper_v3::getValue
bool getValue(TauJetParameters::TauCalibType type, std::string &stringPt, std::string &stringEta, std::string &stringPhi, std::string &stringM)
Definition:
TauJetCalibMapper_v3.h:16
TauDefs.h
xAOD::TauJetParameters::TauCalibType
TauCalibType
Enum for tau calib type.
Definition:
TauDefs.h:335
xAOD::TauJetParameters::PanTauCellBased
@ PanTauCellBased
Definition:
TauDefs.h:344
xAOD::TauJetParameters::TauEnergyScale
@ TauEnergyScale
Definition:
TauDefs.h:339
xAOD::TauJetParameters::TrigCaloOnly
@ TrigCaloOnly
Definition:
TauDefs.h:345
xAOD::TauJetCalibTypeMapper_v3
Definition:
TauJetCalibMapper_v3.h:15
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
xAOD::TauJetParameters::DetectorAxis
@ DetectorAxis
Definition:
TauDefs.h:337
Generated on Sun Dec 22 2024 21:18:54 for ATLAS Offline Software by
1.8.18