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
//
21
#include "
ElectronEfficiencyCorrection/TElectronEfficiencyCorrectionTool.h
"
22
#include "
xAODEgamma/ElectronContainer.h
"
23
namespace
CP
{
24
class
TElectronTestAlg
:
public
EL::AnaReentrantAlgorithm
{
25
26
public
:
27
TElectronTestAlg
(
const
std::string& n, ISvcLocator* l)
28
:
EL
::
AnaReentrantAlgorithm
(n, l) {}
29
virtual
StatusCode
initialize
() override final;
30
virtual StatusCode
execute
(
const
EventContext& ctx)
const
override final;
31
32
private
:
33
bool
m_doDetail
{
false
};
34
bool
m_doToys
{
false
};
35
int
m_numberCorr
{0};
36
double
m_lowestEt
{0};
37
39
std::unique_ptr<Root::TElectronEfficiencyCorrectionTool>
m_pimpl
=
nullptr
;
41
SG::ReadHandleKey<xAOD::ElectronContainer>
m_electronContainer
{
42
this
,
"ElectronContainer"
,
"Electrons"
,
"The input Electrons container"
};
43
45
Gaudi::Property<std::string>
m_mapFile
{
46
this
,
"MapFilePath"
,
47
"ElectronEfficiencyCorrection/2015_2025/rel22.2/"
48
"2022_Summer_Prerecom_v1/map2.txt"
,
49
"Full path to the map file"
};
50
Gaudi::Property<std::string>
m_recoKey
{
this
,
"RecoKey"
,
""
,
51
"Key associated with reconstruction"
};
52
Gaudi::Property<std::string>
m_idKey
{
53
this
,
"IdKey"
,
""
,
"Key associated with identification working point"
};
54
55
Gaudi::Property<std::string>
m_isoKey
{
56
this
,
"IsoKey"
,
""
,
"Key associated with isolation working point"
};
57
58
Gaudi::Property<std::string>
m_triggerKey
{
59
this
,
"TriggerKey"
,
""
,
"Key associated with trigger working point"
};
60
61
Gaudi::Property<int>
m_dataType
{
this
,
"dataType"
,
62
PATCore::ParticleDataType::Full
,
63
"Particle Data Type Full/Fast"
};
64
65
enum
mode
{
All
= 0,
Full
= 1,
Total
= 2,
Toys
= 3 };
66
Gaudi::Property<int>
m_mode
{
this
,
"mode"
,
All
,
"Mode (All/Full/Total/Toys"
};
67
Gaudi::Property<int>
m_number_of_toys
{
this
,
"number_of_toys"
, 40,
68
"Number of toys in the ensemble"
};
69
70
Gaudi::Property<bool>
m_decorate
{
this
,
"doDecorate"
,
true
,
"Do decorations"
};
71
72
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
m_SF
{
this
,
"DoNotSet_SF"
,
73
"Electrons.SF"
,
""
};
74
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
m_TotalUp
{
75
this
,
"DoNotSet_TotalUp"
,
"Electrons.TotalUp"
,
""
};
76
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
m_TotalDown
{
77
this
,
"DoNotSet_TotalDown"
,
"Electrons.TotalDown"
,
""
};
78
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
m_uncorrUp
{
79
this
,
"DoNotSet_UnCorrUp"
,
"Electrons.UnCorrUp"
,
""
};
80
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
m_uncorrDown
{
81
this
,
"DoNotSet_UnCorrDown"
,
"Electrons.UnCorrDown"
,
""
};
82
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
m_HistIndex
{
83
this
,
"DoNotSet_HistIndex"
,
"Electrons.HistIndex"
,
""
};
84
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
m_HistBin
{
85
this
,
"DoNotSet_HistBin"
,
"Electrons.HistBin"
,
""
};
86
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
m_corrUp
{
87
this
,
"DoNotSet_CorrUp"
,
"Electrons.CorrUp"
,
""
};
88
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
m_corrDown
{
89
this
,
"DoNotSet_CorrDown"
,
"Electrons.CorrDown"
,
""
};
90
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
m_toys
{
this
,
"DoNotSet_"
,
91
"Electrons.toys"
,
""
};
92
};
93
}
// namespace CP
94
#endif
95
AnaReentrantAlgorithm.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKey.h
ElectronContainer.h
PropertyWrapper.h
TElectronEfficiencyCorrectionTool.h
CP::TElectronTestAlg::TElectronTestAlg
TElectronTestAlg(const std::string &n, ISvcLocator *l)
Definition
TElectronTestAlg.h:27
CP::TElectronTestAlg::m_doDetail
bool m_doDetail
Definition
TElectronTestAlg.h:33
CP::TElectronTestAlg::m_decorate
Gaudi::Property< bool > m_decorate
Definition
TElectronTestAlg.h:70
CP::TElectronTestAlg::m_dataType
Gaudi::Property< int > m_dataType
Definition
TElectronTestAlg.h:61
CP::TElectronTestAlg::mode
mode
Definition
TElectronTestAlg.h:65
CP::TElectronTestAlg::Toys
@ Toys
Definition
TElectronTestAlg.h:65
CP::TElectronTestAlg::Total
@ Total
Definition
TElectronTestAlg.h:65
CP::TElectronTestAlg::All
@ All
Definition
TElectronTestAlg.h:65
CP::TElectronTestAlg::Full
@ Full
Definition
TElectronTestAlg.h:65
CP::TElectronTestAlg::m_electronContainer
SG::ReadHandleKey< xAOD::ElectronContainer > m_electronContainer
Input collection name.
Definition
TElectronTestAlg.h:41
CP::TElectronTestAlg::m_toys
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_toys
Definition
TElectronTestAlg.h:90
CP::TElectronTestAlg::m_HistIndex
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_HistIndex
Definition
TElectronTestAlg.h:82
CP::TElectronTestAlg::m_idKey
Gaudi::Property< std::string > m_idKey
Definition
TElectronTestAlg.h:52
CP::TElectronTestAlg::m_TotalUp
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_TotalUp
Definition
TElectronTestAlg.h:74
CP::TElectronTestAlg::m_pimpl
std::unique_ptr< Root::TElectronEfficiencyCorrectionTool > m_pimpl
Lowest Et for the reccomendations.
Definition
TElectronTestAlg.h:39
CP::TElectronTestAlg::m_doToys
bool m_doToys
Definition
TElectronTestAlg.h:34
CP::TElectronTestAlg::m_corrDown
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_corrDown
Definition
TElectronTestAlg.h:88
CP::TElectronTestAlg::m_lowestEt
double m_lowestEt
Number of Correlated syst.
Definition
TElectronTestAlg.h:36
CP::TElectronTestAlg::m_mode
Gaudi::Property< int > m_mode
Definition
TElectronTestAlg.h:66
CP::TElectronTestAlg::m_isoKey
Gaudi::Property< std::string > m_isoKey
Definition
TElectronTestAlg.h:55
CP::TElectronTestAlg::m_triggerKey
Gaudi::Property< std::string > m_triggerKey
Definition
TElectronTestAlg.h:58
CP::TElectronTestAlg::m_TotalDown
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_TotalDown
Definition
TElectronTestAlg.h:76
CP::TElectronTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition
TElectronTestAlg.cxx:87
CP::TElectronTestAlg::m_uncorrDown
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_uncorrDown
Definition
TElectronTestAlg.h:80
CP::TElectronTestAlg::m_HistBin
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_HistBin
Definition
TElectronTestAlg.h:84
CP::TElectronTestAlg::initialize
virtual StatusCode initialize() override final
Definition
TElectronTestAlg.cxx:18
CP::TElectronTestAlg::m_numberCorr
int m_numberCorr
Definition
TElectronTestAlg.h:35
CP::TElectronTestAlg::m_SF
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_SF
Definition
TElectronTestAlg.h:72
CP::TElectronTestAlg::m_recoKey
Gaudi::Property< std::string > m_recoKey
Definition
TElectronTestAlg.h:50
CP::TElectronTestAlg::m_number_of_toys
Gaudi::Property< int > m_number_of_toys
Definition
TElectronTestAlg.h:67
CP::TElectronTestAlg::m_mapFile
Gaudi::Property< std::string > m_mapFile
Label for the collection.
Definition
TElectronTestAlg.h:45
CP::TElectronTestAlg::m_uncorrUp
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_uncorrUp
Definition
TElectronTestAlg.h:78
CP::TElectronTestAlg::m_corrUp
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_corrUp
Definition
TElectronTestAlg.h:86
EL::AnaReentrantAlgorithm
the base class for EventLoop reentrant algorithms
Definition
AnaReentrantAlgorithm.h:51
EL::AnaReentrantAlgorithm::AnaReentrantAlgorithm
AnaReentrantAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition
AnaReentrantAlgorithm.cxx:29
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
const
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition
AsgComponentFactories.h:16
PATCore::ParticleDataType::Full
@ Full
Definition
PATCoreEnums.h:22
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0