Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:26:15

0001 /*
0002  * ResultComparator.h
0003  *
0004  *  Created on: Nov 27, 2014
0005  *      Author: swenzel
0006  */
0007 
0008 #ifndef VECGEOM_RESULTCOMPARATOR_H_
0009 #define VECGEOM_RESULTCOMPARATOR_H_
0010 
0011 #include "VecGeom/volumes/PlacedVolume.h"
0012 #include "VecGeom/base/Global.h"
0013 
0014 namespace vecgeom {
0015 
0016 inline namespace VECGEOM_IMPL_NAMESPACE {
0017 
0018 // utility functions to compare distance results against ROOT/Geant4/ etc.
0019 // they are mainly used by VecGeom shapes to detect discrepances to other libraries on the fly
0020 namespace DistanceComparator {
0021 
0022 void CompareUnplacedContains(VPlacedVolume const *vol, bool vecgeomresult, Vector3D<Precision> const &point);
0023 void PrintPointInformation(VPlacedVolume const *vol, Vector3D<Precision> const &point);
0024 void CompareDistanceToIn(VPlacedVolume const *vol, Precision vecgeomresult, Vector3D<Precision> const &point,
0025                          Vector3D<Precision> const &direction, Precision const stepMax = VECGEOM_NAMESPACE::kInfLength);
0026 void CompareDistanceToOut(VPlacedVolume const *vol, Precision vecgeomresult, Vector3D<Precision> const &point,
0027                           Vector3D<Precision> const &direction,
0028                           Precision const stepMax = VECGEOM_NAMESPACE::kInfLength);
0029 
0030 } // end inner namespace
0031 }
0032 } // end namespace
0033 
0034 #endif // VECGEOM_RESULTCOMPARATOR_H_