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
b32114c4
Commit
b32114c4
authored
4 years ago
by
Pascal Raisig
Committed by
Pascal Raisig
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update default geo tag and use new raw message time getter
parent
6a857620
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!90
Fix trd geo tag in the mCbm macros
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fles/mcbm2018/unpacker/CbmMcbm2018UnpackerAlgoTrdR.cxx
+10
-2
10 additions, 2 deletions
fles/mcbm2018/unpacker/CbmMcbm2018UnpackerAlgoTrdR.cxx
fles/mcbm2018/unpacker/CbmMcbm2018UnpackerAlgoTrdR.h
+5
-0
5 additions, 0 deletions
fles/mcbm2018/unpacker/CbmMcbm2018UnpackerAlgoTrdR.h
with
15 additions
and
2 deletions
fles/mcbm2018/unpacker/CbmMcbm2018UnpackerAlgoTrdR.cxx
+
10
−
2
View file @
b32114c4
...
...
@@ -48,7 +48,7 @@ CbmMcbm2018UnpackerAlgoTrdR::CbmMcbm2018UnpackerAlgoTrdR()
,
fNbUnkownWord
(
0
)
,
fNbSpadicEpochMsg
(
0
)
,
fParContList
(
nullptr
)
,
fRefGeoTag
(
"trd_v
18q
_mcbm"
)
,
fRefGeoTag
(
"trd_v
20a
_mcbm"
)
,
fAsicPar
(
nullptr
)
,
fDigiPar
(
nullptr
)
,
fGasPar
(
nullptr
)
...
...
@@ -211,6 +211,14 @@ Bool_t CbmMcbm2018UnpackerAlgoTrdR::ProcessTs(const fles::Timeslice& ts) {
[](
const
CbmTrdDigi
&
a
,
const
CbmTrdDigi
&
b
)
->
bool
{
return
a
.
GetTime
()
<
b
.
GetTime
();
});
if
(
fbDebugWriteOutput
&&
fbDebugSortOutput
)
{
std
::
sort
(
fTrdRawMessageVector
->
begin
(),
fTrdRawMessageVector
->
end
(),
[](
const
CbmTrdRawMessageSpadic
&
a
,
const
CbmTrdRawMessageSpadic
&
b
)
->
bool
{
return
a
.
GetTime
()
<
b
.
GetTime
();
});
}
LOG
(
error
)
<<
"Failed to process ts "
<<
fCurrTsIdx
<<
" MS "
<<
MsIndex
<<
" for component "
<<
uMsComp
;
...
...
@@ -857,7 +865,7 @@ CbmMcbm2018UnpackerAlgoTrdR::MakeDigi(CbmTrdRawMessageSpadic raw) {
Float_t
digiCharge
=
(
Float_t
)
raw
.
GetMaxAdc
()
+
256
;
// REMARK raw.GetMaxADC returns a the value in the range of -256 til 255. However, the digiCharge is stored as unsigned. // TODO make Settable
ULong64_t
digiTime
=
raw
.
Get
Full
Time
_ns
()
-
fdTimeOffsetNs
;
ULong64_t
digiTime
=
raw
.
GetTime
()
-
fdTimeOffsetNs
;
// Int_t digiTriggerType = raw.GetHitType() ; // Spadic::TriggerType this does not work 03/27/2020 - PR digiTriggerType is not Spadic::TriggerType!
Int_t
digiTriggerType
=
raw
.
GetHitType
();
if
(
digiTriggerType
==
1
)
...
...
This diff is collapsed.
Click to expand it.
fles/mcbm2018/unpacker/CbmMcbm2018UnpackerAlgoTrdR.h
+
5
−
0
View file @
b32114c4
...
...
@@ -126,6 +126,9 @@ public:
void
SetDebugWriteOutput
(
Bool_t
bFlagIn
=
kTRUE
)
{
fbDebugWriteOutput
=
bFlagIn
;
}
void
SetDebugSortOutput
(
Bool_t
bFlagIn
=
kTRUE
)
{
fbDebugWriteOutput
=
bFlagIn
;
}
inline
void
SetTimeOffsetNs
(
Double_t
dOffsetIn
=
0.0
)
{
fdTimeOffsetNs
=
dOffsetIn
;
}
...
...
@@ -194,6 +197,8 @@ private:
fbWriteOutput
;
///< If ON the output Vector of digis is written to disk.
Bool_t
fbDebugWriteOutput
;
///< If ON the raw messages output vector is filled and written to disk.
Bool_t
fbDebugSortOutput
=
kTRUE
;
///< If ON the raw messages output vector is sorted within time.
Bool_t
fbBaselineAvg
;
///< Set to true if Baseline Averaging is activated in Spadic.
...
...
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