Page MenuHomeHEPForge

Gastof_Geom.cpp
No OneTemporary

Gastof_Geom.cpp

#include "Gastof_Geom.h"
void Build_Geom()
{
// This element is the root of the "file" tree. (don't change this line)
FROG_Element_Base* prim = new FROG_Element_Base(C_PRIMARY);
FROG_Element_Base* mygeom = new FROG_Element_Base(C_GEOMETRY);
prim->addDaughter(mygeom);
FROG_Element_Base_With_DetId_And_Name* detector = new FROG_Element_Base_With_DetId_And_Name(9000000,"Gastof");
mygeom->addDaughter(detector);
FROG_Element_Base_With_DetId_And_Name* box = new FROG_Element_Base_With_DetId_And_Name(9200000,"Box");
detector->addDaughter(box);
FROG_Element_Base_With_DetId_And_Name* phototube = new FROG_Element_Base_With_DetId_And_Name(9100000,"PhotoTube");
detector->addDaughter(phototube);
unsigned int DetIdCount = 1;
FROG_Element_Primitive_Cube* wall = new FROG_Element_Primitive_Cube(9200000+DetIdCount*1000,
15,18.5,-178,15,0,0,0,18.5,0,0,0,178);
box->addDaughter(wall);
DetIdCount++;
FROG_Element_Primitive_Rectangle* outdoor = new FROG_Element_Primitive_Rectangle(9200000+DetIdCount*1000,
15,0,-317.5,12.5,0,0,0,0,12.5);
box->addDaughter(outdoor);
DetIdCount++;
FROG_Element_Primitive_PartialSphere* mirror = new FROG_Element_Primitive_PartialSphere(9200000+DetIdCount*1000,
100,15,-52.2107,-246.789,0.549319,0.967807,-0.159003,0.159003,200,200,90);
box->addDaughter(mirror);
DetIdCount++;
FROG_Element_Primitive_Disc* cathode = new FROG_Element_Primitive_Disc(9100000+DetIdCount*1000,
5.5,15,-40.71,-317.5,0,1,0,50);
phototube->addDaughter(cathode);
DetIdCount++;
FROG_Geometry* CustomGeom = new FROG_Geometry(prim);
CustomGeom->Save("Gastof.geom");
FROG_ELEMENT::PrintTree(prim);
return;
}

File Metadata

Mime Type
text/x-c
Expires
Wed, May 14, 11:45 AM (10 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5053278
Default Alt Text
Gastof_Geom.cpp (1 KB)

Event Timeline