ATLAS Offline Software
Algorithms/MuonAnalysisAlgorithms/MuonAnalysisAlgorithms/MuonSelectionAlg.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 MUON_ANALYSIS_ALGORITHMS__MUON_SELECTION_ALG_H
8 #define MUON_ANALYSIS_ALGORITHMS__MUON_SELECTION_ALG_H
9 
17 #include <xAODMuon/MuonContainer.h>
18 
19 namespace CP
20 {
22 
23  class MuonSelectionAlgV2 final : public EL::AnaAlgorithm
24  {
26  public:
28  StatusCode initialize () override;
29  StatusCode execute () override;
30 
31 
32 
34  private:
35  ToolHandle<IMuonSelectionTool> m_selectionTool {this, "selectionTool", "", "the selection tool we apply"};
36 
38  private:
40 
42  private:
44  this, "preselection", "", "the preselection to apply"};
45 
47  private:
49  this, "muons", "Muons", "the muons collection to run on"};
50 
52  private:
54  this, "selectionDecoration", "", "the decoration for the quality selection"};
55 
57  private:
59  this, "badMuonVetoDecoration", "", "the decoration for the bad muon veto"};
60 
62  private:
63  ServiceHandle<ISelectionNameSvc> m_nameSvc {"SelectionNameSvc", "MuonSelectionAlgV2"};
64 
66  private:
68  };
69 }
70 
71 #endif
CP::MuonSelectionAlgV2::initialize
StatusCode initialize() override
Definition: Algorithms/MuonAnalysisAlgorithms/Root/MuonSelectionAlg.cxx:22
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition: SysListHandle.h:33
SysListHandle.h
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::SysReadHandle< xAOD::MuonContainer >
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
SysReadHandle.h
IMuonSelectionTool.h
AnaAlgorithm.h
CP::MuonSelectionAlgV2
an algorithm for calling IMuonSelectionTool
Definition: Algorithms/MuonAnalysisAlgorithms/MuonAnalysisAlgorithms/MuonSelectionAlg.h:24
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
ISelectionNameSvc.h
CP::MuonSelectionAlgV2::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition: Algorithms/MuonAnalysisAlgorithms/MuonAnalysisAlgorithms/MuonSelectionAlg.h:39
CP::MuonSelectionAlgV2::execute
StatusCode execute() override
Definition: Algorithms/MuonAnalysisAlgorithms/Root/MuonSelectionAlg.cxx:49
CP::MuonSelectionAlgV2::m_muonsHandle
SysReadHandle< xAOD::MuonContainer > m_muonsHandle
the particle continer we run on
Definition: Algorithms/MuonAnalysisAlgorithms/MuonAnalysisAlgorithms/MuonSelectionAlg.h:48
CP::MuonSelectionAlgV2::m_nameSvc
ServiceHandle< ISelectionNameSvc > m_nameSvc
the ISelectionNameSvc
Definition: Algorithms/MuonAnalysisAlgorithms/MuonAnalysisAlgorithms/MuonSelectionAlg.h:63
SysReadSelectionHandle.h
MuonContainer.h
CP::MuonSelectionAlgV2::m_selectionTool
ToolHandle< IMuonSelectionTool > m_selectionTool
the selection tool
Definition: Algorithms/MuonAnalysisAlgorithms/MuonAnalysisAlgorithms/MuonSelectionAlg.h:35
CP::SysReadSelectionHandle
a data handle for reading systematically varied selection properties from objects
Definition: SysReadSelectionHandle.h:32
CP::MuonSelectionAlgV2::m_selectionHandle
SysWriteSelectionHandle m_selectionHandle
the decoration for the quality selection
Definition: Algorithms/MuonAnalysisAlgorithms/MuonAnalysisAlgorithms/MuonSelectionAlg.h:53
CP::SysWriteSelectionHandle
a data handle for writing systematically varied selection properties from objects
Definition: SysWriteSelectionHandle.h:32
CP::MuonSelectionAlgV2::m_setOnFail
SelectionType m_setOnFail
the bits to set for an object failing the preselection
Definition: Algorithms/MuonAnalysisAlgorithms/MuonAnalysisAlgorithms/MuonSelectionAlg.h:67
ServiceHandle
Definition: ClusterMakerTool.h:37
CP::MuonSelectionAlgV2::m_badMuonVetoHandle
SysWriteSelectionHandle m_badMuonVetoHandle
the decoration for the bad muon veto
Definition: Algorithms/MuonAnalysisAlgorithms/MuonAnalysisAlgorithms/MuonSelectionAlg.h:58
CP::MuonSelectionAlgV2::m_preselection
SysReadSelectionHandle m_preselection
the preselection we apply to our input
Definition: Algorithms/MuonAnalysisAlgorithms/MuonAnalysisAlgorithms/MuonSelectionAlg.h:43