File: VisualizeTrap.cpp

package info (click to toggle)
vecgeom 1.2.8%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 24,016 kB
  • sloc: cpp: 88,803; ansic: 6,888; python: 1,035; sh: 582; sql: 538; makefile: 23
file content (16 lines) | stat: -rw-r--r-- 362 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "VecGeomTest/ShapeDebugger.h"
#include "VecGeom/volumes/Trapezoid.h"

using namespace vecgeom;

int main()
{

  SimpleTrapezoid trap("Trapezoid Visualizer", 2, 0, 0, 4, 3., 5., 0, 6, 4.5, 7.5, 0);
  ShapeDebugger debugger(&trap);

  debugger.ShowCorrectResults(true);
  debugger.CompareDistanceToOutToROOT(Vector3D<Precision>(10, 8, 4));

  return 0;
}