Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Detector
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
LHCb
Detector
Merge requests
!313
Add SciFi hardware ID conversion from FTChannelID
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add SciFi hardware ID conversion from FTChannelID
luwitola_ftchannelid
into
master
Overview
11
Commits
7
Pipelines
6
Changes
1
Merged
Lukas Witola
requested to merge
luwitola_ftchannelid
into
master
2 years ago
Overview
11
Commits
7
Pipelines
6
Changes
1
Expand
Not used yet but this is still useful for future monitoring.
@gunther
Edited
2 years ago
by
Louis Henry
0
0
Merge request reports
Viewing commit
244c7848
Prev
Next
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
244c7848
Correct compilation
· 244c7848
Louis Henry
authored
2 years ago
Detector/FT/include/Detector/FT/FTChannelID.h
+
1
−
1
Options
@@ -216,7 +216,7 @@ namespace LHCb::Detector {
[[
nodiscard
]]
constexpr
StationID
station
()
const
{
return
StationID
{
extract
<
Mask
::
station
>
(
m_channelID
)};
}
/// Retrieve HalfRob ID within module [0, 1]
[[
nodiscard
]]
constexpr
unsigned
int
halfRob
()
const
{
return
mat
().
to_unsigned
()
/
FTConstants
::
nHalfRobs
;
}
[[
nodiscard
]]
constexpr
unsigned
int
halfRob
()
const
{
return
to_unsigned
(
mat
()
)
/
FTConstants
::
nHalfRobs
;
}
/// Retrieve data link ID within HalfRob [0..7]
[[
nodiscard
]]
constexpr
unsigned
int
dataLink
()
const
{
return
(
FTConstants
::
nSiPM
*
halfRob
()
+
sipm
()
);
}
Loading