ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
ElectronPhotonID
ElectronEfficiencyCorrection
ElectronEfficiencyCorrection
TElectronTestAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
10
11
#ifndef TElectronTestAlg_H
12
#define TElectronTestAlg_H
13
14
#include <memory>
15
//
16
#include "
AnaAlgorithm/AnaReentrantAlgorithm.h
"
17
#include "
AsgDataHandles/ReadHandleKey.h
"
18
#include "
AsgDataHandles/WriteDecorHandleKey.h
"
19
#include "
AsgTools/PropertyWrapper.h
"
20
#include "
ColumnarMode/ColumnarMode.h
"
21
//
22
#include "
ElectronEfficiencyCorrection/TElectronEfficiencyCorrectionTool.h
"
23
#include "
xAODEgamma/ElectronContainer.h
"
24
namespace
ADD_CMODE(CP) {
25
class
TElectronTestAlg
:
public
EL::AnaReentrantAlgorithm
{
26
27
public
:
28
TElectronTestAlg
(
const
std::string& n, ISvcLocator* l)
29
:
EL::AnaReentrantAlgorithm
(n, l) {}
30
virtual
StatusCode
initialize
()
override
final
;
31
virtual
StatusCode execute(
const
EventContext& ctx)
const
override
final
;
32
33
private
:
34
bool
m_doDetail{
false
};
35
bool
m_doToys{
false
};
36
int
m_numberCorr{0};
37
double
m_lowestEt{0};
38
40
std::unique_ptr<Root::TElectronEfficiencyCorrectionTool> m_pimpl =
nullptr
;
42
SG::ReadHandleKey<xAOD::ElectronContainer>
m_electronContainer{
43
this
,
"ElectronContainer"
,
"Electrons"
,
"The input Electrons container"
};
44
46
Gaudi::Property<std::string> m_mapFile{
47
this
,
"MapFilePath"
,
48
"ElectronEfficiencyCorrection/2015_2025/rel22.2/"
49
"2022_Summer_Prerecom_v1/map2.txt"
,
50
"Full path to the map file"
};
51
Gaudi::Property<std::string> m_recoKey{
this
,
"RecoKey"
,
""
,
52
"Key associated with reconstruction"
};
53
Gaudi::Property<std::string> m_idKey{
54
this
,
"IdKey"
,
""
,
"Key associated with identification working point"
};
55
56
Gaudi::Property<std::string> m_isoKey{
57
this
,
"IsoKey"
,
""
,
"Key associated with isolation working point"
};
58
59
Gaudi::Property<std::string> m_triggerKey{
60
this
,
"TriggerKey"
,
""
,
"Key associated with trigger working point"
};
61
62
Gaudi::Property<int> m_dataType{
this
,
"dataType"
,
63
PATCore::ParticleDataType::Full
,
64
"Particle Data Type Full/Fast"
};
65
66
enum
mode { All = 0, Full = 1,
Total
= 2, Toys = 3 };
67
Gaudi::Property<int> m_mode{
this
,
"mode"
, All,
"Mode (All/Full/Total/Toys"
};
68
Gaudi::Property<int> m_number_of_toys{
this
,
"number_of_toys"
, 40,
69
"Number of toys in the ensemble"
};
70
71
Gaudi::Property<bool> m_decorate{
this
,
"doDecorate"
,
true
,
"Do decorations"
};
72
73
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
m_SF{
this
,
"DoNotSet_SF"
,
74
"Electrons.SF"
,
""
};
75
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
m_TotalUp{
76
this
,
"DoNotSet_TotalUp"
,
"Electrons.TotalUp"
,
""
};
77
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
m_TotalDown{
78
this
,
"DoNotSet_TotalDown"
,
"Electrons.TotalDown"
,
""
};
79
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
m_uncorrUp{
80
this
,
"DoNotSet_UnCorrUp"
,
"Electrons.UnCorrUp"
,
""
};
81
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
m_uncorrDown{
82
this
,
"DoNotSet_UnCorrDown"
,
"Electrons.UnCorrDown"
,
""
};
83
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
m_HistIndex{
84
this
,
"DoNotSet_HistIndex"
,
"Electrons.HistIndex"
,
""
};
85
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
m_HistBin{
86
this
,
"DoNotSet_HistBin"
,
"Electrons.HistBin"
,
""
};
87
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
m_corrUp{
88
this
,
"DoNotSet_CorrUp"
,
"Electrons.CorrUp"
,
""
};
89
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
m_corrDown{
90
this
,
"DoNotSet_CorrDown"
,
"Electrons.CorrDown"
,
""
};
91
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
m_toys{
this
,
"DoNotSet_"
,
92
"Electrons.toys"
,
""
};
93
};
94
}
// namespace ADD_CMODE(CP)
95
#endif
96
AnaReentrantAlgorithm.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKey.h
Total
@ Total
Definition
CalibrationDataInterfaceROOT.h:70
ColumnarMode.h
ElectronContainer.h
PropertyWrapper.h
TElectronEfficiencyCorrectionTool.h
EL::AnaReentrantAlgorithm
the base class for EventLoop reentrant algorithms
Definition
AnaReentrantAlgorithm.h:51
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
TElectronTestAlg
Dual use Test Alg for TElectronEfficiencyTool.
PATCore::ParticleDataType::Full
@ Full
Definition
PATCoreEnums.h:22
initialize
void initialize()
Definition
run_EoverP.cxx:894
Generated on
for ATLAS Offline Software by
1.17.0