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
!170
Add crude (placeholder) implementations of RICH gas volume intersections
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Add crude (placeholder) implementations of RICH gas volume intersections
jonrob/Detector:add-crude-rich-gas-volume-intersections
into
master
Overview
6
Commits
6
Pipelines
4
Changes
5
All threads resolved!
Hide all comments
Closed
Christopher Rob Jones
requested to merge
jonrob/Detector:add-crude-rich-gas-volume-intersections
into
master
3 years ago
Overview
6
Commits
6
Pipelines
4
Changes
5
All threads resolved!
Hide all comments
Expand
0
0
Merge request reports
Compare
master
version 3
46a6f62c
3 years ago
version 2
bbb75128
3 years ago
version 1
ca9f9b2a
3 years ago
master (base)
and
latest version
latest version
93e19e06
6 commits,
3 years ago
version 3
46a6f62c
5 commits,
3 years ago
version 2
bbb75128
1 commit,
3 years ago
version 1
ca9f9b2a
1 commit,
3 years ago
5 files
+
122
−
34
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
Core/include/Core/DeIOV.h
+
14
−
5
Options
@@ -29,18 +29,27 @@ namespace LHCb::Detector {
inline
static
constexpr
double
GaudiTeV
=
1.0
;
inline
static
constexpr
double
DD4hepToLHCbEnergy
=
dd4hep
::
TeV
/
GaudiTeV
;
//
inline
auto
toLHCbLengthUnits
(
const
double
length
)
{
return
DD4hepToLHCbCm
*
length
;
}
inline
auto
toLHCbAreaUnits
(
const
double
area
)
{
return
DD4hepToLHCbCm
*
DD4hepToLHCbCm
*
area
;
}
inline
auto
toLHCbEnergyUnits
(
const
double
energy
)
{
return
DD4hepToLHCbEnergy
*
energy
;
}
template
<
typename
TYPE
>
inline
TYPE
toLHCbLengthUnits
(
const
TYPE
length
)
{
return
DD4hepToLHCbCm
*
length
;
}
template
<
typename
TYPE
>
inline
TYPE
toLHCbAreaUnits
(
const
TYPE
area
)
{
return
DD4hepToLHCbCm
*
DD4hepToLHCbCm
*
area
;
}
template
<
typename
TYPE
>
inline
TYPE
toLHCbEnergyUnits
(
const
TYPE
energy
)
{
return
DD4hepToLHCbEnergy
*
energy
;
}
inline
ROOT
::
Math
::
Transform3D
toLHCbLengthUnits
(
const
ROOT
::
Math
::
Transform3D
&
t
)
{
double
xx
{},
xy
{},
xz
{},
dx
{},
yx
{},
yy
{},
yz
{},
dy
{},
zx
{},
zy
{},
zz
{},
dz
{};
ROOT
::
Math
::
Transform3D
::
Scalar
xx
{},
xy
{},
xz
{},
dx
{},
yx
{},
yy
{},
yz
{},
dy
{},
zx
{},
zy
{},
zz
{},
dz
{};
t
.
GetComponents
(
xx
,
xy
,
xz
,
dx
,
yx
,
yy
,
yz
,
dy
,
zx
,
zy
,
zz
,
dz
);
return
{
xx
,
xy
,
xz
,
toLHCbLengthUnits
(
dx
),
//
yx
,
yy
,
yz
,
toLHCbLengthUnits
(
dy
),
//
zx
,
zy
,
zz
,
toLHCbLengthUnits
(
dz
)};
}
inline
ROOT
::
Math
::
Translation3D
toLHCbLengthUnits
(
const
ROOT
::
Math
::
Translation3D
&
t
)
{
double
dx
{},
dy
{},
dz
{};
ROOT
::
Math
::
Translation3D
::
Scalar
dx
{},
dy
{},
dz
{};
t
.
GetComponents
(
dx
,
dy
,
dz
);
return
{
toLHCbLengthUnits
(
dx
),
toLHCbLengthUnits
(
dy
),
toLHCbLengthUnits
(
dz
)};
}
Loading