File tree 1 file changed +13
-5
lines changed
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 78
78
" detector = World(), # should be the default\n " ,
79
79
" generator = G4JLGunGenerator(), # should be the default\n " ,
80
80
" physics_type = FTFP_BERT\n " ,
81
- " )"
81
+ " ); "
82
82
]
83
83
},
84
84
{
94
94
{
95
95
"cell_type" : " code" ,
96
96
"execution_count" : null ,
97
- "metadata" : {},
97
+ "metadata" : {
98
+ "tags" : [
99
+ " scroll-output"
100
+ ]
101
+ },
98
102
"outputs" : [],
99
103
"source" : [
100
104
" DumpList(app.physics)"
131
135
" struct MyPhysicsList <: G4VUserPhysicsList\n " ,
132
136
" function MyPhysicsList(verbose)\n " ,
133
137
" 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 " ,
136
140
" return pl\n " ,
137
141
" end \n " ,
138
142
" end"
156
160
{
157
161
"cell_type" : " code" ,
158
162
"execution_count" : null ,
159
- "metadata" : {},
163
+ "metadata" : {
164
+ "tags" : [
165
+ " scroll-output"
166
+ ]
167
+ },
160
168
"outputs" : [],
161
169
"source" : [
162
170
" DumpList(app.physics)"
You can’t perform that action at this time.
0 commit comments