Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
74a4078b
Commit
74a4078b
authored
9 years ago
by
Frank Gaede
Browse files
Options
Downloads
Patches
Plain Diff
removed surface test w/ shifted point
parent
1efc2cd8
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
UtilityApps/src/test_surfaces.cpp
+15
-13
15 additions, 13 deletions
UtilityApps/src/test_surfaces.cpp
with
15 additions
and
13 deletions
UtilityApps/src/test_surfaces.cpp
+
15
−
13
View file @
74a4078b
...
@@ -174,23 +174,25 @@ int main(int argc, char** argv ){
...
@@ -174,23 +174,25 @@ int main(int argc, char** argv ){
}
}
// ====== test that slightly moved hit points are inside their surface ================================
// ====== test that slightly moved hit points are inside their surface ================================
// this test does not make too much sense, depending on the position of the surface within the volume
Vector3D
point2
=
point
+
1e-5
*
surf
->
normal
()
;
//
Vector3D point2 = point + 1e-5 * surf->normal() ;
sst
.
str
(
""
)
;
//
sst.str("") ;
sst
<<
" point2 "
<<
point2
<<
" is on surface "
;
//
sst << " point2 " << point2 << " is on surface " ;
isInside
=
surf
->
insideBounds
(
point2
)
;
//
isInside = surf->insideBounds( point2 ) ;
test
(
isInside
,
true
,
sst
.
str
()
)
;
//
test( isInside , true , sst.str() ) ;
if
(
!
isInside
)
{
//
if( ! isInside ) {
std
::
cout
<<
" found surface "
<<
*
surf
<<
std
::
endl
//
std::cout << " found surface " << *surf << std::endl
<<
" id : "
<<
idDecoder
.
valueString
()
//
<< " id : " << idDecoder.valueString()
<<
" point : "
<<
point
//
<< " point : " << point
<<
" is inside : "
<<
isInside
//
<< " is inside : " << isInside
<<
" distance from surface : "
<<
dist
/
dd4hep
::
mm
<<
std
::
endl
//
<< " distance from surface : " << dist/dd4hep::mm << std::endl
<<
std
::
endl
;
//
<< std::endl ;
}
//
}
// ====== test that moved hit points are outside their surface ================================
// ====== test that moved hit points are outside their surface ================================
...
...
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