Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
atlas
athena
Commits
128cc46c
Commit
128cc46c
authored
2 years ago
by
Victor Hugo Ruelas Rivera
Browse files
Options
Downloads
Patches
Plain Diff
Substitute period with p for run2 trigger decos
parent
ecbbdaa6
Loading
Loading
1 merge request
!58555
Substitute period with p for run2 trigger decos
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PhysicsAnalysis/Algorithms/TriggerAnalysisAlgorithms/Root/TrigEventSelectorAlg.cxx
+20
-14
20 additions, 14 deletions
...s/TriggerAnalysisAlgorithms/Root/TrigEventSelectorAlg.cxx
with
20 additions
and
14 deletions
PhysicsAnalysis/Algorithms/TriggerAnalysisAlgorithms/Root/TrigEventSelectorAlg.cxx
+
20
−
14
View file @
128cc46c
...
...
@@ -10,9 +10,9 @@
#include
<xAODEventInfo/EventInfo.h>
CP
::
TrigEventSelectionAlg
::
TrigEventSelectionAlg
(
const
std
::
string
&
name
,
ISvcLocator
*
svcLoc
)
:
EL
::
AnaAlgorithm
(
name
,
svcLoc
),
m_trigDecisionTool
(
"Trig::TrigDecisionTool/TrigDecisionTool"
)
ISvcLocator
*
svcLoc
)
:
EL
::
AnaAlgorithm
(
name
,
svcLoc
),
m_trigDecisionTool
(
"Trig::TrigDecisionTool/TrigDecisionTool"
)
{
declareProperty
(
"tool"
,
m_trigDecisionTool
,
"trigger decision tool"
);
declareProperty
(
"triggers"
,
m_trigList
,
"trigger selection list"
);
...
...
@@ -21,29 +21,33 @@ CP::TrigEventSelectionAlg::TrigEventSelectionAlg(const std::string &name,
StatusCode
CP
::
TrigEventSelectionAlg
::
initialize
()
{
if
(
m_trigList
.
empty
())
{
if
(
m_trigList
.
empty
())
{
ATH_MSG_ERROR
(
"A list of triggers needs to be provided"
);
return
StatusCode
::
FAILURE
;
}
ANA_CHECK
(
m_trigDecisionTool
.
retrieve
());
if
(
!
m_selectionDecoration
.
empty
())
{
for
(
const
std
::
string
&
chain
:
m_trigList
)
{
m_selectionAccessors
.
emplace_back
(
m_selectionDecoration
+
"_"
+
RCU
::
substitute
(
chain
,
"-"
,
"_"
));
if
(
!
m_selectionDecoration
.
empty
())
{
for
(
const
std
::
string
&
chain
:
m_trigList
)
{
m_selectionAccessors
.
emplace_back
(
m_selectionDecoration
+
"_"
+
RCU
::
substitute
(
RCU
::
substitute
(
chain
,
"."
,
"p"
),
"-"
,
"_"
));
}
}
ANA_CHECK
(
m_filterParams
.
initialize
());
ANA_CHECK
(
m_filterParams
.
initialize
());
return
StatusCode
::
SUCCESS
;
}
StatusCode
CP
::
TrigEventSelectionAlg
::
execute
()
{
FilterReporter
filter
(
m_filterParams
,
m_noFilter
.
value
());
FilterReporter
filter
(
m_filterParams
,
m_noFilter
.
value
());
if
(
m_trigList
.
empty
())
{
if
(
m_trigList
.
empty
())
{
filter
.
setPassed
(
true
);
return
StatusCode
::
SUCCESS
;
}
...
...
@@ -51,13 +55,15 @@ StatusCode CP::TrigEventSelectionAlg::execute()
const
xAOD
::
EventInfo
*
evtInfo
=
0
;
ANA_CHECK
(
evtStore
()
->
retrieve
(
evtInfo
,
"EventInfo"
));
for
(
size_t
i
=
0
;
i
<
m_trigList
.
size
();
i
++
)
{
for
(
size_t
i
=
0
;
i
<
m_trigList
.
size
();
i
++
)
{
bool
trigPassed
=
m_trigDecisionTool
->
isPassed
(
m_trigList
[
i
]);
if
(
!
m_selectionDecoration
.
empty
())
{
if
(
!
m_selectionDecoration
.
empty
())
{
m_selectionAccessors
[
i
](
*
evtInfo
)
=
trigPassed
;
}
if
(
trigPassed
)
filter
.
setPassed
(
true
);
filter
.
setPassed
(
true
);
}
return
StatusCode
::
SUCCESS
;
...
...
@@ -65,7 +71,7 @@ StatusCode CP::TrigEventSelectionAlg::execute()
StatusCode
CP
::
TrigEventSelectionAlg
::
finalize
()
{
ANA_MSG_INFO
(
m_filterParams
.
summary
());
ANA_MSG_INFO
(
m_filterParams
.
summary
());
return
StatusCode
::
SUCCESS
;
}
This diff is collapsed.
Click to expand it.
Frank Winklmeier
@fwinkl
mentioned in commit
39038015
·
2 years ago
mentioned in commit
39038015
mentioned in commit 39038015b915e39b475c072572cd1ebd37c4f6fa
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment