Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LHCb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
LHCb
LHCb
Commits
61b0ffcd
Commit
61b0ffcd
authored
2 years ago
by
Daniel Charles Craik
Committed by
Rosen Matev
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Initial attempt at decoding lumi schemas defined in JSON
parent
41335c09
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!3518
Extend HltLumiSummary decoding to Run 3 format
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Event/LumiEvent/CMakeLists.txt
+1
-0
1 addition, 0 deletions
Event/LumiEvent/CMakeLists.txt
Event/LumiEvent/src/HltLumiSummaryDecoder.cpp
+7
-3
7 additions, 3 deletions
Event/LumiEvent/src/HltLumiSummaryDecoder.cpp
with
8 additions
and
3 deletions
Event/LumiEvent/CMakeLists.txt
+
1
−
0
View file @
61b0ffcd
...
...
@@ -25,6 +25,7 @@ gaudi_add_module(LumiEvent
LHCb::LHCbAlgsLib
LHCb::DAQEventLib
LHCb::LumiEventLib
LHCb::HltInterfaces
)
gaudi_add_dictionary
(
LumiEventDict
...
...
This diff is collapsed.
Click to expand it.
Event/LumiEvent/src/HltLumiSummaryDecoder.cpp
+
7
−
3
View file @
61b0ffcd
...
...
@@ -14,6 +14,7 @@
#include
"Event/LumiSummaryOffsets_V2.h"
#include
"Event/RawBank.h"
#include
"Event/RawEvent.h"
#include
"Kernel/IIndexedLumiSchemaSvc.h"
#include
"LHCbAlgs/Transformer.h"
...
...
@@ -106,9 +107,10 @@ namespace LHCb {
auto
encodingKey
=
getField
(
LHCb
::
LumiSummaryOffsets
::
V2
::
encodingKeyOffset
,
LHCb
::
LumiSummaryOffsets
::
V2
::
encodingKeySize
,
ibank
->
data
()
);
if
(
encodingKey
!=
0
)
{
// TODO add new decoding here
warning
()
<<
"TCK-based lumiSummary bank decoding not yet implemented."
<<
"Unable to decode bank"
<<
endmsg
;
auto
lumi_schema
=
m_svc
->
lumiCounters
(
encodingKey
,
2
);
for
(
auto
cntr
:
lumi_schema
.
counters
)
{
hltLumiSummary
.
addInfo
(
cntr
.
name
,
getField
(
cntr
.
offset
,
cntr
.
size
,
ibank
->
data
()
)
);
}
}
else
{
if
(
ibank
->
size
()
!=
LHCb
::
LumiSummaryOffsets
::
V2
::
TotalSize
)
{
warning
()
<<
"Bank size incorrect for HltLumiSummary V2: expected "
...
...
@@ -205,6 +207,8 @@ namespace LHCb {
}
private
:
ServiceHandle
<
IIndexedLumiSchemaSvc
>
m_svc
{
this
,
"DecoderMapping"
,
"HltANNSvc"
};
// Statistics, mutable to allow statistics to be kept
mutable
Gaudi
::
Accumulators
::
AveragingCounter
<>
m_totDataSize
{
this
,
"Average event size / 32-bit words"
};
};
...
...
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