ATLAS Offline Software
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
z
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
GitLab
LXR
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Reconstruction
Jet
JetJvtEfficiency
Root
JvtSelectionToolBase.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
JetJvtEfficiency/JvtSelectionToolBase.h
"
6
#include "
AsgDataHandles/ReadDecorHandle.h
"
7
8
namespace
CP
{
9
StatusCode
JvtSelectionToolBase::initialize
() {
10
m_etaAcc
=
SG::ConstAccessor<float>
(
m_jetEtaName
);
11
m_cutPos
=
m_info
.
addCut
(
"Jvt"
,
"Whether the jet passes the Jvt selection"
);
12
13
return
StatusCode::SUCCESS;
14
}
15
16
const
asg::AcceptInfo
&
JvtSelectionToolBase::getAcceptInfo
()
const
{
return
m_info
; }
17
18
asg::AcceptData
JvtSelectionToolBase::accept
(
const
xAOD::IParticle
*
jet
)
const
{
19
asg::AcceptData
data
(&
m_info
);
20
if
(!
isInRange
(
jet
)) {
21
data
.setCutResult(
m_cutPos
,
true
);
22
return
data
;
23
}
24
data
.setCutResult(
m_cutPos
,
select
(
jet
));
25
return
data
;
26
}
27
28
bool
JvtSelectionToolBase::isInRange
(
const
xAOD::IParticle
*
jet
)
const
{
29
if
(
jet
->pt() <
m_minPtForJvt
||
jet
->pt() >
m_maxPtForJvt
)
30
return
false
;
31
float
eta =
m_etaAcc
(*
jet
);
32
return
std::abs(eta) >=
m_minEta
&& std::abs(eta) <=
m_maxEta
;
33
}
34
}
// namespace CP
data
char data[hepevt_bytes_allocation_ATLAS]
Definition:
HepEvt.cxx:11
CP::JvtSelectionToolBase::select
virtual bool select(const xAOD::IParticle *jet) const =0
CP::JvtSelectionToolBase::m_minPtForJvt
Gaudi::Property< float > m_minPtForJvt
Definition:
JvtSelectionToolBase.h:27
JvtSelectionToolBase.h
CP::JvtSelectionToolBase::m_maxPtForJvt
Gaudi::Property< float > m_maxPtForJvt
Definition:
JvtSelectionToolBase.h:29
CP::JvtSelectionToolBase::m_minEta
Gaudi::Property< float > m_minEta
Definition:
JvtSelectionToolBase.h:31
SG::ConstAccessor< float >
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:49
jet
Definition:
JetCalibTools_PlotJESFactors.cxx:23
asg::AcceptInfo
Definition:
AcceptInfo.h:28
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:18
CP::JvtSelectionToolBase::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition:
JvtSelectionToolBase.cxx:9
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
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:16
CP::JvtSelectionToolBase::m_jetEtaName
Gaudi::Property< std::string > m_jetEtaName
Definition:
JvtSelectionToolBase.h:36
CP::JvtSelectionToolBase::m_info
asg::AcceptInfo m_info
Definition:
JvtSelectionToolBase.h:40
CP::JvtSelectionToolBase::isInRange
virtual bool isInRange(const xAOD::IParticle *jet) const
Definition:
JvtSelectionToolBase.cxx:28
CP::JvtSelectionToolBase::m_cutPos
int m_cutPos
Definition:
JvtSelectionToolBase.h:42
ReadDecorHandle.h
Handle class for reading a decoration on an object.
asg::AcceptData
Definition:
AcceptData.h:30
CP::JvtSelectionToolBase::m_etaAcc
SG::ConstAccessor< float > m_etaAcc
Definition:
JvtSelectionToolBase.h:44
CP::JvtSelectionToolBase::m_maxEta
Gaudi::Property< float > m_maxEta
Definition:
JvtSelectionToolBase.h:33
asg::AcceptInfo::addCut
int addCut(const std::string &cutName, const std::string &cutDescription)
Add a cut; returning the cut position.
Definition:
AcceptInfo.h:53
Generated on Wed Mar 26 2025 21:13:11 for ATLAS Offline Software by
1.8.18