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
621a76f2
Commit
621a76f2
authored
3 years ago
by
Gerhard Raven
Browse files
Options
Downloads
Patches
Plain Diff
add check for UT rawbank size consistency
parent
1c996bbd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!3063
add check for UT rawbank size consistency
Pipeline
#2614340
passed
3 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
UT/UTKernel/Kernel/UTDecoder.h
+4
-0
4 additions, 0 deletions
UT/UTKernel/Kernel/UTDecoder.h
with
4 additions
and
0 deletions
UT/UTKernel/Kernel/UTDecoder.h
+
4
−
0
View file @
621a76f2
...
...
@@ -54,6 +54,10 @@ public:
explicit
UTDecoder
(
const
LHCb
::
RawBank
&
bank
)
:
m_bank
{
bank
.
range
<
uint16_t
>
().
subspan
(
4
)},
m_nDigits
{
make_digiVec
(
bank
.
range
<
uint32_t
>
().
first
<
2
>
()
)}
{
assert
(
UTDAQ
::
version
{
bank
.
version
()}
==
UTDAQ
::
version
::
v5
);
if
(
bank
.
size
()
/
sizeof
(
unsigned
int
)
!=
(
(
nClusters
()
+
1
)
/
2
)
*
8
)
{
// TODO: add a dedicated UT DAQ StatusCode category, and throw a GaudiException with a value inside that category
throw
std
::
runtime_error
{
"Error: unexpected UT RawBank size"
};
}
}
class
pos_range
final
{
...
...
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