Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review 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
atlas
athena
Merge requests
!71393
Modify NSWClusterUtils to get local directions given a surface
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Modify NSWClusterUtils to get local directions given a surface
pscholer/athena:modifyNswClusterUtils
into
24.0
Overview
9
Commits
2
Pipelines
2
Changes
1
Merged
Patrick Scholer
requested to merge
pscholer/athena:modifyNswClusterUtils
into
24.0
1 year ago
Overview
9
Commits
2
Pipelines
2
Changes
1
Expand
breaking out some changes from
!71353 (merged)
to understand what causes the tier0 output changes
0
0
Merge request reports
Compare
24.0
version 1
05e11bc8
1 year ago
24.0 (base)
and
latest version
latest version
7ef03a3f
2 commits,
1 year ago
version 1
05e11bc8
1 commit,
1 year ago
1 file
+
6
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonPrepRawData/MuonPrepRawData/NswClusteringUtils.h
+
6
−
2
Options
@@ -5,6 +5,7 @@
#define MUONPREPRAWDATA_NSWCLUSTERING_UTILS_H
#include
"MuonPrepRawData/MuonCluster.h"
#include
"TrkSurfaces/Surface.h"
/**
* Small helper functions to define a not neccessarily right-handed coordinate system which is
@@ -17,11 +18,14 @@ namespace Muon {
/// x-axis : Parallell to the radial direction of the detector centre
/// y-axis : Pependicular to the x-axis in the transverse plane
/// z-axis : Points to the big wheel
inline
Amg
::
Vector3D
toLocal
(
const
MuonCluster
&
prd
,
const
Amg
::
Vector3D
&
dir
){
Amg
::
Rotation3D
rotMat
{
prd
.
detectorElement
()
->
surface
(
prd
.
identify
())
.
transform
().
inverse
().
linear
()};
inline
Amg
::
Vector3D
toLocal
(
const
Trk
::
Surface
&
surf
,
const
Amg
::
Vector3D
&
dir
){
Amg
::
Rotation3D
rotMat
{
surf
.
transform
().
inverse
().
linear
()};
const
Amg
::
Vector3D
rotDir
=
rotMat
*
dir
;
return
Amg
::
Vector3D
{
rotDir
.
x
(),
rotDir
.
y
(),
std
::
abs
(
rotDir
.
z
())};
}
inline
Amg
::
Vector3D
toLocal
(
const
MuonCluster
&
prd
,
const
Amg
::
Vector3D
&
dir
){
return
toLocal
(
prd
.
detectorElement
()
->
surface
(
prd
.
identify
()),
dir
);
}
inline
Amg
::
Vector3D
toLocal
(
const
MuonCluster
&
prd
)
{
return
toLocal
(
prd
,
prd
.
globalPosition
().
unit
());
}
Loading