Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Commits
4f140bb2
Commit
4f140bb2
authored
2 years ago
by
Dominik Smith
Browse files
Options
Downloads
Patches
Plain Diff
UnpackTrd2d: Updated monitoring information.
parent
e6f491b3
No related branches found
No related tags found
1 merge request
!1156
TRD2D Unpacker in cbm::algo.
Pipeline
#22465
passed
2 years ago
Stage: documentation
Stage: deploy
Changes
2
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
algo/detectors/trd2d/UnpackTrd2d.cxx
+8
-4
8 additions, 4 deletions
algo/detectors/trd2d/UnpackTrd2d.cxx
algo/detectors/trd2d/UnpackTrd2d.h
+9
-9
9 additions, 9 deletions
algo/detectors/trd2d/UnpackTrd2d.h
with
17 additions
and
13 deletions
algo/detectors/trd2d/UnpackTrd2d.cxx
+
8
−
4
View file @
4f140bb2
...
...
@@ -32,6 +32,9 @@ namespace cbm::algo
// --- Output data
resultType
result
=
{};
// Reset monitoring data
fMonitor
=
UnpackTrd2dMonitorData
();
// define time wrt start of time slice in TRD/FASP clks [80 MHz]. Contains:
// - relative offset of the MS wrt the TS
// - FASP epoch offset for current CROB
...
...
@@ -74,16 +77,17 @@ namespace cbm::algo
lFaspOld
=
fasp_id
;
}
if
(
data
&
0x1
)
{
LOG
(
warn
)
<<
"UnpackTrd2d - Data corrupted : detect end bit set."
;
fMonitor
.
fNumErrEndBitSet
++
;
continue
;
}
if
(
data
&
0x2000
)
{
LOG
(
debug
)
<<
"UnpackTrd2d -
Self
-t
riggered
d
ata
."
;
fMonitor
.
fNum
Self
T
riggered
D
ata
++
;
data
&=
0x1fff
;
}
vMess
.
emplace_back
(
ch_id
,
kData
,
slice
,
data
>>
1
,
crob_id
,
lFaspOld
);
}
result
.
first
=
FinalizeComponent
();
result
.
first
=
FinalizeComponent
();
//TO DO: Original (non-algo) version calls this after MS loop!!
result
.
second
=
fMonitor
;
return
result
;
}
...
...
@@ -181,7 +185,7 @@ namespace cbm::algo
// clear digi buffer wrt the digi which was forwarded to higher structures
fDigiBuffer
[
ipad
].
clear
();
if
(
nIncomplete
>
2
)
{
LOG
(
warn
)
<<
"FinalizeComponent() skip "
<<
nIncomplete
<<
" incomplete digi at pad "
<<
ipad
<<
".
\n
"
;
fMonitor
.
fNumIncompleteDigis
++
;
//TO DO: This must be moved if finalization is done after MS loop
}
}
return
outputDigis
;
...
...
This diff is collapsed.
Click to expand it.
algo/detectors/trd2d/UnpackTrd2d.h
+
9
−
9
View file @
4f140bb2
...
...
@@ -85,22 +85,20 @@ namespace cbm::algo
** @brief Monitoring data for TRD unpacking
**/
struct
UnpackTrd2dMonitorData
{
uint32_t
fNumNonHitOrTsbMessage
=
0
;
uint32_t
fNumErrElinkOutOfRange
=
0
;
///< Elink not contained in parameters
uint32_t
fNumErrInvalidFirstMessage
=
0
;
///< First message is not TS_MSB or second is not EPOCH
uint32_t
fNumErrInvalidMsSize
=
0
;
///< Microslice size is not multiple of message size
uint32_t
fNumErrTimestampOverflow
=
0
;
///< Overflow in 64 bit time stampa
uint32_t
fNumSelfTriggeredData
=
0
;
///< word fulfills data & 0x2000
uint32_t
fNumIncompleteDigis
=
0
;
///< incomplete digis left in pads after finalization
uint32_t
fNumErrEndBitSet
=
0
;
///< Corrupted data with end bit set
bool
HasErrors
()
{
uint32_t
numErrors
=
fNumNonHitOrTsbMessage
+
fNumErrElinkOutOfRange
+
fNumErrInvalidFirstMessage
+
fNumErrInvalidMsSize
+
fNumErrTimestampOverflow
;
uint32_t
numErrors
=
fNumErrEndBitSet
;
return
(
numErrors
>
0
?
true
:
false
);
}
std
::
string
print
()
{
std
::
stringstream
ss
;
ss
<<
"
error
s "
<<
fNum
NonHitOrTsbMessage
<<
" | "
<<
fNumErrElinkOutOfRange
<<
" | "
<<
fNumErrInvalidFirstMessage
<<
" | "
<<
fNumErrInvalidMsSize
<<
" | "
<<
fNumErrTimestampOverflow
<<
" | "
;
ss
<<
"
stat
s "
<<
fNum
SelfTriggeredData
<<
" | "
<<
fNumIncompleteDigis
<<
" | errors "
<<
fNumErrEndBitSet
<<
" | "
;
return
ss
.
str
();
}
};
...
...
@@ -141,6 +139,8 @@ namespace cbm::algo
private
:
// members
UnpackTrd2dPar
fParams
=
{};
///< Parameter container
UnpackTrd2dMonitorData
fMonitor
;
///< Container for monitoring data
/**
** @brief Time offset for the system
** @todo This should be module and channel dependent and included into the asic parameters
...
...
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