Skip to content

Commit 5671ce7

Browse files
committed
Completed the set of notebooks
1 parent c3fef11 commit 5671ce7

14 files changed

+2087
-86
lines changed

Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[deps]
22
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
3+
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
34
FHist = "68837c9b-b678-4cd5-9925-8a54edc8f695"
45
Geant4 = "559df036-b7a0-42fd-85df-7d5dd9d70f44"
56
GeometryBasics = "5c1252a2-5f33-56bf-86c9-59e7332b4326"

tutorial/docs/02-wrapped-classes.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"cell_type": "markdown",
8080
"metadata": {},
8181
"source": [
82-
"The type hierarchy is a follows:\n",
82+
"The type hierarchy is as follows:\n",
8383
"```\n",
8484
" +-------+\n",
8585
" | Any |\n",
@@ -422,7 +422,7 @@
422422
"box1 = box2 = zeros(1000)\n",
423423
"GC.gc()\n",
424424
"@show GetCubicVolume(union) # G4BooleanSolid cashes the volume\n",
425-
"@show DistanceToIn(union, G4ThreeVector(10,10,10)); # this will probabluy crash the program"
425+
"@show DistanceToIn(union, G4ThreeVector(10,10,10)); # now this will not crash the program"
426426
]
427427
}
428428
],

tutorial/docs/04-physics-list.ipynb

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -51,34 +51,9 @@
5151
"metadata": {},
5252
"outputs": [],
5353
"source": [
54-
"#---The next will be hidden in new versions-------------------------\n",
55-
"# create a empty world filled with vacumm\n",
56-
"struct World <: G4JLDetector end\n",
57-
"using Geant4.PhysicalConstants: universe_mean_density\n",
58-
"using Geant4.SystemOfUnits: g, mole, kelvin, pascal\n",
59-
"function bigbang(::World)\n",
60-
" vacuum = G4Material(\"Vacuum\", z=1., a=1.01g/mole, density=universe_mean_density, state=kStateGas, \n",
61-
" temperature=2.73*kelvin, pressure=3.e-18*pascal)\n",
62-
" G4PVPlacement(nothing, G4ThreeVector(),\n",
63-
" G4LogicalVolume(G4Box(\"world\", 1000,1000,1000), move!(vacuum), \"World\"),\n",
64-
" \"World\", nothing, false, 0, false)\n",
65-
"end \n",
66-
"Geant4.getConstructor(::World) = bigbang\n",
67-
"#---end-------------------------------------------------------------"
68-
]
69-
},
70-
{
71-
"cell_type": "code",
72-
"execution_count": null,
73-
"metadata": {},
74-
"outputs": [],
75-
"source": [
76-
"\n",
7754
"app = G4JLApplication(\n",
78-
" detector = World(), # should be the default\n",
79-
" generator = G4JLGunGenerator(), # should be the default\n",
8055
" physics_type = FTFP_BERT\n",
81-
");"
56+
")"
8257
]
8358
},
8459
{
@@ -120,10 +95,8 @@
12095
"metadata": {},
12196
"outputs": [],
12297
"source": [
123-
"ui`/run/verbose 1`\n",
124-
"app = nothing\n",
125-
"GC.gc()\n",
126-
"G4RunManager!GetRunManager()"
98+
"ui`/control/verbose 1`\n",
99+
"ui`/run/verbose 1`"
127100
]
128101
},
129102
{
@@ -149,9 +122,8 @@
149122
"outputs": [],
150123
"source": [
151124
"app = G4JLApplication(\n",
152-
" detector = World(), # should be the default\n",
153-
" generator = G4JLGunGenerator(), # should be the default\n",
154125
" physics_type = MyPhysicsList,\n",
126+
" verbose=1,\n",
155127
")\n",
156128
"configure(app)\n",
157129
"initialize(app)"

0 commit comments

Comments
 (0)