Skip to content
Snippets Groups Projects
Commit 91d3e325 authored by Riccardo Maria Bianchi's avatar Riccardo Maria Bianchi :sunny:
Browse files

Fix example Torus

parent 8eb4f731
No related branches found
No related tags found
1 merge request!332Move R4 shapes to the new DB schema and I/O
Pipeline #7644675 failed
...@@ -451,7 +451,7 @@ int main(int argc, char *argv[]) ...@@ -451,7 +451,7 @@ int main(int argc, char *argv[])
// Add a test "Torus" shape node // Add a test "Torus" shape node
const GeoTorus* sTorus = new GeoTorus(2*SYSTEM_OF_UNITS::m, 1*SYSTEM_OF_UNITS::m, 10*SYSTEM_OF_UNITS::m, 0*SYSTEM_OF_UNITS::rad, (270*SYSTEM_OF_UNITS::degree)*(SYSTEM_OF_UNITS::rad/SYSTEM_OF_UNITS::degree)); const GeoTorus* sTorus = new GeoTorus(2*SYSTEM_OF_UNITS::m, 1*SYSTEM_OF_UNITS::m, 10*SYSTEM_OF_UNITS::m, 0*SYSTEM_OF_UNITS::rad, 4.5*SYSTEM_OF_UNITS::rad);
const GeoLogVol* lTorus = new GeoLogVol("Torus", sTorus, steel); const GeoLogVol* lTorus = new GeoLogVol("Torus", sTorus, steel);
GeoPhysVol* pTorus = new GeoPhysVol(lTorus); GeoPhysVol* pTorus = new GeoPhysVol(lTorus);
GeoNameTag* nTorus = new GeoNameTag("Shape-Torus"); GeoNameTag* nTorus = new GeoNameTag("Shape-Torus");
......
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