Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue 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
Peter Sherwood
athena
Commits
bb69c529
Commit
bb69c529
authored
4 years ago
by
Frank Winklmeier
Browse files
Options
Downloads
Patches
Plain Diff
TrigServices: Migrate HltROBDataProviderSvc to IOptionsSvc
parent
4a963c67
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
HLT/Trigger/TrigControl/TrigServices/src/HltROBDataProviderSvc.cxx
+10
-22
10 additions, 22 deletions
...er/TrigControl/TrigServices/src/HltROBDataProviderSvc.cxx
with
10 additions
and
22 deletions
HLT/Trigger/TrigControl/TrigServices/src/HltROBDataProviderSvc.cxx
+
10
−
22
View file @
bb69c529
/*
Copyright (C) 2002-20
19
CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-20
20
CERN for the benefit of the ATLAS collaboration
*/
#include
"HltROBDataProviderSvc.h"
#include
"TrigKernel/HltExceptions.h"
// Gaudi
#include
"Gaudi
Kernel/IJob
OptionsSvc.h"
#include
"Gaudi
/Interfaces/I
OptionsSvc.h"
// hltinterface / data collector
#include
"hltinterface/DataCollector.h"
...
...
@@ -105,29 +105,17 @@ StatusCode HltROBDataProviderSvc::initialize()
bool
robOKSconfigFound
=
false
;
if
(
m_readROBfromOKS
.
value
()
)
{
ServiceHandle
<
IJob
OptionsSvc
>
p_
jobOptionsSvc
(
"JobOptionsSvc"
,
name
());
if
((
p_
jobOptionsSvc
.
retrieve
()).
isFailure
())
{
ServiceHandle
<
Gaudi
::
Interfaces
::
I
OptionsSvc
>
jobOptionsSvc
(
"JobOptionsSvc"
,
name
());
if
((
jobOptionsSvc
.
retrieve
()).
isFailure
())
{
ATH_MSG_ERROR
(
"Could not find JobOptionsSvc"
);
}
else
{
const
std
::
vector
<
const
Gaudi
::
Details
::
PropertyBase
*>*
dataFlowProps
=
p_jobOptionsSvc
->
getProperties
(
"DataFlowConfig"
);
if
(
!
dataFlowProps
)
ATH_MSG_ERROR
(
"Could not find DataFlowConfig properties"
);
else
{
for
(
const
Gaudi
::
Details
::
PropertyBase
*
cur
:
*
dataFlowProps
)
{
// the enabled ROB list is found
if
(
cur
->
name
()
==
"DF_Enabled_ROB_IDs"
)
{
if
(
m_enabledROBs
.
assign
(
*
cur
))
{
robOKSconfigFound
=
true
;
ATH_MSG_INFO
(
" ---> Read from OKS = "
<<
MSG
::
dec
<<
m_enabledROBs
.
value
().
size
()
<<
" enabled ROB IDs."
);
}
else
{
ATH_MSG_WARNING
(
" Could not set Property 'enabledROBs' from OKS."
);
}
}
}
if
(
m_enabledROBs
.
fromString
(
jobOptionsSvc
->
get
(
"DataFlowConfig.DF_Enabled_ROB_IDs"
,
"[]"
)).
isSuccess
())
{
robOKSconfigFound
=
true
;
ATH_MSG_INFO
(
" ---> Read from OKS = "
<<
MSG
::
dec
<<
m_enabledROBs
.
value
().
size
()
<<
" enabled ROB IDs."
);
}
else
{
ATH_MSG_WARNING
(
"Could not set Property 'enabledROBs' from OKS."
);
}
p_jobOptionsSvc
.
release
().
ignore
();
}
}
...
...
This diff is collapsed.
Click to expand it.
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