ATLAS Offline Software
Reconstruction
Jet
JetJvtEfficiency
JetJvtEfficiency
JvtSelectionTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef JETJVTEFFICIENCY_JVTSELECTIONTOOL_H
6
#define JETJVTEFFICIENCY_JVTSELECTIONTOOL_H
7
8
#include "
AsgTools/PropertyWrapper.h
"
9
#include "
JetJvtEfficiency/JvtSelectionToolBase.h
"
10
11
12
namespace
CP
{
13
class
JvtSelectionTool
:
public
JvtSelectionToolBase
{
14
ASG_TOOL_CLASS
(
JvtSelectionTool
,
IAsgSelectionTool
)
15
public
:
16
using
JvtSelectionToolBase::JvtSelectionToolBase;
17
virtual
~JvtSelectionTool
()
override
=
default
;
18
19
virtual
StatusCode
initialize
()
override
;
20
21
private
:
22
// Used to correctly initialize the ReadDecorHandle
23
Gaudi::Property<std::string>
m_jetContainer
{
24
this
,
"JetContainer"
,
""
,
25
"The name of the jet container, used to correctly initialize the read handles"
};
26
Gaudi::Property<bool>
m_isPFlow
{
27
this
,
"IsPFlow"
,
true
,
28
"Whether the jet collection is PFlow or not. Used to configure the correct working "
29
"points"
};
30
Gaudi::Property<std::string>
m_wp
{
31
this
,
"WorkingPoint"
,
"Default"
,
32
"The working point to use. Set to 'Custom' to manually set the values"
};
33
Gaudi::Property<float>
m_jvtCutBorder
{
34
this
,
"JvtCutBorder"
, -1,
35
"The JVT selection to make in the border region (2.4-2.5)"
};
36
Gaudi::Property<float>
m_jvtCut
{
this
,
"JvtCut"
, -1,
"The JVT selection to make"
};
37
SG::ReadDecorHandleKey<xAOD::JetContainer>
m_jvtMoment
{
38
this
,
"JvtMomentName"
,
"Jvt"
,
"The name of the Jvt moment to use"
};
39
40
virtual
bool
select
(
const
xAOD::IParticle
*
jet
)
const override
;
41
42
// TODO: TEMPORARY
43
// Backup accessors to allow using these tools in the JetJvtEfficiency object which does not
44
// know its parent jet container name
45
SG::ConstAccessor<float>
m_jvtAcc
{
m_jvtMoment
.key() };
46
};
47
}
// namespace CP
48
49
#endif //> !JETJVTEFFICIENCY_JVTSELECTIONTOOL_H
CP::JvtSelectionTool::~JvtSelectionTool
virtual ~JvtSelectionTool() override=default
PropertyWrapper.h
CP::JvtSelectionTool::select
virtual bool select(const xAOD::IParticle *jet) const override
Definition:
JvtSelectionTool.cxx:46
CP::JvtSelectionTool::m_jvtAcc
SG::ConstAccessor< float > m_jvtAcc
Definition:
JvtSelectionTool.h:45
CP::JvtSelectionTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition:
JvtSelectionTool.cxx:16
CP::JvtSelectionTool::m_wp
Gaudi::Property< std::string > m_wp
Definition:
JvtSelectionTool.h:30
CP::JvtSelectionTool::m_jetContainer
Gaudi::Property< std::string > m_jetContainer
Definition:
JvtSelectionTool.h:23
JvtSelectionToolBase.h
CP::JvtSelectionTool::m_jvtCut
Gaudi::Property< float > m_jvtCut
Definition:
JvtSelectionTool.h:36
CP::JvtSelectionTool::m_jvtMoment
SG::ReadDecorHandleKey< xAOD::JetContainer > m_jvtMoment
Definition:
JvtSelectionTool.h:37
SG::ConstAccessor< float >
IAsgSelectionTool
Definition:
IAsgSelectionTool.h:28
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:48
CP::JvtSelectionToolBase
Definition:
JvtSelectionToolBase.h:15
jet
Definition:
JetCalibTools_PlotJESFactors.cxx:23
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CP::JvtSelectionTool::m_jvtCutBorder
Gaudi::Property< float > m_jvtCutBorder
Definition:
JvtSelectionTool.h:33
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition:
AsgToolMacros.h:68
CP::JvtSelectionTool
Definition:
JvtSelectionTool.h:13
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition:
StoreGate/StoreGate/ReadDecorHandleKey.h:85
CP::JvtSelectionTool::m_isPFlow
Gaudi::Property< bool > m_isPFlow
Definition:
JvtSelectionTool.h:26
Generated on Thu Nov 7 2024 21:18:40 for ATLAS Offline Software by
1.8.18