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
Commits
8d2443f1
Commit
8d2443f1
authored
2 years ago
by
Roel Aaij
Browse files
Options
Downloads
Patches
Plain Diff
Fix station numbering in findStation to match {1, 2, 3} convention
parent
8042177b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!265
Fix station numbering in findStation to match {1, 2, 3} convention
Pipeline
#4317460
passed
2 years ago
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Detector/FT/include/Detector/FT/DeFT.h
+2
-2
2 additions, 2 deletions
Detector/FT/include/Detector/FT/DeFT.h
with
2 additions
and
2 deletions
Detector/FT/include/Detector/FT/DeFT.h
+
2
−
2
View file @
8d2443f1
...
...
@@ -125,8 +125,8 @@ namespace LHCb::Detector {
* @return Pointer to the relevant station
*/
[[
nodiscard
]]
const
std
::
optional
<
DeFTStation
>
findStation
(
const
FTChannelID
&
aChannel
)
const
{
return
(
to_unsigned
(
aChannel
.
station
()
)
<
this
->
access
()
->
m_stations
.
size
()
)
?
&
(
this
->
access
()
->
m_stations
[
to_unsigned
(
aChannel
.
station
()
)]
)
return
(
to_unsigned
(
aChannel
.
station
()
)
-
1
<
this
->
access
()
->
m_stations
.
size
()
)
?
&
(
this
->
access
()
->
m_stations
[
to_unsigned
(
aChannel
.
station
()
)
-
1
]
)
:
std
::
optional
<
DeFTStation
>
{};
}
...
...
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