Skip to content

Commit b70e3b3

Browse files
committed
scroll output
1 parent a04df94 commit b70e3b3

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

tutorial/docs/04-physics-list.ipynb

+13-5
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
" detector = World(), # should be the default\n",
7979
" generator = G4JLGunGenerator(), # should be the default\n",
8080
" physics_type = FTFP_BERT\n",
81-
")"
81+
");"
8282
]
8383
},
8484
{
@@ -94,7 +94,11 @@
9494
{
9595
"cell_type": "code",
9696
"execution_count": null,
97-
"metadata": {},
97+
"metadata": {
98+
"tags": [
99+
"scroll-output"
100+
]
101+
},
98102
"outputs": [],
99103
"source": [
100104
"DumpList(app.physics)"
@@ -131,8 +135,8 @@
131135
"struct MyPhysicsList <: G4VUserPhysicsList\n",
132136
" function MyPhysicsList(verbose)\n",
133137
" pl = G4VModularPhysicsList()\n",
134-
" RegisterPhysics(pl, move!(G4EmStandardPhysics(verbose)))\n",
135-
" RegisterPhysics(pl, move!(G4OpticalPhysics(verbose)))\n",
138+
" RegisterPhysics(pl, move!(G4EmStandardPhysics(verbose))) # make sure that the ownership is correctly transferred\n",
139+
" RegisterPhysics(pl, move!(G4OpticalPhysics(verbose))) # by calling move!()\n",
136140
" return pl\n",
137141
" end \n",
138142
"end"
@@ -156,7 +160,11 @@
156160
{
157161
"cell_type": "code",
158162
"execution_count": null,
159-
"metadata": {},
163+
"metadata": {
164+
"tags": [
165+
"scroll-output"
166+
]
167+
},
160168
"outputs": [],
161169
"source": [
162170
"DumpList(app.physics)"

0 commit comments

Comments
 (0)