Skip to content

Commit

Permalink
scroll output
Browse files Browse the repository at this point in the history
  • Loading branch information
peremato committed Apr 11, 2024
1 parent a04df94 commit b70e3b3
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions tutorial/docs/04-physics-list.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
" detector = World(), # should be the default\n",
" generator = G4JLGunGenerator(), # should be the default\n",
" physics_type = FTFP_BERT\n",
")"
");"
]
},
{
Expand All @@ -94,7 +94,11 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"tags": [
"scroll-output"
]
},
"outputs": [],
"source": [
"DumpList(app.physics)"
Expand Down Expand Up @@ -131,8 +135,8 @@
"struct MyPhysicsList <: G4VUserPhysicsList\n",
" function MyPhysicsList(verbose)\n",
" pl = G4VModularPhysicsList()\n",
" RegisterPhysics(pl, move!(G4EmStandardPhysics(verbose)))\n",
" RegisterPhysics(pl, move!(G4OpticalPhysics(verbose)))\n",
" RegisterPhysics(pl, move!(G4EmStandardPhysics(verbose))) # make sure that the ownership is correctly transferred\n",
" RegisterPhysics(pl, move!(G4OpticalPhysics(verbose))) # by calling move!()\n",
" return pl\n",
" end \n",
"end"
Expand All @@ -156,7 +160,11 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"tags": [
"scroll-output"
]
},
"outputs": [],
"source": [
"DumpList(app.physics)"
Expand Down

0 comments on commit b70e3b3

Please sign in to comment.