Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
31238dd3
Commit
31238dd3
authored
Nov 26, 2021
by
Simon Spannagel
Browse files
AnalysisDUT: calculate residual in local coordinates
This fixes
#155
parent
2db58de7
Pipeline
#3288439
passed with stages
in 15 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/modules/AnalysisDUT/AnalysisDUT.cpp
View file @
31238dd3
...
@@ -722,10 +722,11 @@ StatusCode AnalysisDUT::run(const std::shared_ptr<Clipboard>& clipboard) {
...
@@ -722,10 +722,11 @@ StatusCode AnalysisDUT::run(const std::shared_ptr<Clipboard>& clipboard) {
has_associated_cluster
=
true
;
has_associated_cluster
=
true
;
hTrackZPosDUT
->
Fill
(
track
->
getState
(
m_detector
->
getName
()).
z
());
hTrackZPosDUT
->
Fill
(
track
->
getState
(
m_detector
->
getName
()).
z
());
// Check distance between track and cluster
ROOT
::
Math
::
XYZPoint
intercept
=
track
->
getIntercept
(
assoc_cluster
->
global
().
z
());
// Check distance between track and cluster in local coordinates
double
xdistance
=
intercept
.
X
()
-
assoc_cluster
->
global
().
x
();
ROOT
::
Math
::
XYZPoint
intercept
=
m_detector
->
getLocalIntercept
(
track
.
get
());
double
ydistance
=
intercept
.
Y
()
-
assoc_cluster
->
global
().
y
();
double
xdistance
=
intercept
.
X
()
-
assoc_cluster
->
local
().
x
();
double
ydistance
=
intercept
.
Y
()
-
assoc_cluster
->
local
().
y
();
double
xdistance_um
=
xdistance
*
1000.
;
double
xdistance_um
=
xdistance
*
1000.
;
double
ydistance_um
=
ydistance
*
1000.
;
double
ydistance_um
=
ydistance
*
1000.
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment