Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
calypso
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
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
Di Wang
calypso
Commits
4fbb7075
Commit
4fbb7075
authored
4 years ago
by
Dave Casper
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Merge branch 'master' of
https://gitlab.cern.ch:8443/faser/calypso
"
This reverts commit
4c9e84aa
parent
d89ba2c7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Tracker/TrackerRecTools/FaserSiSpacePointTool/src/TrackerSpacePointMakerTool.cxx
+11
-15
11 additions, 15 deletions
.../FaserSiSpacePointTool/src/TrackerSpacePointMakerTool.cxx
with
11 additions
and
15 deletions
Tracker/TrackerRecTools/FaserSiSpacePointTool/src/TrackerSpacePointMakerTool.cxx
+
11
−
15
View file @
4fbb7075
...
@@ -112,30 +112,26 @@ Trk::SpacePoint* TrackerSpacePointMakerTool::makeSCT_SpacePoint(const Tracker::T
...
@@ -112,30 +112,26 @@ Trk::SpacePoint* TrackerSpacePointMakerTool::makeSCT_SpacePoint(const Tracker::T
Amg
::
Vector3D
s
(
a
+
b
);
Amg
::
Vector3D
s
(
a
+
b
);
Amg
::
Vector3D
t
(
c
+
d
);
Amg
::
Vector3D
t
(
c
+
d
);
double
lambda0
=
r
.
cross
(
Amg
::
Vector3D
(
s
-
t
)).
z
()
/
det
;
double
lambda0
=
r
.
cross
(
Amg
::
Vector3D
(
s
-
t
)).
z
()
/
det
;
double
lambda1
=
q
.
cross
(
Amg
::
Vector3D
(
s
-
t
)).
z
()
/
det
;
point
=
(
s
+
lambda0
*
q
)
/
2
;
point
=
(
s
+
lambda0
*
q
)
/
2
;
ATH_MSG_VERBOSE
(
"Endpoints 1 : ( "
<<
a
.
x
()
<<
" , "
<<
a
.
y
()
<<
" , "
<<
a
.
z
()
<<
" ) to ("
<<
b
.
x
()
<<
" , "
<<
b
.
y
()
<<
" , "
<<
b
.
z
()
<<
" ) "
);
ATH_MSG_VERBOSE
(
"Endpoints 1 : ( "
<<
a
.
x
()
<<
" , "
<<
a
.
y
()
<<
" , "
<<
a
.
z
()
<<
" ) to ("
<<
b
.
x
()
<<
" , "
<<
b
.
y
()
<<
" , "
<<
b
.
z
()
<<
" ) "
);
ATH_MSG_VERBOSE
(
"Endpoints 2 : ( "
<<
c
.
x
()
<<
" , "
<<
c
.
y
()
<<
" , "
<<
c
.
z
()
<<
" ) to ("
<<
d
.
x
()
<<
" , "
<<
d
.
y
()
<<
" , "
<<
d
.
z
()
<<
" ) "
);
ATH_MSG_VERBOSE
(
"Endpoints 2 : ( "
<<
c
.
x
()
<<
" , "
<<
c
.
y
()
<<
" , "
<<
c
.
z
()
<<
" ) to ("
<<
d
.
x
()
<<
" , "
<<
d
.
y
()
<<
" , "
<<
d
.
z
()
<<
" ) "
);
ATH_MSG_VERBOSE
(
"Intersection: ( "
<<
point
.
x
()
<<
" , "
<<
point
.
y
()
<<
" , "
<<
point
.
z
()
<<
" ) "
);
ATH_MSG_VERBOSE
(
"Intersection: ( "
<<
point
.
x
()
<<
" , "
<<
point
.
y
()
<<
" , "
<<
point
.
z
()
<<
" ) "
);
// require that the point is within the bounds of at least one of the two strips
if
(
fabs
(
lambda0
)
>
1
+
m_stripLengthTolerance
)
{
if
(
fabs
(
lambda1
)
>
1
+
m_stripLengthTolerance
)
{
ATH_MSG_WARNING
(
"Intersection lies outside the bounds of both strips"
);
ok
=
false
;
}
}
}
}
else
else
{
{
ATH_MSG_WARNING
(
"
Alt
Intersection failed"
);
ATH_MSG_WARNING
(
"Intersection failed"
);
ok
=
false
;
ok
=
false
;
}
}
// Amg::Vector3D mab(c - a);
// double eaTeb = q.dot(r);
// double denom = 1. - eaTeb*eaTeb;
// if (fabs(denom)>10e-7){
// double lambda0 = (mab.dot(q) - mab.dot(r)*eaTeb)/denom;
// point = a+lambda0*q;
// ATH_MSG_VERBOSE( "Endpoints 1 : ( " << a.x() << " , " << a.y() << " , " << a.z() << " ) to (" << b.x() << " , " << b.y() << " , " << b.z() << " ) " );
// ATH_MSG_VERBOSE( "Endpoints 2 : ( " << c.x() << " , " << c.y() << " , " << c.z() << " ) to (" << d.x() << " , " << d.y() << " , " << d.z() << " ) " );
// ATH_MSG_VERBOSE( "Intersection: ( " << point.x() << " , " << point.y() << " , " << point.z() << " ) " );
// } else {
// ATH_MSG_WARNING("Intersection failed");
// ok = false;
// }
}
else
{
}
else
{
Amg
::
Vector3D
s
(
a
+
b
-
2.
*
vertexVec
);
// twice the vector from vertex to midpoint
Amg
::
Vector3D
s
(
a
+
b
-
2.
*
vertexVec
);
// twice the vector from vertex to midpoint
Amg
::
Vector3D
t
(
c
+
d
-
2.
*
vertexVec
);
// twice the vector from vertex to midpoint
Amg
::
Vector3D
t
(
c
+
d
-
2.
*
vertexVec
);
// twice the vector from vertex to midpoint
...
...
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