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
4265ea28
Commit
4265ea28
authored
1 year ago
by
Hangyi Wu
Browse files
Options
Downloads
Patches
Plain Diff
fix RawBank order by sourceID instead of boardID
parent
e5d2b2fd
No related branches found
No related tags found
1 merge request
!4389
New sourceID encoding and new UT ReadoutMap
Pipeline
#7087202
passed
1 year ago
Stage: test
Stage: .post
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
UT/UTDAQ/src/component/UTDigitsToRawBankAlg.cpp
+9
-1
9 additions, 1 deletion
UT/UTDAQ/src/component/UTDigitsToRawBankAlg.cpp
with
9 additions
and
1 deletion
UT/UTDAQ/src/component/UTDigitsToRawBankAlg.cpp
+
9
−
1
View file @
4265ea28
...
...
@@ -252,9 +252,17 @@ namespace LHCb::UT {
// group the data by banks..
StatusCode
sc
=
groupByBoard
(
*
m_digits
.
get
(),
cache
,
digitVectors
);
// sort digitVectors by sourceID as real data is sorted by sourceID
std
::
vector
<
unsigned
int
>
indexBySourceIDOrder
;
for
(
unsigned
int
iBoard
=
0u
;
iBoard
<
cache
.
nBoards
;
++
iBoard
)
{
indexBySourceIDOrder
.
push_back
(
iBoard
);
}
std
::
sort
(
indexBySourceIDOrder
.
begin
(),
indexBySourceIDOrder
.
end
(),
[
&
](
unsigned
int
a
,
unsigned
int
b
)
{
return
LHCb
::
UTDAQ
::
sourceIDfromBoardID
(
cache
.
bankMapping
.
findBoard
(
a
).
board
()
)
<
LHCb
::
UTDAQ
::
sourceIDfromBoardID
(
cache
.
bankMapping
.
findBoard
(
b
).
board
()
);
}
);
if
(
sc
.
isFailure
()
)
return
sc
;
for
(
unsigned
int
iBoard
=
0u
;
iBoard
<
cache
.
nBoards
;
++
iBoard
)
{
for
(
auto
const
iBoard
:
indexBySourceIDOrder
)
{
// get the data ....
const
UTDAQID
aBoardID
=
cache
.
bankMapping
.
findBoard
(
iBoard
);
const
auto
&
digits
=
digitVectors
[
iBoard
];
...
...
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