ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
AsgAnalysisAlgorithms
AsgAnalysisAlgorithms
FakeBkgCalculatorAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
#ifndef ASG_FAKEBKGCALCULATORALG_H
8
#define ASG_FAKEBKGCALCULATORALG_H
9
10
// Algorithm includes
11
#include <
AnaAlgorithm/AnaAlgorithm.h
>
12
#include <
SystematicsHandles/SysListHandle.h
>
13
#include <
SystematicsHandles/SysReadHandle.h
>
14
#include <
SystematicsHandles/SysWriteDecorHandle.h
>
15
#include <
SelectionHelpers/SysReadSelectionHandle.h
>
16
#include <
AsgTools/PropertyWrapper.h
>
17
18
// Framework includes
19
#include <
xAODEgamma/ElectronContainer.h
>
20
#include <
xAODMuon/MuonContainer.h
>
21
#include <
xAODEventInfo/EventInfo.h
>
22
23
#include "
AsgAnalysisInterfaces/ILinearFakeBkgTool.h
"
24
25
26
namespace
CP
{
27
28
class
FakeBkgCalculatorAlg
final :
public
EL::AnaAlgorithm
{
29
30
public
:
31
using
EL::AnaAlgorithm::AnaAlgorithm
;
32
virtual
StatusCode
initialize
()
override
;
33
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
34
35
private
:
36
CP::SysListHandle
m_systematicsList
{
this
};
37
38
// configurable properties
39
Gaudi::Property<std::string>
m_definition
{
this
,
"Definition"
,
""
,
"lepton definition used by FakeBkgTools from IFF"
};
40
Gaudi::Property<std::string>
m_process
{
this
,
"Process"
,
""
,
"target process used by FakeBkgTools from IFF"
};
41
42
// inputs needed for calculation
43
CP::SysReadHandle<xAOD::ElectronContainer>
m_electronsHandle
{
44
this
,
"electrons"
,
""
,
"the electron container to use"
45
};
46
CP::SysReadSelectionHandle
m_electronSelection
{
47
this
,
"electronSelection"
,
""
,
"the selection on the input electrons"
48
};
49
CP::SysReadSelectionHandle
m_electronSelectionTarget
{
50
this
,
"electronSelectionTarget"
,
""
,
"the tight selection on the input electrons"
51
};
52
53
CP::SysReadHandle<xAOD::MuonContainer>
m_muonsHandle
{
54
this
,
"muons"
,
""
,
"the muon container to use"
55
};
56
CP::SysReadSelectionHandle
m_muonSelection
{
57
this
,
"muonSelection"
,
""
,
"the selection on the input muons"
58
};
59
CP::SysReadSelectionHandle
m_muonSelectionTarget
{
60
this
,
"muonSelectionTarget"
,
""
,
"the tight selection on the input muons"
61
};
62
63
CP::SysReadHandle<xAOD::EventInfo>
m_eventInfoHandle
{
64
this
,
"eventInfo"
,
"EventInfo"
,
"the EventInfo container to read selection deciosions from"
65
};
66
67
CP::SysReadSelectionHandle
m_preselection
{
68
this
,
"eventPreselection"
,
""
,
"event preselection to check before running this algorithm"
69
};
70
71
ToolHandle<ILinearFakeBkgTool>
m_fakeTool
{
72
this
,
"FakeTool"
,
""
,
"the tool for fake lepton estimate among the different [FakeBkgTools](https://gitlab.cern.ch/atlas/athena/-/tree/main/PhysicsAnalysis/AnalysisCommon/FakeBkgTools). The currently available one is `CP::AsymptMatrixTool`"
73
};
74
75
// output container
76
CP::SysWriteDecorHandle<float>
m_fakeToolOutput
{
77
this
,
"FakeToolOutput"
,
"FakeToolOutput_%SYS%"
,
"decoration name for the Fake Tool output"
78
};
79
80
};
81
82
}
// namespace
83
84
#endif
AnaAlgorithm.h
ElectronContainer.h
MuonContainer.h
ILinearFakeBkgTool.h
PropertyWrapper.h
SysListHandle.h
SysReadHandle.h
SysReadSelectionHandle.h
SysWriteDecorHandle.h
CP::FakeBkgCalculatorAlg
Definition
FakeBkgCalculatorAlg.h:28
CP::FakeBkgCalculatorAlg::m_muonSelectionTarget
CP::SysReadSelectionHandle m_muonSelectionTarget
Definition
FakeBkgCalculatorAlg.h:59
CP::FakeBkgCalculatorAlg::m_fakeToolOutput
CP::SysWriteDecorHandle< float > m_fakeToolOutput
Definition
FakeBkgCalculatorAlg.h:76
CP::FakeBkgCalculatorAlg::m_electronsHandle
CP::SysReadHandle< xAOD::ElectronContainer > m_electronsHandle
Definition
FakeBkgCalculatorAlg.h:43
CP::FakeBkgCalculatorAlg::m_definition
Gaudi::Property< std::string > m_definition
Definition
FakeBkgCalculatorAlg.h:39
CP::FakeBkgCalculatorAlg::initialize
virtual StatusCode initialize() override
Definition
FakeBkgCalculatorAlg.cxx:12
CP::FakeBkgCalculatorAlg::m_muonSelection
CP::SysReadSelectionHandle m_muonSelection
Definition
FakeBkgCalculatorAlg.h:56
CP::FakeBkgCalculatorAlg::m_fakeTool
ToolHandle< ILinearFakeBkgTool > m_fakeTool
Definition
FakeBkgCalculatorAlg.h:71
CP::FakeBkgCalculatorAlg::m_preselection
CP::SysReadSelectionHandle m_preselection
Definition
FakeBkgCalculatorAlg.h:67
CP::FakeBkgCalculatorAlg::m_eventInfoHandle
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
Definition
FakeBkgCalculatorAlg.h:63
CP::FakeBkgCalculatorAlg::m_muonsHandle
CP::SysReadHandle< xAOD::MuonContainer > m_muonsHandle
Definition
FakeBkgCalculatorAlg.h:53
CP::FakeBkgCalculatorAlg::m_systematicsList
CP::SysListHandle m_systematicsList
Definition
FakeBkgCalculatorAlg.h:36
CP::FakeBkgCalculatorAlg::m_electronSelection
CP::SysReadSelectionHandle m_electronSelection
Definition
FakeBkgCalculatorAlg.h:46
CP::FakeBkgCalculatorAlg::m_process
Gaudi::Property< std::string > m_process
Definition
FakeBkgCalculatorAlg.h:40
CP::FakeBkgCalculatorAlg::m_electronSelectionTarget
CP::SysReadSelectionHandle m_electronSelectionTarget
Definition
FakeBkgCalculatorAlg.h:49
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition
SysListHandle.h:33
CP::SysReadHandle
a data handle for reading systematics varied input data
Definition
SysReadHandle.h:33
CP::SysReadSelectionHandle
a data handle for reading systematically varied selection properties from objects
Definition
SysReadSelectionHandle.h:32
CP::SysWriteDecorHandle
a data handle for reading systematics varied input data
Definition
SysWriteDecorHandle.h:42
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition
AnaAlgorithm.h:74
EL::AnaAlgorithm::AnaAlgorithm
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition
AnaAlgorithm.cxx:40
EL::AnaAlgorithm::execute
virtual::StatusCode execute()
execute this algorithm
Definition
AnaAlgorithm.cxx:315
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0