1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
#include "../benchmark/ArgParser.h"
#include "ShapeTester.h"
#include "VecGeom/volumes/Hype.h"
typedef vecgeom::SimpleHype Hype_t;
int main(int argc, char *argv[])
{
OPTION_INT(npoints, 10000);
OPTION_BOOL(debug, false);
OPTION_BOOL(stat, false);
using vecgeom::kPi;
auto hype = new Hype_t("test_VecGeomHype", 5., 20, kPi / 6, kPi / 3, 50);
hype->Print();
ShapeTester<vecgeom::VPlacedVolume> tester;
tester.setDebug(debug);
tester.setStat(stat);
tester.SetMaxPoints(npoints);
tester.SetTestBoundaryErrors(true);
#ifdef VECGEOM_FLOAT_PRECISION
tester.SetSolidTolerance(1.e-4);
tester.SetSolidFarAway(1.e4);
#endif
int errCode = tester.Run(hype);
std::cout << "Final Error count for Shape *** " << hype->GetName() << "*** = " << errCode << "\n";
std::cout << "=========================================================" << std::endl;
if (hype) delete hype;
return 0;
}
|