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
Merge requests
!110
ANN for muon selection
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
ANN for muon selection
a.senger/cbmroot:dimuon
into
master
Overview
5
Commits
13
Pipelines
8
Changes
6
Merged
Anna Senger
requested to merge
a.senger/cbmroot:dimuon
into
master
4 years ago
Overview
5
Commits
13
Pipelines
8
Changes
6
Expand
0
0
Merge request reports
Viewing commit
c28a4548
Show latest version
6 files
+
39
−
22
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
c28a4548
Fix spadic 2.2 channel mapping in asic coordinates
· c28a4548
Pascal Raisig
authored
4 years ago
core/detectors/trd/CbmTrdParManager.cxx
+
15
−
6
Options
@@ -278,15 +278,24 @@ void CbmTrdParManager::CreateModuleParameters(const TString& path) {
chAddressesVec
.
clear
();
chAddressesVec
.
resize
(
nAsicChannels
);
Int_t
iAsicChannel
(
0
);
Int_t
iAsicChannel
=
0
;
// This is the nth asic channel as it is written to the raw messages
for
(
auto
channelAddress
:
chAddressesVec
)
{
// Each row of asic channels for one spadic has its own eLink. The numbering of the channels is stored in the GetElinkChannel() function
channelAddress
=
asic
->
GetElinkChannel
(
iAsicChannel
);
if
((
iAsicChannel
%
2
!=
0
))
channelAddress
+=
nModuleColumns
;
// one asic is split over two rows with odd channels in the top row, thus there address is placed in the next column
// Now apply the asic specific mapping
channelAddress
=
asic
->
GetAsicChAddress
(
iAsicChannel
);
// returns the channeladdress in the scope of one asic
// Get the channel addressed to the top or bottom row of the single asic
if
((
channelAddress
/
(
nAsicChannels
/
2
))
>
0
)
{
// if the address corresponds to the second 16 channels 16..31 it goes into the next row
channelAddress
-=
(
nAsicChannels
/
2
);
// since we have only 16 channels per row we have to subtract 16 from channels 16..31
channelAddress
+=
nModuleColumns
;
}
// move channel address to the correct column according to the asic column position
channelAddress
+=
nThAsicColumn
*
nAsicChannels
/
2
;
// one asic is split over two rows
// move channel address to the correct row according to the asic row position
channelAddress
+=
nThAsicRow
*
nModuleColumns
*
2
;
// one asic is split over two rows
Loading