ATLAS Offline Software
PhysicsAnalysis
Algorithms
EgammaAnalysisAlgorithms
EgammaAnalysisAlgorithms
EgammaIsGoodOQSelectionTool.h
Go to the documentation of this file.
1
// Dear emacs, this is -*- c++ -*-
2
//
3
// Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
4
//
5
#ifndef EGAMMAANALYSISALGORITHMS_EGAMMAISGOODOQSELECTIONTOOL_H
6
#define EGAMMAANALYSISALGORITHMS_EGAMMAISGOODOQSELECTIONTOOL_H
7
8
// Framework include(s):
9
#include "
AsgTools/AsgTool.h
"
10
#include "
PATCore/IAsgSelectionTool.h
"
11
#include "
EgammaAnalysisInterfaces/IAsgDeadHVCellRemovalTool.h
"
12
#include "
AsgTools/AnaToolHandle.h
"
13
#include "
AsgTools/PropertyWrapper.h
"
14
15
// EDM include(s):
16
#include "
xAODEgamma/Egamma.h
"
17
#include "
xAODEgamma/EgammaDefs.h
"
18
19
namespace
CP
{
20
30
class
EgammaIsGoodOQSelectionTool
final :
31
public
asg::AsgTool
,
virtual
public
IAsgSelectionTool
{
32
33
public
:
35
ASG_TOOL_CLASS
(
EgammaIsGoodOQSelectionTool
,
IAsgSelectionTool
)
36
37
38
using
asg::AsgTool::AsgTool
;
39
42
44
virtual
const
asg::AcceptInfo
&
getAcceptInfo
()
const override
;
45
47
virtual
asg::AcceptData
48
accept
(
const
xAOD::IParticle
*
part
)
const override
;
49
51
54
56
virtual
StatusCode
initialize
()
override
;
57
59
60
private
:
63
65
Gaudi::Property<int>
m_mask
{
this
,
"Mask"
,
static_cast<
int
>
(
xAOD::EgammaParameters::ALLOQ
),
"Mask to require passing object quality bits with"
};
66
68
70
asg::AcceptInfo
m_accept
{
"EgammaOQ"
};
72
int
m_oqCutIndex
{ -1 };
73
75
private
:
76
asg::AnaToolHandle<IAsgDeadHVCellRemovalTool>
m_deadHVTool
;
77
79
private
:
80
int
m_deadHVCutIndex
{-1};
81
82
83
};
// class EgammaIsGoodOQSelectionTool
84
85
}
// namespace CP
86
87
#endif // EGAMMAANALYSISALGORITHMS_EGAMMAISGOODOQSELECTIONTOOL_H
LArG4FSStartPointFilter.part
part
Definition:
LArG4FSStartPointFilter.py:21
CP::EgammaIsGoodOQSelectionTool::m_deadHVCutIndex
int m_deadHVCutIndex
Index of this quality cut.
Definition:
EgammaIsGoodOQSelectionTool.h:80
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition:
AsgTool.h:47
PropertyWrapper.h
asg::AnaToolHandle< IAsgDeadHVCellRemovalTool >
CP::EgammaIsGoodOQSelectionTool
Tool selecting e/gamma objects based on their object quality flags.
Definition:
EgammaIsGoodOQSelectionTool.h:31
IAsgSelectionTool
Definition:
IAsgSelectionTool.h:28
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition:
Event/xAOD/xAODBase/xAODBase/IParticle.h:41
IAsgSelectionTool.h
CP
Select isolated Photons, Electrons and Muons.
Definition:
Control/xAODRootAccess/xAODRootAccess/TEvent.h:49
Egamma.h
asg::AsgTool::AsgTool
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition:
AsgTool.cxx:58
CP::EgammaIsGoodOQSelectionTool::initialize
virtual StatusCode initialize() override
Function initialising the tool.
Definition:
EgammaIsGoodOQSelectionTool.cxx:45
CP::EgammaIsGoodOQSelectionTool::m_oqCutIndex
int m_oqCutIndex
Index of the object quality cut.
Definition:
EgammaIsGoodOQSelectionTool.h:72
asg::AcceptInfo
Definition:
AcceptInfo.h:28
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAOD::EgammaParameters::ALLOQ
const uint32_t ALLOQ
Definition:
EgammaDefs.h:133
IAsgDeadHVCellRemovalTool.h
AnaToolHandle.h
CP::EgammaIsGoodOQSelectionTool::m_mask
Gaudi::Property< int > m_mask
The mask to require good object quality with.
Definition:
EgammaIsGoodOQSelectionTool.h:65
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition:
AsgToolMacros.h:68
CP::EgammaIsGoodOQSelectionTool::m_deadHVTool
asg::AnaToolHandle< IAsgDeadHVCellRemovalTool > m_deadHVTool
The tool that selects on dead HV from the 2016 run, acc. to https://twiki.cern.ch/twiki/bin/view/Atla...
Definition:
EgammaIsGoodOQSelectionTool.h:76
EgammaDefs.h
CP::EgammaIsGoodOQSelectionTool::accept
virtual asg::AcceptData accept(const xAOD::IParticle *part) const override
Get the results for a given particle.
Definition:
EgammaIsGoodOQSelectionTool.cxx:21
CP::EgammaIsGoodOQSelectionTool::m_accept
asg::AcceptInfo m_accept
Object handling the e/gamma selection decision.
Definition:
EgammaIsGoodOQSelectionTool.h:70
AsgTool.h
asg::AcceptData
Definition:
AcceptData.h:30
CP::EgammaIsGoodOQSelectionTool::getAcceptInfo
virtual const asg::AcceptInfo & getAcceptInfo() const override
Get the results for the last object processed.
Definition:
EgammaIsGoodOQSelectionTool.cxx:14
Generated on Fri Jan 10 2025 21:09:40 for ATLAS Offline Software by
1.8.18