Loading [MathJax]/extensions/tex2jax.js
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
PhysicsAnalysis
DerivationFramework
DerivationFrameworkBPhys
src
AnyVertexSkimmingTool.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
DerivationFrameworkBPhys/AnyVertexSkimmingTool.h
"
6
#include "
xAODTracking/VertexContainer.h
"
7
#include "Gaudi/Property.h"
8
namespace
DerivationFramework
{
9
10
11
AnyVertexSkimmingTool::AnyVertexSkimmingTool
(
const
std::string&
t
,
const
std::string&
n
,
const
IInterface*
p
) : base_class(
t
,
n
,
p
)
12
{}
13
14
AnyVertexSkimmingTool::~AnyVertexSkimmingTool
() =
default
;
15
16
StatusCode
AnyVertexSkimmingTool::initialize
(){
17
if
(
m_useHandles
)
for
(
const
auto
&
str
:
m_containerNames
)
m_keyArray
.emplace_back(
str
);
18
ATH_CHECK
(
m_keyArray
.initialize(
m_useHandles
));
19
return
StatusCode::SUCCESS;
20
}
21
22
bool
AnyVertexSkimmingTool::eventPassesFilter
()
const
{
23
24
if
(
m_useHandles
){
25
bool
pass =
false
;
26
for
(
auto
key
:
m_keyArray
){
27
ATH_MSG_DEBUG
(
"Key Checking: "
<<
key
.key());
28
SG::ReadHandle<xAOD::VertexContainer>
read
(
key
);
29
if
(!
read
.isValid()){
30
std::string
error
(
"AnyVertexSkimmingTool - Failed to retrieve : "
);
31
error
+=
key
.key();
32
throw
std::runtime_error(
error
);
33
}
34
if
(not
read
->empty()) pass |=
true
;
35
}
36
return
pass;
37
}
else
{
38
bool
pass =
false
;
39
for
(
const
std::string&
name
:
m_containerNames
){
40
ATH_MSG_DEBUG
(
"Checking: "
<<
name
);
41
const
xAOD::VertexContainer
* container =
nullptr
;
42
if
(evtStore()->
retrieve
(container,
name
).isFailure()){
43
std::string
error
(
"AnyVertexSkimmingTool - Failed to retrieve : "
);
44
error
+=
name
;
45
throw
std::runtime_error(
error
);
46
}
47
if
(not container->
empty
()) pass |=
true
;
48
//Not breaking from loop early to ensure all containers are written - avoids production bugs
49
}
50
return
pass;
51
}
52
}
53
54
}
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition:
PyKernel.py:110
read
IovVectorMap_t read(const Folder &theFolder, const SelectionCriterion &choice, const unsigned int limit=10)
Definition:
openCoraCool.cxx:569
SG::ReadHandle
Definition:
StoreGate/StoreGate/ReadHandle.h:67
DerivationFramework::AnyVertexSkimmingTool::initialize
StatusCode initialize() override
Definition:
AnyVertexSkimmingTool.cxx:16
DerivationFramework::AnyVertexSkimmingTool::m_useHandles
Gaudi::Property< bool > m_useHandles
Definition:
AnyVertexSkimmingTool.h:24
AnyVertexSkimmingTool.h
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
python.utils.AtlRunQueryDQUtils.p
p
Definition:
AtlRunQueryDQUtils.py:210
beamspotman.n
n
Definition:
beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition:
AthMsgStreamMacros.h:29
ATH_CHECK
#define ATH_CHECK
Definition:
AthCheckMacros.h:40
DerivationFramework
THE reconstruction tool.
Definition:
ParticleSortingAlg.h:24
DataVector
Derived DataVector<T>.
Definition:
DataVector.h:794
DerivationFramework::AnyVertexSkimmingTool::eventPassesFilter
virtual bool eventPassesFilter() const override
Definition:
AnyVertexSkimmingTool.cxx:22
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:240
DerivationFramework::AnyVertexSkimmingTool::m_containerNames
Gaudi::Property< std::vector< std::string > > m_containerNames
Definition:
AnyVertexSkimmingTool.h:22
VertexContainer.h
DerivationFramework::AnyVertexSkimmingTool::m_keyArray
SG::ReadHandleKeyArray< xAOD::VertexContainer > m_keyArray
Definition:
AnyVertexSkimmingTool.h:23
DerivationFramework::AnyVertexSkimmingTool::AnyVertexSkimmingTool
AnyVertexSkimmingTool(const std::string &, const std::string &, const IInterface *)
Definition:
AnyVertexSkimmingTool.cxx:11
str
Definition:
BTagTrackIpAccessor.cxx:11
get_generator_info.error
error
Definition:
get_generator_info.py:40
DerivationFramework::AnyVertexSkimmingTool::~AnyVertexSkimmingTool
~AnyVertexSkimmingTool()
error
Definition:
IImpactPoint3dEstimator.h:70
DataVector::empty
bool empty() const noexcept
Returns true if the collection is empty.
mapkey::key
key
Definition:
TElectronEfficiencyCorrectionTool.cxx:37
Generated on Wed Apr 23 2025 21:07:12 for ATLAS Offline Software by
1.8.18