File indexing completed on 2025-01-18 09:14:37
0001 #include "DD4hep/DDTest.h"
0002
0003 #include "DD4hep/Shapes.h"
0004
0005 #include <exception>
0006 #include <iostream>
0007 #include <assert.h>
0008 #include <cmath>
0009
0010
0011 int main(int , char** ){
0012
0013
0014 dd4hep::DDTest test( "shapes" );
0015
0016 try{
0017
0018
0019
0020
0021
0022 dd4hep::Polycone polycone(0, 2*M_PI, {0, 0}, {1, 1}, {0, 1});
0023 polycone.addZPlanes({0}, {1}, {2});
0024
0025
0026 }
0027 catch( std::exception &e ){
0028 test.log( e.what() );
0029 test.error( "exception occurred" );
0030 }
0031 return 0;
0032 }
0033