ATLAS Offline Software
MuonIsolationAlg.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 
8 
9 #ifndef MUON_ANALYSIS_ALGORITHMS__MUON_ISOLATION_ALG_H
10 #define MUON_ANALYSIS_ALGORITHMS__MUON_ISOLATION_ALG_H
11 
19 #include <xAODMuon/MuonContainer.h>
20 
21 namespace CP
22 {
24 
25  class MuonIsolationAlg final : public EL::AnaAlgorithm
26  {
28  public:
30  StatusCode initialize () override;
31  StatusCode execute () override;
32 
33 
34 
36  private:
37  ToolHandle<IIsolationSelectionTool> m_isolationTool {this, "isolationTool", "CP::IsolationSelectionTool", "the isolation tool we apply"};
38 
40  private:
42 
44  private:
46  this, "muons", "Muons", "the muon collection to run on"};
47 
49  private:
51  this, "preselection", "", "the preselection to apply"};
52 
54  private:
56  this, "isolationDecoration", "", "the decoration for the muon isolation"};
57 
59  private:
60  ServiceHandle<ISelectionNameSvc> m_nameSvc {"SelectionNameSvc", "MuonIsolationAlg"};
61 
63  private:
65  };
66 }
67 
68 #endif
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition: SysListHandle.h:33
CP::MuonIsolationAlg::m_preselection
SysReadSelectionHandle m_preselection
the preselection we apply to our input
Definition: MuonIsolationAlg.h:50
SysListHandle.h
CP::MuonIsolationAlg::m_muonHandle
SysReadHandle< xAOD::MuonContainer > m_muonHandle
the muon collection we run on
Definition: MuonIsolationAlg.h:45
SysWriteSelectionHandle.h
CP::SelectionType
uint32_t SelectionType
the type for selection decorations that are meant to hold a asg::AcceptData
Definition: SelectionHelpers.h:26
CP::MuonIsolationAlg::initialize
StatusCode initialize() override
Definition: MuonIsolationAlg.cxx:25
CP::SysReadHandle< xAOD::MuonContainer >
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
CP::MuonIsolationAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition: MuonIsolationAlg.h:41
EL::AnaAlgorithm::AnaAlgorithm
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition: AnaAlgorithm.cxx:40
SysReadHandle.h
AnaAlgorithm.h
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CP::MuonIsolationAlg::m_nameSvc
ServiceHandle< ISelectionNameSvc > m_nameSvc
the ISelectionNameSvc
Definition: MuonIsolationAlg.h:60
ISelectionNameSvc.h
CP::MuonIsolationAlg::m_isolationHandle
SysWriteSelectionHandle m_isolationHandle
the decoration for the muon isolation
Definition: MuonIsolationAlg.h:55
SysReadSelectionHandle.h
IIsolationSelectionTool.h
CP::MuonIsolationAlg::m_isolationTool
ToolHandle< IIsolationSelectionTool > m_isolationTool
the smearing tool
Definition: MuonIsolationAlg.h:37
MuonContainer.h
CP::MuonIsolationAlg::execute
StatusCode execute() override
Definition: MuonIsolationAlg.cxx:50
CP::SysReadSelectionHandle
a data handle for reading systematically varied selection properties from objects
Definition: SysReadSelectionHandle.h:32
CP::MuonIsolationAlg::m_setOnFail
SelectionType m_setOnFail
the bits to set for an object failing the preselection
Definition: MuonIsolationAlg.h:64
CP::MuonIsolationAlg
an algorithm for calling IMuonSelectionTool
Definition: MuonIsolationAlg.h:26
CP::SysWriteSelectionHandle
a data handle for writing systematically varied selection properties from objects
Definition: SysWriteSelectionHandle.h:32
ServiceHandle
Definition: ClusterMakerTool.h:37