Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LHCb
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
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
LHCb
Commits
2fc40450
Commit
2fc40450
authored
1 year ago
by
Christopher Rob Jones
Browse files
Options
Downloads
Patches
Plain Diff
ichTrackSegment: Add missing utility include
parent
0c55d3ed
No related branches found
No related tags found
1 merge request
!4251
Add support for RICH 4D reconstruction
Pipeline
#6064287
passed
1 year ago
Stage: test
Stage: .post
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Rich/RichUtils/include/RichUtils/RichTrackSegment.h
+8
-7
8 additions, 7 deletions
Rich/RichUtils/include/RichUtils/RichTrackSegment.h
Rich/RichUtils/src/RichTrackSegment.cpp
+3
-1
3 additions, 1 deletion
Rich/RichUtils/src/RichTrackSegment.cpp
with
11 additions
and
8 deletions
Rich/RichUtils/include/RichUtils/RichTrackSegment.h
+
8
−
7
View file @
2fc40450
...
...
@@ -23,13 +23,6 @@
#pragma once
// std include
#include
<array>
#include
<cmath>
#include
<iostream>
#include
<memory>
#include
<type_traits>
// local
#include
"RichUtils/RichException.h"
#include
"RichUtils/RichSIMDTypes.h"
...
...
@@ -52,6 +45,14 @@
// VDT
#include
"vdt/sqrt.h"
// std include
#include
<array>
#include
<cmath>
#include
<iostream>
#include
<memory>
#include
<type_traits>
#include
<utility>
// General LHCb namespace
namespace
LHCb
{
...
...
This diff is collapsed.
Click to expand it.
Rich/RichUtils/src/RichTrackSegment.cpp
+
3
−
1
View file @
2fc40450
...
...
@@ -38,11 +38,13 @@
namespace
{
// access the mass^2 for a given hypothesis, using the Particle Property Svc
auto
pidMass2
(
const
Rich
::
ParticleIDType
pid
)
{
static
Rich
::
ParticleArray
<
double
>
masses2
;
static
std
::
once_flag
run_once
;
std
::
call_once
(
run_once
,
[
&
]()
{
const
auto
ppSvc
=
Gaudi
::
svcLocator
()
->
service
<
LHCb
::
IParticlePropertySvc
>
(
"LHCb::ParticlePropertySvc"
,
true
);
assert
(
ppSvc
);
masses2
[
Rich
::
Electron
]
=
std
::
pow
(
ppSvc
->
find
(
"e+"
)
->
mass
()
/
Gaudi
::
Units
::
MeV
,
2
);
masses2
[
Rich
::
Muon
]
=
std
::
pow
(
ppSvc
->
find
(
"mu+"
)
->
mass
()
/
Gaudi
::
Units
::
MeV
,
2
);
masses2
[
Rich
::
Pion
]
=
std
::
pow
(
ppSvc
->
find
(
"pi+"
)
->
mass
()
/
Gaudi
::
Units
::
MeV
,
2
);
...
...
@@ -83,7 +85,7 @@ void LHCb::RichTrackSegment::setOriginVertex( const Gaudi::XYZTPoint& origin4vtx
// Loop over all mass hypos
for
(
const
auto
pid
:
Rich
::
particles
()
)
{
// velocity
// velocity
for this hypo
const
auto
v
=
velocity
(
pid
);
// finally set transit time
m_timeToRadEntry
[
pid
]
=
(
v
>
0
?
originTime
()
+
(
pathLenToEntry
/
v
)
:
std
::
numeric_limits
<
double
>::
max
()
);
...
...
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