Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Vikas Singhal
cbmroot
Commits
e017f797
Commit
e017f797
authored
2 years ago
by
Dominik Smith
Browse files
Options
Downloads
Patches
Plain Diff
Updated monitoring structs of cbm::algo unpackers.
parent
1456e126
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
algo/detectors/bmon/UnpackBmon.h
+4
-2
4 additions, 2 deletions
algo/detectors/bmon/UnpackBmon.h
algo/detectors/tof/UnpackTof.h
+2
-1
2 additions, 1 deletion
algo/detectors/tof/UnpackTof.h
algo/detectors/trd/UnpackTrd.h
+24
-24
24 additions, 24 deletions
algo/detectors/trd/UnpackTrd.h
with
30 additions
and
27 deletions
algo/detectors/bmon/UnpackBmon.h
+
4
−
2
View file @
e017f797
...
...
@@ -61,14 +61,16 @@ namespace cbm::algo
bool
HasErrors
()
{
uint32_t
numErrors
=
fNumNonHitOrTsbMessage
+
fNumErrElinkOutOfRange
+
fNumErrInvalidFirstMessage
+
fNumErrInvalidMsSize
+
fNumErrTimestampOverflow
;
+
fNumErrInvalidLastMessage
+
fNumErrInvalidMsSize
+
fNumErrTimestampOverflow
+
fNumErrInvalidStartEpoch
;
return
(
numErrors
>
0
?
true
:
false
);
}
std
::
string
print
()
{
std
::
stringstream
ss
;
ss
<<
"errors "
<<
fNumNonHitOrTsbMessage
<<
" | "
<<
fNumErrElinkOutOfRange
<<
" | "
<<
fNumErrInvalidFirstMessage
<<
" | "
<<
fNumErrInvalidMsSize
<<
" | "
<<
fNumErrTimestampOverflow
<<
" | "
;
<<
fNumErrInvalidFirstMessage
<<
" | "
<<
fNumErrInvalidLastMessage
<<
" | "
<<
fNumErrInvalidMsSize
<<
" | "
<<
fNumErrTimestampOverflow
<<
" | "
<<
fNumErrInvalidStartEpoch
<<
" | "
;
return
ss
.
str
();
}
};
...
...
This diff is collapsed.
Click to expand it.
algo/detectors/tof/UnpackTof.h
+
2
−
1
View file @
e017f797
...
...
@@ -66,7 +66,8 @@ namespace cbm::algo
{
std
::
stringstream
ss
;
ss
<<
"errors "
<<
fNumNonHitOrTsbMessage
<<
" | "
<<
fNumErrElinkOutOfRange
<<
" | "
<<
fNumErrInvalidFirstMessage
<<
" | "
<<
fNumErrInvalidMsSize
<<
" | "
<<
fNumErrTimestampOverflow
<<
" | "
;
<<
fNumErrInvalidFirstMessage
<<
" | "
<<
fNumErrInvalidLastMessage
<<
" | "
<<
fNumErrInvalidMsSize
<<
" | "
<<
fNumErrTimestampOverflow
<<
" | "
<<
fNumErrInvalidStartEpoch
<<
" | "
;
return
ss
.
str
();
}
};
...
...
This diff is collapsed.
Click to expand it.
algo/detectors/trd/UnpackTrd.h
+
24
−
24
View file @
e017f797
...
...
@@ -59,37 +59,37 @@ namespace cbm::algo
** @brief Monitoring data for TRD unpacking
**/
struct
UnpackTrdMonitorData
{
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
size_t
fNumNonMajorTsMsb
=
0
;
///< Counter for the ts_msb used to reconstruct the time
size_t
fNumElinkMis
=
0
;
///< Number of SOM to RDA/EOM mismatches
size_t
fNumCorruptEom
=
0
;
///< Number of corrupted EOM frames
size_t
fNumWildRda
=
0
;
///< Number of rda frames outside of a SOM frame range
size_t
fNumWildEom
=
0
;
///< Number of eom frames outside of a SOM frame range
size_t
fNumUnknownWords
=
0
;
///< Number of unknown words
size_t
fNumMissingEom
=
0
;
///< Number of missing EOM frames to finish a SOM frame
size_t
fNumWildNul
=
0
;
///< Number of wild null words, should only appear at the end of a µSlice
size_t
fNumCreatedRawMsgs
=
0
;
///< counter of created raw messages
size_t
fNumEpochMsgs
=
0
;
///< counter of created raw messages
size_t
fNumCrcValidFlags
=
0
;
///< counter for inf/error flags from the µSlices
size_t
fNumOverflowFlimFlags
=
0
;
///< counter for inf/error flags from the µSlices
size_t
fNumOverflowUserFlags
=
0
;
///< counter for inf/error flags from the µSlices
size_t
fNumDataErrorFlags
=
0
;
///< counter for inf/error flags from the µSlices
size_t
fNumCreatedInfoMsgs
=
0
;
///< counter of created info messages
size_t
fNumNonMajorTsMsb
=
0
;
///< Counter for the ts_msb used to reconstruct the time
size_t
fNumCreatedRawMsgs
=
0
;
///< counter of created raw messages
size_t
fNumEpochMsgs
=
0
;
///< counter of created raw messages
size_t
fNumCreatedInfoMsgs
=
0
;
///< counter of created info messages
size_t
fNumElinkMis
=
0
;
///< Number of SOM to RDA/EOM mismatches
size_t
fNumCorruptEom
=
0
;
///< Number of corrupted EOM frames
size_t
fNumWildRda
=
0
;
///< Number of rda frames outside of a SOM frame range
size_t
fNumWildEom
=
0
;
///< Number of eom frames outside of a SOM frame range
size_t
fNumUnknownWords
=
0
;
///< Number of unknown words
size_t
fNumMissingEom
=
0
;
///< Number of missing EOM frames to finish a SOM frame
size_t
fNumWildNul
=
0
;
///< Number of wild null words, should only appear at the end of a µSlice
size_t
fNumCrcValidFlags
=
0
;
///< counter for inf/error flags from the µSlices
size_t
fNumOverflowFlimFlags
=
0
;
///< counter for inf/error flags from the µSlices
size_t
fNumOverflowUserFlags
=
0
;
///< counter for inf/error flags from the µSlices
size_t
fNumDataErrorFlags
=
0
;
///< counter for inf/error flags from the µSlices
bool
HasErrors
()
{
uint32_t
numErrors
=
fNumNonHitOrTsbMessage
+
fNumErrElinkOutOfRange
+
fNumErrInvalidFirstMessage
+
fNumErrInvalidMsSize
+
fNumErrTimestampOverflow
;
uint32_t
numErrors
=
fNumElinkMis
+
fNumCorruptEom
+
fNumWildRda
+
fNumWildEom
+
fNumUnknownWords
+
fNumMissingEom
+
fNumWildNul
+
fNumCrcValidFlags
+
fNumOverflowFlimFlags
+
fNumOverflowUserFlags
+
fNumDataErrorFlags
;
return
(
numErrors
>
0
?
true
:
false
);
}
std
::
string
print
()
{
std
::
stringstream
ss
;
ss
<<
"errors "
<<
fNumNonHitOrTsbMessage
<<
" | "
<<
fNumErrElinkOutOfRange
<<
" | "
<<
fNumErrInvalidFirstMessage
<<
" | "
<<
fNumErrInvalidMsSize
<<
" | "
<<
fNumErrTimestampOverflow
<<
" | "
;
ss
<<
" stats "
<<
fNumNonMajorTsMsb
<<
" | "
<<
fNumCreatedRawMsgs
<<
" | "
<<
fNumEpochMsgs
<<
" | "
<<
fNumCreatedInfoMsgs
<<
" errors "
<<
fNumElinkMis
<<
" | "
<<
fNumCorruptEom
<<
" | "
<<
fNumWildRda
<<
" | "
<<
fNumWildEom
<<
" | "
<<
fNumUnknownWords
<<
" | "
<<
fNumMissingEom
<<
" | "
<<
fNumWildNul
<<
" | "
<<
fNumCrcValidFlags
<<
" | "
<<
fNumOverflowFlimFlags
<<
" | "
<<
fNumOverflowUserFlags
<<
" | "
<<
fNumDataErrorFlags
<<
" | "
;
return
ss
.
str
();
}
};
...
...
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