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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Commits
0157edc9
Commit
0157edc9
authored
3 years ago
by
Dominik Smith
Committed by
Pierre-Alain Loizeau
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
CbmStsUnpackAlgo: Added DPB offset to FEB index calculation in processHitInfo().
parent
e2f1b37b
No related branches found
No related tags found
1 merge request
!445
(Bugfix) CbmStsUnpackAlgo: Added DPB offset to FEB index calculation in processHitInfo().
Pipeline
#12485
passed
3 years ago
Stage: build
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
reco/detectors/sts/unpack/CbmStsUnpackAlgo.cxx
+9
-2
9 additions, 2 deletions
reco/detectors/sts/unpack/CbmStsUnpackAlgo.cxx
reco/detectors/sts/unpack/CbmStsUnpackAlgo.h
+3
-0
3 additions, 0 deletions
reco/detectors/sts/unpack/CbmStsUnpackAlgo.h
with
12 additions
and
2 deletions
reco/detectors/sts/unpack/CbmStsUnpackAlgo.cxx
+
9
−
2
View file @
0157edc9
...
...
@@ -146,6 +146,9 @@ Bool_t CbmStsUnpackAlgo::initParSet(CbmMcbm2018StsPar* parset)
// Get Number of Channels per FEB
fNrChsPerFeb
=
parset
->
GetNbChanPerFeb
();
// Get Number of FEBs per CROB
fNrFebsPerCrob
=
parset
->
GetNbFebsPerCrob
();
for
(
size_t
ielink
=
0
;
ielink
<
fNrElinksPerCrob
;
++
ielink
)
{
fElinkIdxToFebIdxVec
.
emplace_back
(
parset
->
ElinkIdxToFebIdx
(
ielink
));
fElinkIdxToAsicIdxVec
.
emplace_back
(
...
...
@@ -451,13 +454,16 @@ void CbmStsUnpackAlgo::processHitInfo(const stsxyter::Message& mess)
{
const
uint16_t
usElinkIdx
=
mess
.
GetLinkIndexHitBinning
();
const
uint32_t
uCrobIdx
=
usElinkIdx
/
fNrElinksPerCrob
;
const
int32_t
uFebIdx
=
fElinkIdxToFebIdxVec
.
at
(
usElinkIdx
);
int32_t
uFebIdx
=
fElinkIdxToFebIdxVec
.
at
(
usElinkIdx
);
if
(
-
1
==
uFebIdx
)
{
LOG
(
warning
)
<<
"CbmAlgoUnpackSts::DoUnpack => "
<<
"Wrong elink Idx! Elink raw "
<<
Form
(
"%d remap %d"
,
usElinkIdx
,
uFebIdx
);
return
;
}
// Get the asix index
//uFebIdx += ( fuCurrDpbIdx * fNrCrobPerDpb + ____CrobIndexCalculationIfNeeded___() ) * fuNbFebsPerCrob;
uFebIdx
+=
(
fuCurrDpbIdx
*
fNrCrobPerDpb
)
*
fNrFebsPerCrob
;
//no Crob index calculation for now
// Get the asic index
uint32_t
uAsicIdx
=
getAsicIndex
(
fuCurrDpbIdx
,
uCrobIdx
,
usElinkIdx
);
const
uint16_t
usChan
=
mess
.
GetHitChannel
();
...
...
@@ -478,6 +484,7 @@ void CbmStsUnpackAlgo::processHitInfo(const stsxyter::Message& mess)
fvvusLastTsMsbChan
[
uAsicIdx
][
usChan
]
=
fvulCurrentTsMsb
[
fuCurrDpbIdx
];
fvvusLastTsMsbCycleChan
[
uAsicIdx
][
usChan
]
=
fvuCurrentTsMsbCycle
[
fuCurrDpbIdx
];
// Compute the Full time stamp
const
int64_t
ulHitTime
=
getFullTimeStamp
(
usRawTs
);
...
...
This diff is collapsed.
Click to expand it.
reco/detectors/sts/unpack/CbmStsUnpackAlgo.h
+
3
−
0
View file @
0157edc9
...
...
@@ -246,6 +246,9 @@ protected:
/** @brief Number of CROBs per DPB */
uint32_t
fNrCrobPerDpb
=
0
;
//!
/** @brief Number of FEBs per CROB */
uint32_t
fNrFebsPerCrob
=
0
;
//!
/** @brief Vector used for the translation between eLink index and FEB index*/
std
::
vector
<
int
>
fElinkIdxToFebIdxVec
=
{};
...
...
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