ATLAS Offline Software
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
17 
18 // Framework includes
20 #include <xAODMuon/MuonContainer.h>
22 
24 
25 
26 namespace CP {
27 
28  class FakeBkgCalculatorAlg final : public EL::AnaAlgorithm {
29 
30  public:
32  virtual StatusCode initialize() override;
33  virtual StatusCode execute() override;
34 
35  private:
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
44  this, "electrons", "", "the electron container to use"
45  };
47  this, "electronSelection", "", "the selection on the input electrons"
48  };
50  this, "electronSelectionTarget", "", "the tight selection on the input electrons"
51  };
52 
54  this, "muons", "", "the muon container to use"
55  };
57  this, "muonSelection", "", "the selection on the input muons"
58  };
60  this, "muonSelectionTarget", "", "the tight selection on the input muons"
61  };
62 
64  this, "eventInfo", "EventInfo", "the EventInfo container to read selection deciosions from"
65  };
66 
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
77  this, "FakeToolOutput", "FakeToolOutput_%SYS%", "decoration name for the Fake Tool output"
78  };
79 
80  };
81 
82 } // namespace
83 
84 #endif
PropertyWrapper.h
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition: SysListHandle.h:33
SysWriteDecorHandle.h
CP::FakeBkgCalculatorAlg
Definition: FakeBkgCalculatorAlg.h:28
CP::FakeBkgCalculatorAlg::m_muonSelectionTarget
CP::SysReadSelectionHandle m_muonSelectionTarget
Definition: FakeBkgCalculatorAlg.h:59
SysListHandle.h
CP::FakeBkgCalculatorAlg::m_fakeToolOutput
CP::SysWriteDecorHandle< float > m_fakeToolOutput
Definition: FakeBkgCalculatorAlg.h:76
CP::FakeBkgCalculatorAlg::execute
virtual StatusCode execute() override
Definition: FakeBkgCalculatorAlg.cxx:33
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::m_muonSelection
CP::SysReadSelectionHandle m_muonSelection
Definition: FakeBkgCalculatorAlg.h:56
CP::FakeBkgCalculatorAlg::m_electronSelectionTarget
CP::SysReadSelectionHandle m_electronSelectionTarget
Definition: FakeBkgCalculatorAlg.h:49
CP::SysReadHandle< xAOD::ElectronContainer >
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
EL::AnaAlgorithm::AnaAlgorithm
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition: AnaAlgorithm.cxx:40
CP::FakeBkgCalculatorAlg::initialize
virtual StatusCode initialize() override
Definition: FakeBkgCalculatorAlg.cxx:12
SysReadHandle.h
CP::FakeBkgCalculatorAlg::m_preselection
CP::SysReadSelectionHandle m_preselection
Definition: FakeBkgCalculatorAlg.h:67
AnaAlgorithm.h
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
ElectronContainer.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CP::FakeBkgCalculatorAlg::m_fakeTool
ToolHandle< ILinearFakeBkgTool > m_fakeTool
Definition: FakeBkgCalculatorAlg.h:71
ILinearFakeBkgTool.h
CP::FakeBkgCalculatorAlg::m_electronSelection
CP::SysReadSelectionHandle m_electronSelection
Definition: FakeBkgCalculatorAlg.h:46
CP::FakeBkgCalculatorAlg::m_systematicsList
CP::SysListHandle m_systematicsList
Definition: FakeBkgCalculatorAlg.h:36
SysReadSelectionHandle.h
CP::FakeBkgCalculatorAlg::m_muonsHandle
CP::SysReadHandle< xAOD::MuonContainer > m_muonsHandle
Definition: FakeBkgCalculatorAlg.h:53
CP::FakeBkgCalculatorAlg::m_eventInfoHandle
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
Definition: FakeBkgCalculatorAlg.h:63
EventInfo.h
MuonContainer.h
CP::FakeBkgCalculatorAlg::m_process
Gaudi::Property< std::string > m_process
Definition: FakeBkgCalculatorAlg.h:40
CP::SysReadSelectionHandle
a data handle for reading systematically varied selection properties from objects
Definition: SysReadSelectionHandle.h:32
CP::SysWriteDecorHandle< float >