ATLAS Offline Software
AsgSelectionAlg.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 ASG_ANALYSIS_ALGORITHMS__ASG_SELECTION_ALG_H
10 #define ASG_ANALYSIS_ALGORITHMS__ASG_SELECTION_ALG_H
11 
20 
21 namespace CP
22 {
43 
44  class AsgSelectionAlg final : public EL::AnaAlgorithm
45  {
47  public:
49  StatusCode initialize () override;
50  StatusCode execute () override;
51 
52 
53 
55  private:
56  ToolHandle<IAsgSelectionTool> m_selectionTool {this, "selectionTool", "", "the selection tool we apply"};
57 
63  private:
65 
67  private:
69 
71  private:
73  this, "particles", "", "the asg collection to run on"};
74 
76  private:
78  this, "preselection", "", "the preselection to apply"};
79 
81  private:
83  this, "selectionDecoration", "", "the decoration for the asg selection"};
84 
86  private:
87  ServiceHandle<ISelectionNameSvc> m_nameSvc {"SelectionNameSvc", "AsgSelectionAlg"};
88 
90  private:
92  };
93 }
94 
95 #endif
CP::AsgSelectionAlg::initialize
StatusCode initialize() override
Definition: AsgSelectionAlg.cxx:25
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition: SysListHandle.h:33
CP::AsgSelectionAlg
an algorithm for calling IAsgSelectionTool
Definition: AsgSelectionAlg.h:45
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::AsgSelectionAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition: AsgSelectionAlg.h:68
CP::SysReadHandle
a data handle for reading systematics varied input data
Definition: SysReadHandle.h:32
IAsgSelectionTool.h
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
CP::AsgSelectionAlg::m_systematicsTool
ISystematicsTool * m_systematicsTool
the smearing tool cast to an ISystematicsTool
Definition: AsgSelectionAlg.h:64
CP::AsgSelectionAlg::m_nameSvc
ServiceHandle< ISelectionNameSvc > m_nameSvc
the ISelectionNameSvc
Definition: AsgSelectionAlg.h:87
CP::AsgSelectionAlg::m_particlesHandle
SysReadHandle< xAOD::IParticleContainer > m_particlesHandle
the particle continer we run on
Definition: AsgSelectionAlg.h:72
AnaAlgorithm.h
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
CP::AsgSelectionAlg::execute
StatusCode execute() override
Definition: AsgSelectionAlg.cxx:62
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IParticleContainer.h
ISelectionNameSvc.h
CP::AsgSelectionAlg::m_setOnFail
SelectionType m_setOnFail
the bits to set for an object failing the preselection
Definition: AsgSelectionAlg.h:91
CP::AsgSelectionAlg::m_preselection
SysReadSelectionHandle m_preselection
the preselection we apply to our input
Definition: AsgSelectionAlg.h:77
CP::AsgSelectionAlg::m_selectionHandle
SysWriteSelectionHandle m_selectionHandle
the decoration for the asg selection
Definition: AsgSelectionAlg.h:82
SysReadSelectionHandle.h
CP::ISystematicsTool
Interface for all CP tools supporting systematic variations.
Definition: ISystematicsTool.h:32
CP::SysReadSelectionHandle
a data handle for reading systematically varied selection properties from objects
Definition: SysReadSelectionHandle.h:32
CP::AsgSelectionAlg::m_selectionTool
ToolHandle< IAsgSelectionTool > m_selectionTool
the smearing tool
Definition: AsgSelectionAlg.h:56
CP::SysWriteSelectionHandle
a data handle for writing systematically varied selection properties from objects
Definition: SysWriteSelectionHandle.h:32
ServiceHandle
Definition: ClusterMakerTool.h:37