ATLAS Offline Software
Loading...
Searching...
No Matches
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
AnaToolHandle.h
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition
AsgToolMacros.h:68
AsgTool.h
EgammaDefs.h
Egamma.h
IAsgDeadHVCellRemovalTool.h
IAsgSelectionTool.h
PropertyWrapper.h
CP::EgammaIsGoodOQSelectionTool
Tool selecting e/gamma objects based on their object quality flags.
Definition
EgammaIsGoodOQSelectionTool.h:31
CP::EgammaIsGoodOQSelectionTool::m_accept
asg::AcceptInfo m_accept
Object handling the e/gamma selection decision.
Definition
EgammaIsGoodOQSelectionTool.h:70
CP::EgammaIsGoodOQSelectionTool::getAcceptInfo
virtual const asg::AcceptInfo & getAcceptInfo() const override
Get the results for the last object processed.
Definition
EgammaIsGoodOQSelectionTool.cxx:14
CP::EgammaIsGoodOQSelectionTool::m_oqCutIndex
int m_oqCutIndex
Index of the object quality cut.
Definition
EgammaIsGoodOQSelectionTool.h:72
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
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_mask
Gaudi::Property< int > m_mask
The mask to require good object quality with.
Definition
EgammaIsGoodOQSelectionTool.h:65
CP::EgammaIsGoodOQSelectionTool::m_deadHVCutIndex
int m_deadHVCutIndex
Index of this quality cut.
Definition
EgammaIsGoodOQSelectionTool.h:80
CP::EgammaIsGoodOQSelectionTool::initialize
virtual StatusCode initialize() override
Function initialising the tool.
Definition
EgammaIsGoodOQSelectionTool.cxx:45
IAsgSelectionTool
Definition
IAsgSelectionTool.h:28
asg::AcceptData
Definition
AcceptData.h:30
asg::AcceptInfo
Definition
AcceptInfo.h:28
asg::AnaToolHandle
a modified tool handle that allows its owner to configure new tools from the C++ side
Definition
AnaToolHandle.h:167
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
asg::AsgTool::AsgTool
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition
AsgTool.cxx:58
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition
Event/xAOD/xAODBase/xAODBase/IParticle.h:41
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
xAOD::EgammaParameters::ALLOQ
const uint32_t ALLOQ
Definition
EgammaDefs.h:133
Generated on
for ATLAS Offline Software by
1.14.0