ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
Jet
JetJvtEfficiency
JetJvtEfficiency
JvtSelectionToolBase.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_JVTSELECTIONTOOLBASE_H
6
#define JETJVTEFFICIENCY_JVTSELECTIONTOOLBASE_H
7
8
#include "
AsgDataHandles/ReadDecorHandleKey.h
"
9
#include "
AsgDataHandles/WriteDecorHandleKey.h
"
10
#include "
AsgTools/AsgTool.h
"
11
#include "
AsgTools/PropertyWrapper.h
"
12
#include "
PATCore/IAsgSelectionTool.h
"
13
#include "
xAODJet/JetContainer.h
"
14
#include "
JetInterface/IJetDecorator.h
"
15
16
namespace
CP
{
17
class
JvtSelectionToolBase
:
public
asg::AsgTool
,
virtual
public
IAsgSelectionTool
,
virtual
public
IJetDecorator
{
18
public
:
19
using
asg::AsgTool::AsgTool
;
20
virtual
~JvtSelectionToolBase
() =
default
;
21
22
virtual
StatusCode
initialize
()
override
;
23
24
virtual
const
asg::AcceptInfo
&
getAcceptInfo
()
const override
;
25
26
virtual
asg::AcceptData
accept
(
const
xAOD::IParticle
*
jet
)
const override
;
27
28
virtual
StatusCode
decorate
(
const
xAOD::JetContainer
& jets)
const override
;
29
30
protected
:
31
Gaudi::Property<float>
m_minPtForJvt
{
32
this
,
"MinPtForJvt"
, 20e3,
"Accept all jets with pT below this"
};
33
Gaudi::Property<float>
m_maxPtForJvt
{
34
this
,
"MaxPtForJvt"
, 60e3,
"Accept all jets with pT above this"
};
35
Gaudi::Property<float>
m_minEta
{
36
this
,
"MinEtaForJvt"
, -1,
"Accept all jets with |eta| below this"
};
37
Gaudi::Property<float>
m_maxEta
{
38
this
,
"MaxEtaForJvt"
, 2.5,
"Accept all jets with |eta| above this"
};
39
// NB: Use a string not a read handle key as this is not written with a write handle key
40
Gaudi::Property<std::string>
m_jetEtaName
{
41
this
,
"JetEtaName"
,
"eta"
,
"The name of the jet eta to use."
};
42
43
SG::ReadHandleKey<xAOD::JetContainer>
m_jetContainer
{
44
this
,
"JetContainer"
,
""
,
"The name of the jet container"
};
45
SG::ReadDecorHandleKey<xAOD::JetContainer>
m_jvtMomentKey
{
46
this
,
"JvtMomentName"
,
m_jetContainer
,
""
,
"The name of the Jvt moment to use"
};
47
SG::WriteDecorHandleKey<xAOD::JetContainer>
m_passJvtKey
{
48
this
,
"PassFlagName"
,
m_jetContainer
,
""
,
"SG key for output pass-JVT decoration"
};
49
50
51
// The template AcceptInfo object
52
asg::AcceptInfo
m_info
;
53
// The index to set in the info. I suspect that this is always 0 but better to be safe
54
int
m_cutPos
= 0;
55
// The accessor for the jet eta
56
SG::ConstAccessor<float>
m_etaAcc
{
m_jetEtaName
};
57
// Check the range
58
virtual
bool
isInRange
(
const
xAOD::IParticle
*
jet
)
const
;
59
// Check the score
60
virtual
bool
select
(
const
xAOD::IParticle
*
jet
)
const
= 0;
61
62
};
63
}
// namespace CP
64
65
#endif
//> !JETJVTEFFICIENCY_JVTSELECTIONTOOL_H
AsgTool.h
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
WriteDecorHandleKey.h
IAsgSelectionTool.h
IJetDecorator.h
JetContainer.h
PropertyWrapper.h
CP::JvtSelectionToolBase
Definition
JvtSelectionToolBase.h:17
CP::JvtSelectionToolBase::isInRange
virtual bool isInRange(const xAOD::IParticle *jet) const
Definition
JvtSelectionToolBase.cxx:29
CP::JvtSelectionToolBase::m_etaAcc
SG::ConstAccessor< float > m_etaAcc
Definition
JvtSelectionToolBase.h:56
CP::JvtSelectionToolBase::m_maxEta
Gaudi::Property< float > m_maxEta
Definition
JvtSelectionToolBase.h:37
CP::JvtSelectionToolBase::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition
JvtSelectionToolBase.cxx:10
CP::JvtSelectionToolBase::decorate
virtual StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
Definition
JvtSelectionToolBase.cxx:36
CP::JvtSelectionToolBase::m_jvtMomentKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_jvtMomentKey
Definition
JvtSelectionToolBase.h:45
CP::JvtSelectionToolBase::m_info
asg::AcceptInfo m_info
Definition
JvtSelectionToolBase.h:52
CP::JvtSelectionToolBase::m_passJvtKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_passJvtKey
Definition
JvtSelectionToolBase.h:47
CP::JvtSelectionToolBase::accept
virtual asg::AcceptData accept(const xAOD::IParticle *jet) const override
The main accept method: the actual cuts are applied here.
Definition
JvtSelectionToolBase.cxx:23
CP::JvtSelectionToolBase::m_jetContainer
SG::ReadHandleKey< xAOD::JetContainer > m_jetContainer
Definition
JvtSelectionToolBase.h:43
CP::JvtSelectionToolBase::m_cutPos
int m_cutPos
Definition
JvtSelectionToolBase.h:54
CP::JvtSelectionToolBase::m_minPtForJvt
Gaudi::Property< float > m_minPtForJvt
Definition
JvtSelectionToolBase.h:31
CP::JvtSelectionToolBase::m_minEta
Gaudi::Property< float > m_minEta
Definition
JvtSelectionToolBase.h:35
CP::JvtSelectionToolBase::select
virtual bool select(const xAOD::IParticle *jet) const =0
CP::JvtSelectionToolBase::getAcceptInfo
virtual const asg::AcceptInfo & getAcceptInfo() const override
Declare the interface ID for this pure-virtual interface class to the Athena framework.
Definition
JvtSelectionToolBase.cxx:21
CP::JvtSelectionToolBase::m_maxPtForJvt
Gaudi::Property< float > m_maxPtForJvt
Definition
JvtSelectionToolBase.h:33
CP::JvtSelectionToolBase::~JvtSelectionToolBase
virtual ~JvtSelectionToolBase()=default
CP::JvtSelectionToolBase::m_jetEtaName
Gaudi::Property< std::string > m_jetEtaName
Definition
JvtSelectionToolBase.h:40
IAsgSelectionTool
Definition
IAsgSelectionTool.h:28
IJetDecorator
Interface for adding a decoration to a jet container.
Definition
IJetDecorator.h:21
SG::ConstAccessor
Helper class to provide constant type-safe access to aux data.
Definition
ConstAccessor.h:55
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition
StoreGate/StoreGate/ReadDecorHandleKey.h:86
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
asg::AcceptData
Definition
AcceptData.h:31
asg::AcceptInfo
Definition
AcceptInfo.h:28
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
jet
Definition
JetCalibTools_PlotJESFactors.cxx:23
xAOD::JetContainer
JetContainer_v1 JetContainer
Definition of the current "jet container version".
Definition
JetContainer.h:17
Generated on
for ATLAS Offline Software by
1.17.0