Skip to content
Snippets Groups Projects
Commit 74a4078b authored by Frank Gaede's avatar Frank Gaede
Browse files

removed surface test w/ shifted point

parent 1efc2cd8
No related branches found
No related tags found
No related merge requests found
...@@ -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 ================================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment