ATLAS Offline Software
Reconstruction
Jet
JetJvtEfficiency
JetJvtEfficiency
FJvtSelectionTool.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_FJVTSELECTIONTOOL_H
6
#define JETJVTEFFICIENCY_FJVTSELECTIONTOOL_H
7
8
#include "
AsgTools/PropertyWrapper.h
"
9
#include "
JetJvtEfficiency/JvtSelectionToolBase.h
"
10
11
namespace
CP
{
12
class
FJvtSelectionTool
:
public
JvtSelectionToolBase
{
13
ASG_TOOL_CLASS
(
FJvtSelectionTool
,
IAsgSelectionTool
)
14
public
:
15
FJvtSelectionTool
(
const
std::string &
name
);
16
virtual
~FJvtSelectionTool
()
override
=
default
;
17
18
virtual
StatusCode
initialize
()
override
;
19
20
private
:
21
// Used to correctly initialize the ReadDecorHandle
22
Gaudi::Property<std::string>
m_jetContainer
{
23
this
,
"JetContainer"
,
""
,
24
"The name of the jet container, used to correctly initialize the read handles"
};
25
Gaudi::Property<std::string>
m_wp
{
26
this
,
"WorkingPoint"
,
"Loose"
,
27
"The working point to use. Set to 'Custom' to manually set the values"
};
28
Gaudi::Property<float>
m_jvtCut
{
this
,
"JvtCut"
, 999,
"The JVT selection to make"
};
29
SG::ReadDecorHandleKey<xAOD::JetContainer>
m_jvtMoment
{
30
this
,
"JvtMomentName"
,
"DFCommonJets_fJvt"
,
"The name of the Jvt moment to use"
};
31
SG::ReadDecorHandleKey<xAOD::JetContainer>
m_timingMoment
{
32
this
,
"TimingMomentName"
,
"Timing"
,
"The name of the timing moment to use"
};
33
Gaudi::Property<float>
m_timingCut
{
34
this
,
"TimingCut"
, -1,
"Only accept jets with time less than this; negative values deactivate timing requirement"
};
35
36
virtual
bool
select
(
const
xAOD::IParticle
*
jet
)
const override
;
37
38
// TODO: TEMPORARY
39
// Backup accessors to allow using these tools in the JetJvtEfficiency object which does not
40
// know its parent jet container name
41
SG::ConstAccessor<float>
m_jvtAcc
{
m_jvtMoment
.key() };
42
SG::ConstAccessor<float>
m_timingAcc
{
m_timingMoment
.key() };
43
};
44
}
// namespace CP
45
46
#endif //> !JETJVTEFFICIENCY_JVTSELECTIONTOOL_H
PropertyWrapper.h
CP::FJvtSelectionTool::m_timingMoment
SG::ReadDecorHandleKey< xAOD::JetContainer > m_timingMoment
Definition:
FJvtSelectionTool.h:31
JvtSelectionToolBase.h
CP::FJvtSelectionTool::~FJvtSelectionTool
virtual ~FJvtSelectionTool() override=default
CP::FJvtSelectionTool
Definition:
FJvtSelectionTool.h:12
CP::FJvtSelectionTool::m_jvtMoment
SG::ReadDecorHandleKey< xAOD::JetContainer > m_jvtMoment
Definition:
FJvtSelectionTool.h:29
CP::FJvtSelectionTool::select
virtual bool select(const xAOD::IParticle *jet) const override
Definition:
FJvtSelectionTool.cxx:45
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::FJvtSelectionTool::m_timingAcc
SG::ConstAccessor< float > m_timingAcc
Definition:
FJvtSelectionTool.h:42
CP::FJvtSelectionTool::m_jetContainer
Gaudi::Property< std::string > m_jetContainer
Definition:
FJvtSelectionTool.h:22
CP::FJvtSelectionTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition:
FJvtSelectionTool.cxx:15
CP::JvtSelectionToolBase
Definition:
JvtSelectionToolBase.h:15
jet
Definition:
JetCalibTools_PlotJESFactors.cxx:23
CP::FJvtSelectionTool::m_jvtCut
Gaudi::Property< float > m_jvtCut
Definition:
FJvtSelectionTool.h:28
CP::FJvtSelectionTool::m_jvtAcc
SG::ConstAccessor< float > m_jvtAcc
Definition:
FJvtSelectionTool.h:41
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CP::FJvtSelectionTool::FJvtSelectionTool
FJvtSelectionTool(const std::string &name)
Definition:
FJvtSelectionTool.cxx:10
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition:
AsgToolMacros.h:68
CP::FJvtSelectionTool::m_wp
Gaudi::Property< std::string > m_wp
Definition:
FJvtSelectionTool.h:25
CP::FJvtSelectionTool::m_timingCut
Gaudi::Property< float > m_timingCut
Definition:
FJvtSelectionTool.h:33
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition:
StoreGate/StoreGate/ReadDecorHandleKey.h:85
Generated on Thu Nov 7 2024 21:15:20 for ATLAS Offline Software by
1.8.18