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
4a963c67
Commit
4a963c67
authored
4 years ago
by
Frank Winklmeier
Browse files
Options
Downloads
Patches
Plain Diff
TrigOnlineMonitor: Migrate TrigOpMonitor to IOptionsSvc
parent
01cd7237
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
HLT/Trigger/TrigMonitoring/TrigOnlineMonitor/src/TrigOpMonitor.cxx
+5
-6
5 additions, 6 deletions
...er/TrigMonitoring/TrigOnlineMonitor/src/TrigOpMonitor.cxx
with
5 additions
and
6 deletions
HLT/Trigger/TrigMonitoring/TrigOnlineMonitor/src/TrigOpMonitor.cxx
+
5
−
6
View file @
4a963c67
...
...
@@ -12,7 +12,7 @@
#include
"StoreGate/ReadCondHandle.h"
#include
"GaudiKernel/DirSearchPath.h"
#include
"GaudiKernel/IIncidentSvc.h"
#include
"Gaudi
Kernel/IJob
OptionsSvc.h"
#include
"Gaudi
/Interfaces/I
OptionsSvc.h"
#include
"eformat/DetectorMask.h"
#include
"eformat/SourceIdentifier.h"
...
...
@@ -351,22 +351,21 @@ void TrigOpMonitor::fillSubDetHist()
{
// Retrieve the enabled ROBs/SubDets list from DataFlowConfig which is a special object
// used online to hold DF properties passed from TDAQ to HLT as run parameters
SmartIF
<
IJobOptionsSvc
>
jobOptionsSvc
=
service
<
IJob
OptionsSvc
>
(
"JobOptionsSvc"
,
/*createIf=*/
false
);
auto
jobOptionsSvc
=
service
<
Gaudi
::
Interfaces
::
I
OptionsSvc
>
(
"JobOptionsSvc"
,
/*createIf=*/
false
);
if
(
!
jobOptionsSvc
.
isValid
())
{
ATH_MSG_WARNING
(
"Could not retrieve JobOptionsSvc, will not fill SubDetectors histogram"
);
return
;
}
const
Gaudi
::
Details
::
PropertyBase
*
prop
=
jobOptionsSvc
->
getClientProperty
(
"DataFlowConfig"
,
"DF_Enabled_ROB_IDs"
);
Gaudi
::
Property
<
std
::
vector
<
uint32_t
>>
enabledROBsProp
(
"EnabledROBs"
,{});
std
::
set
<
uint32_t
>
enabledROBs
;
if
(
prop
&&
enabledROBsProp
.
assign
(
*
prop
))
{
if
(
enabledROBsProp
.
fromString
(
jobOptionsSvc
->
get
(
"DataFlowConfig.DF_Enabled_ROB_IDs"
,
"[]"
)).
isSuccess
(
))
{
enabledROBs
.
insert
(
enabledROBsProp
.
value
().
begin
(),
enabledROBsProp
.
value
().
end
());
ATH_MSG_DEBUG
(
"Retrieved a list of "
<<
enabledROBs
.
size
()
<<
" ROBs from DataFlowConfig.DF_Enabled_ROB_IDs"
);
}
else
{
ATH_MSG_DEBUG
(
"Could not retrieve DataFlowConfig.DF_Enabled_ROB_IDs from JobOptionsSvc. This is fine if running "
<<
"offline, but should not happen online"
);
ATH_MSG_ERROR
(
"Could not parse DataFlowConfig.DF_Enabled_ROB_IDs from JobOptionsSvc"
);
}
// Retrieve detector mask from detector store
...
...
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