Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F11221936
DelphesToFrog_Geom.cpp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
DelphesToFrog_Geom.cpp
View Options
#include
"DelphesToFrog_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
,
"DelphesToFrog"
);
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
(
"DelphesToFrog.geom"
);
FROG_ELEMENT
::
PrintTree
(
prim
);
return
;
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Wed, May 14, 11:08 AM (20 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5064034
Default Alt Text
DelphesToFrog_Geom.cpp (1 KB)
Attached To
rFROGSVN frogsvn
Event Timeline
Log In to Comment