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
TriggerCountToMetadata.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
//============================================================================
5
//
6
// Author : Matteo Bedognetti <matteo.bedognetti@cern.ch.>
7
// Changes:
8
//
9
// Store trigger counts for specific chains in the DAOD's MetaData.
10
// This allows it to store information about triggers upon which events are NOT selected during the derivation
11
//
12
// Job options:
13
// - TriggerList -- a vector containing all triggers to store as strings
14
// - FolderName -- Is supposed to be the derivation name (some convention I guess)
15
// - TrigDecisionTool -- if one wants to pass this a specific TrigDecisionTool
16
//
17
//============================================================================
18
//
19
20
#include "
DerivationFrameworkBPhys/TriggerCountToMetadata.h
"
21
#include "
AthenaPoolUtilities/CondAttrListCollection.h
"
22
23
#include <memory>
24
25
namespace
DerivationFramework
{
26
27
//--------------------------------------------------------------------------
28
TriggerCountToMetadata::TriggerCountToMetadata
(
const
std::string&
t
,
29
const
std::string&
n
,
30
const
IInterface*
p
)
31
:
CfAthAlgTool
(
t
,
n
,
p
), m_trigDecisionTool(
"Trig::TrigDecisionTool/TrigDecisionTool"
)
32
{
33
declareInterface<DerivationFramework::IAugmentationTool>(
this
);
34
35
declareProperty
(
"TrigDecisionTool"
,
m_trigDecisionTool
);
36
declareProperty
(
"FolderName"
,
m_folderName
=
"DerivationLevel"
);
37
declareProperty
(
"TriggerList"
,
m_triggerList
);
38
39
}
40
//--------------------------------------------------------------------------
41
StatusCode
TriggerCountToMetadata::initialize
() {
42
ATH_CHECK
(
m_trigDecisionTool
.retrieve());
43
44
return
StatusCode::SUCCESS;
45
}
46
47
//--------------------------------------------------------------------------
48
StatusCode
TriggerCountToMetadata::addBranches
()
const
{
49
50
ATH_MSG_DEBUG
(
"Inside TriggerCountToMetadata::addBranches()"
);
51
52
// W.w. method
53
addEvent
(
"AllEvents"
);
54
55
for
(
unsigned
int
i
=0;
i
<
m_triggerList
.size();
i
++){
56
addEvent
(
m_triggerList
[
i
] ,
m_trigDecisionTool
->isPassed(
m_triggerList
[
i
]) );
57
}
58
59
return
StatusCode::SUCCESS;
60
}
61
62
}
// End of namespace DerivationFramework
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition:
AthCommonDataStore.h:145
DerivationFramework::CfAthAlgTool::addEvent
virtual bool addEvent(const std::string &name, double weight=1.) const
Definition:
CfAthAlgTool.cxx:104
DerivationFramework::TriggerCountToMetadata::initialize
virtual StatusCode initialize() override
Definition:
TriggerCountToMetadata.cxx:41
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
DerivationFramework::TriggerCountToMetadata::addBranches
virtual StatusCode addBranches() const override
Pass the thinning service
Definition:
TriggerCountToMetadata.cxx:48
python.utils.AtlRunQueryDQUtils.p
p
Definition:
AtlRunQueryDQUtils.py:210
lumiFormat.i
int i
Definition:
lumiFormat.py:85
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
TriggerCountToMetadata.h
ATH_CHECK
#define ATH_CHECK
Definition:
AthCheckMacros.h:40
DerivationFramework
THE reconstruction tool.
Definition:
ParticleSortingAlg.h:24
DerivationFramework::TriggerCountToMetadata::m_trigDecisionTool
ToolHandle< Trig::TrigDecisionTool > m_trigDecisionTool
Definition:
TriggerCountToMetadata.h:45
DerivationFramework::TriggerCountToMetadata::m_folderName
std::string m_folderName
Definition:
TriggerCountToMetadata.h:46
DerivationFramework::TriggerCountToMetadata::TriggerCountToMetadata
TriggerCountToMetadata(const std::string &t, const std::string &n, const IInterface *p)
Definition:
TriggerCountToMetadata.cxx:28
DerivationFramework::TriggerCountToMetadata::m_triggerList
std::vector< std::string > m_triggerList
Definition:
TriggerCountToMetadata.h:44
DerivationFramework::CfAthAlgTool
Definition:
CfAthAlgTool.h:35
Generated on Tue Mar 25 2025 21:21:33 for ATLAS Offline Software by
1.8.18