Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Allen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Allen
Merge requests
!1313
Adapt to
LHCb!4244
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Adapt to
LHCb!4244
lohenry-addMoreStates2
into
2024-patches
Overview
3
Commits
2
Pipelines
0
Changes
1
Closed
Louis Henry
requested to merge
lohenry-addMoreStates2
into
2024-patches
1 year ago
Overview
3
Commits
2
Pipelines
0
Changes
1
Expand
See
LHCb!4244 (closed)
0
0
Merge request reports
Compare
2024-patches
version 3
9841600c
1 year ago
version 2
3c8bea23
1 year ago
version 1
10c3a3bb
1 year ago
2024-patches (base)
and
latest version
latest version
9841600c
2 commits,
1 year ago
version 3
9841600c
2 commits,
1 year ago
version 2
3c8bea23
1 commit,
1 year ago
version 1
10c3a3bb
1 commit,
1 year ago
1 file
+
4
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Rec/Allen/src/GaudiAllenTrackViewsToV3Tracks.cpp
+
4
−
4
Options
@@ -288,10 +288,10 @@ namespace GaudiAllen::Converters::v3 {
* - The z-position of the beamline state, or
* - The z-position of a hit on the track.
*/
template
<
Out
Track
s
::
StateLocation
L
,
typename
AllenTrack
,
typename
AllenState
>
template
<
LHCb
::
Event
::
Enum
::
Track
::
StateLocation
L
,
typename
AllenTrack
,
typename
AllenState
>
float
z_of
(
const
AllenTrack
track
,
const
AllenState
state
)
{
using
SL
=
Out
Track
s
::
StateLocation
;
using
SL
=
LHCb
::
Event
::
Enum
::
Track
::
StateLocation
;
/// states at constant positions
if
constexpr
(
L
==
SL
::
BegRich1
)
{
return
StateParameters
::
ZBegRich1
;
@@ -324,7 +324,7 @@ namespace GaudiAllen::Converters::v3 {
* Allen-specific equivalent of LHCb::Event::conversion::update_velo_state
* Copies a state into the specified location of the new track.
*/
template
<
Out
Track
s
::
StateLocation
L
,
typename
TrackProxy
>
template
<
LHCb
::
Event
::
Enum
::
Track
::
StateLocation
L
,
typename
TrackProxy
>
bool
update_velo_state
(
TrackProxy
&
outTrack
,
const
KalmanVeloStateWithQoP
&
state
)
{
outTrack
.
template
field
<
OutTag
::
States
>()[
outTrack
.
state_index
(
L
)].
setPosition
(
state
.
x
,
state
.
y
,
state
.
z
);
@@ -385,7 +385,7 @@ namespace GaudiAllen::Converters::v3 {
/// Actual implementation of update states
/// Assumes that the beamline state is the first element of the states vector
template
<
typename
TrackProxy
,
typename
AllenTrack
,
Out
Track
s
::
StateLocation
...
L
>
template
<
typename
TrackProxy
,
typename
AllenTrack
,
LHCb
::
Event
::
Enum
::
Track
::
StateLocation
...
L
>
static
bool
update_states_impl
(
TrackProxy
&
outTrack
,
const
AllenTrack
&
track
,
Loading