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
577b0d1b
Commit
577b0d1b
authored
5 years ago
by
Norbert Herrmann
Committed by
Florian Uhlig
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add special mapping cases for HD cosmic setup
parent
f681d651
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!138
Final merge
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
fles/mcbm2018/unpacker/CbmMcbm2018UnpackerAlgoTof.cxx
+35
-16
35 additions, 16 deletions
fles/mcbm2018/unpacker/CbmMcbm2018UnpackerAlgoTof.cxx
with
35 additions
and
16 deletions
fles/mcbm2018/unpacker/CbmMcbm2018UnpackerAlgoTof.cxx
+
35
−
16
View file @
577b0d1b
...
...
@@ -217,6 +217,7 @@ Bool_t CbmMcbm2018UnpackerAlgoTof::InitParameters() {
fviRpcChUId
.
resize
(
uNrOfChannels
);
UInt_t
iCh
=
0
;
for
(
UInt_t
iGbtx
=
0
;
iGbtx
<
fuNrOfGbtx
;
++
iGbtx
)
{
Int_t
iModuleIdMap
=
fviModuleId
[
iGbtx
];
switch
(
fviRpcType
[
iGbtx
])
{
case
0
:
// CBM modules
...
...
@@ -316,9 +317,7 @@ Bool_t CbmMcbm2018UnpackerAlgoTof::InitParameters() {
fviRpcChUId
[
iCh
]);
break
;
}
// Valid T0 channel
default
:
{
fviRpcChUId
[
iCh
]
=
0
;
}
// Invalid T0 channel
default
:
{
fviRpcChUId
[
iCh
]
=
0
;
}
// Invalid T0 channel
}
// switch( uCh % 4 )
}
// if( 0 == uFee )
...
...
@@ -352,7 +351,7 @@ Bool_t CbmMcbm2018UnpackerAlgoTof::InitParameters() {
LOG
(
info
)
<<
" Map end CERN 20 gap at GBTX - iCh = "
<<
iCh
;
}
// fall through is intended
[[
fallthrough
]];
// fall through is intended
case
8
:
// ceramics
{
Int_t
iModuleId
=
0
;
...
...
@@ -379,6 +378,23 @@ Bool_t CbmMcbm2018UnpackerAlgoTof::InitParameters() {
Int_t
iRpcMap
=
iRpc
[
iFeet
];
Int_t
iSideMap
=
iSide
[
iFeet
];
if
(
iSideMap
==
0
)
iStrMap
=
31
-
iStr
;
switch
(
fviRpcSide
[
iGbtx
])
{
case
0
:;
break
;
case
1
:;
break
;
case
2
:
switch
(
iFeet
)
{
case
1
:
iRpcMap
=
iRpc
[
4
];
iSideMap
=
iSide
[
4
];
break
;
case
4
:
iRpcMap
=
iRpc
[
1
];
iSideMap
=
iSide
[
1
];
break
;
default:
;
}
break
;
}
if
(
iSideMap
>
-
1
)
fviRpcChUId
[
iCh
]
=
CbmTofAddress
::
GetUniqueAddress
(
fviModuleId
[
iGbtx
],
...
...
@@ -424,15 +440,18 @@ Bool_t CbmMcbm2018UnpackerAlgoTof::InitParameters() {
case
5
:
// HD cosmic 2020, Buc2018, v20a
iStrMap
=
31
-
iStr
;
break
;
default:
;
case
6
:
//BUC special
{
switch
(
fviModuleId
[
iGbtx
])
{
case
0
:
iRpcMap
=
0
;
break
;
case
1
:
iRpcMap
=
1
;
break
;
}
if
(
iFeet
>
2
)
iModuleIdMap
=
1
;
}
break
;
}
if
(
iSideMap
>
-
1
)
fviRpcChUId
[
iCh
]
=
CbmTofAddress
::
GetUniqueAddress
(
fviModuleId
[
iGbtx
],
iRpcMap
,
iStrMap
,
iSideMap
,
fviRpcType
[
iGbtx
]);
fviRpcChUId
[
iCh
]
=
CbmTofAddress
::
GetUniqueAddress
(
iModuleIdMap
,
iRpcMap
,
iStrMap
,
iSideMap
,
fviRpcType
[
iGbtx
]);
else
fviRpcChUId
[
iCh
]
=
0
;
...
...
@@ -1272,7 +1291,7 @@ void CbmMcbm2018UnpackerAlgoTof::ProcessPattern(
break;
*/
}
// case gdpbv100::PATT_MISSMATCH:
break
;
case
gdpbv100
::
PATT_ENABLE
:
{
LOG
(
debug2
)
<<
Form
(
"Enable pattern message => Type %d, Index %2d, Pattern 0x%08X"
,
...
...
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