Skip to content
Snippets Groups Projects
Commit 00a5a247 authored by Riccardo Maria Bianchi's avatar Riccardo Maria Bianchi :sunny: Committed by Johannes Junggeburth
Browse files

Add GeoPcon to the test exec

parent b340b6da
No related branches found
No related tags found
1 merge request!327New schema for the GeoModel SQLite database and updated I/O
......@@ -16,6 +16,7 @@
#include "GeoModelKernel/GeoMaterial.h"
#include "GeoModelKernel/GeoBox.h"
#include "GeoModelKernel/GeoTube.h"
#include "GeoModelKernel/GeoPcon.h"
#include "GeoModelKernel/GeoLogVol.h"
#include "GeoModelKernel/GeoNameTag.h"
#include "GeoModelKernel/GeoPhysVol.h"
......@@ -201,6 +202,23 @@ int main(int argc, char *argv[])
toyPhys->add(s2);
// GeoPcon* pcon
GeoPcon* sPcon = new GeoPcon(0, 360*SYSTEM_OF_UNITS::deg);
sPcon->addPlane(1*SYSTEM_OF_UNITS::m,1,5);
sPcon->addPlane(2*SYSTEM_OF_UNITS::m,2,3);
// for (unsigned int i=0; i<fwdEntry.size(); i++) {
// double z = fwdEntry[i].z();
// double r = fwdEntry[i].r();
// pcone->addPlane(z,0,r);
// }
GeoLogVol* lPcon = new GeoLogVol("pcon", sPcon, steel);
GeoPhysVol* pPcon = new GeoPhysVol(lPcon);
GeoNameTag* nPcon = new GeoNameTag("PCON");
toyPhys->add(nPcon);
toyPhys->add(pPcon);
//------------------------------------------------------------------------------------//
// Writing the geometry to file
......
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