-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathedepsim-command.list
More file actions
9984 lines (6884 loc) · 239 KB
/
edepsim-command.list
File metadata and controls
9984 lines (6884 loc) · 239 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Command directory path : /
Sub-directories :
/control/ UI control commands.
/units/ Available units.
/particle/ Particle control commands.
/tracking/ TrackingManager and SteppingManager control commands.
/geometry/ Geometry control commands.
/process/ Process Table control commands.
/event/ EventManager control commands.
/cuts/ Commands for G4VUserPhysicsList.
/run/ Run control commands.
/random/ Random number status control commands.
/edep/ EDepSim detector control.
/Captain/ Control the world geometry.
/hits/ Sensitive detectors and Hits
/material/ Commands for materials
/physics_lists/ commands for physics list configuration.
/generator/ Control of the particle generator.
/gps/ General Particle Source control commands.
Commands :
Command directory path : /control/
Guidance :
UI control commands.
Sub-directories :
/control/cout/ Control cout/cerr for local thread.
/control/exception/ Managing number of G4Exception warning messages
Commands :
macroPath * Set macro search path with colon-separated list.
execute * Execute a macro file.
loop * Execute a macro file more than once.
foreach * Execute a macro file more than once.
suppressAbortion * Suppress the program abortion caused by G4Exception.
verbose * Applied command will also be shown on screen.
useDoublePrecision * Use double precision for printing out the current parameter value(s).
saveHistory * Store command history to a file.
stopSavingHistory * Stop saving history file.
alias * Set an alias.
unalias * Remove an alias.
listAlias * List aliases.
getEnv * Get a shell environment variable and define it as an alias.
getVal * Get the current value of the UI command and define it as an alias.
echo * Display the valuerameter string.
shell * Execute a (Unix) SHELL command.
manual * Display all of sub-directories and commands.
createHTML * Generate HTML files for all of sub-directories and commands.
maximumStoredHistory * Set maximum number of stored UI commands.
if * Execute a macro file if the expression is true.
doif * Execute a UI command if the expression is true.
add * Define a new alias as the sum of two values.
subtract * Define a new alias as the subtraction of two values.
multiply * Define a new alias as the multiplication of two values.
divide * Define a new alias as the division of two values.
remainder * Define a new alias as the remainder of two values.
strif * Execute a macro file if the expression is true.
strdoif * Execute a UI command if the expression is true.
ifBatch * Execute a macro file if program is running in batch mode.
ifInteractive * Execute a macro file if program is running in interactive mode.
doifBatch * Execute a UI command if program is running in batch mode.
doifInteractive * Execute a UI command if program is running in interactive mode.
recordToMacro * Record the following UI command(s) into a macro file instead of executing it/them.
endRecord * Stop recording to a macro
Command /control/macroPath
Guidance :
Set macro search path with colon-separated list.
Parameter : path
Parameter type : s
Omittable : False
Command /control/execute
Guidance :
Execute a macro file.
Parameter : fileName
Parameter type : s
Omittable : False
Command /control/loop
Guidance :
Execute a macro file more than once.
Loop counter can be used as an aliased variable.
Parameter : macroFile
Parameter type : s
Omittable : False
Parameter : counterName
Parameter type : s
Omittable : False
Parameter : initialValue
Parameter type : d
Omittable : False
Parameter : finalValue
Parameter type : d
Omittable : False
Parameter : stepSize
Parameter type : d
Omittable : True
Default value : 1
Command /control/foreach
Guidance :
Execute a macro file more than once.
Loop counter can be used as an aliased variable.
Values must be separated by a space.
Parameter : macroFile
Parameter type : s
Omittable : False
Parameter : counterName
Parameter type : s
Omittable : False
Parameter : valueList
Parameter type : s
Omittable : False
Command /control/suppressAbortion
Guidance :
Suppress the program abortion caused by G4Exception.
Suppression level = 0 : no suppression
= 1 : suppress during EventProc state
= 2 : full suppression, i.e. no abortion by G4Exception
When abortion is suppressed, you will get error messages issued by G4Exception,
and there is NO guarantee for the correct result after the G4Exception error message.
Range of parameters : level >= 0 && level <= 2
Parameter : level
Parameter type : i
Omittable : True
Default value : 0
Command /control/verbose
Guidance :
Applied command will also be shown on screen.
This command is useful with MACRO file.
0 : silent
1 : only the valid commands are shown.
2 : comment lines are also shown (default).
Range of parameters : switch >= 0 && switch <=2
Parameter : switch
Parameter type : i
Omittable : True
Default value : 2
Command /control/useDoublePrecision
Guidance :
Use double precision for printing out the current parameter value(s).
Parameter : useDoublePrecision
Parameter type : b
Omittable : True
Default value : 1
Command /control/saveHistory
Guidance :
Store command history to a file.
Defaul file name is G4history.macro.
Parameter : fileName
Parameter type : s
Omittable : True
Default value : G4History.macro
Command /control/stopSavingHistory
Guidance :
Stop saving history file.
Command /control/alias
Guidance :
Set an alias.
String can be aliased by this command.
The string may contain one or more spaces,
the string must be enclosed by double quotes (").
To use an alias, enclose the alias name with
parenthesis "{" and "}".
Parameter : aliasName
Parameter type : s
Omittable : False
Parameter : aliasValue
Parameter type : s
Omittable : False
Command /control/unalias
Guidance :
Remove an alias.
Parameter : aliasName
Parameter type : s
Omittable : False
Command /control/listAlias
Guidance :
List aliases.
Command /control/getEnv
Guidance :
Get a shell environment variable and define it as an alias.
Parameter :
Parameter type : s
Omittable : False
Command /control/getVal
Guidance :
Get the current value of the UI command and define it as an alias.
Command is ignored if the UI command does not support GetCurrentValue().
Syntax : <alias_name> <UI_command> <iIdx>
Parameter : alias_name
Parameter type : s
Omittable : False
Parameter : UI_command
Parameter type : s
Omittable : False
Parameter : iIdx
Parameter type : i
Omittable : True
Default value : 0
Command /control/echo
Guidance :
Display the valuerameter string.
If alias is contained, it is converted to the aliased value.
Parameter :
Parameter type : s
Omittable : False
Command /control/shell
Guidance :
Execute a (Unix) SHELL command.
Parameter :
Parameter type : s
Omittable : False
Command /control/manual
Guidance :
Display all of sub-directories and commands.
Directory path should be given by FULL-PATH.
Parameter : dirPath
Parameter type : s
Omittable : True
Default value : /
Command /control/createHTML
Guidance :
Generate HTML files for all of sub-directories and commands.
Directory path should be given by FULL-PATH.
Parameter : dirPath
Parameter type : s
Omittable : True
Default value : /
Command /control/maximumStoredHistory
Guidance :
Set maximum number of stored UI commands.
Parameter : max
Parameter type : i
Omittable : True
Default value : 20
Command /control/if
Guidance :
Execute a macro file if the expression is true.
Syntax : <double> <comp> <double> <macro_file>
Parameter : left
Parameter type : d
Omittable : False
Parameter : comp
Parameter type : s
Omittable : False
Candidates : > >= < <= == !=
Parameter : right
Parameter type : d
Omittable : False
Parameter : macroFile
Parameter type : s
Omittable : False
Command /control/doif
Guidance :
Execute a UI command if the expression is true.
Syntax : <double> <comp> <double> <UI_command>
Parameter : left
Parameter type : d
Omittable : False
Parameter : comp
Parameter type : s
Omittable : False
Candidates : > >= < <= == !=
Parameter : right
Parameter type : d
Omittable : False
Parameter : UI_command
Parameter type : s
Omittable : False
Command /control/add
Guidance :
Define a new alias as the sum of two values.
Syntax : <new_alias> <value1> <value2>
<new_alias> may be an already existing alias. If it is the case,
aliased value is alternated.
Parameter : new_alias
Parameter type : s
Omittable : False
Parameter : value1
Parameter type : d
Omittable : False
Parameter : value2
Parameter type : d
Omittable : False
Command /control/subtract
Guidance :
Define a new alias as the subtraction of two values.
Syntax : <new_alias> <value1> <value2>
<new_alias> may be an already existing alias. If it is the case,
aliased value is alternated.
Parameter : new_alias
Parameter type : s
Omittable : False
Parameter : value1
Parameter type : d
Omittable : False
Parameter : value2
Parameter type : d
Omittable : False
Command /control/multiply
Guidance :
Define a new alias as the multiplication of two values.
Syntax : <new_alias> <value1> <value2>
<new_alias> may be an already existing alias. If it is the case,
aliased value is alternated.
Parameter : new_alias
Parameter type : s
Omittable : False
Parameter : value1
Parameter type : d
Omittable : False
Parameter : value2
Parameter type : d
Omittable : False
Command /control/divide
Guidance :
Define a new alias as the division of two values.
Syntax : <new_alias> <value1> <value2>
<new_alias> may be an already existing alias. If it is the case,
aliased value is alternated.
Parameter : new_alias
Parameter type : s
Omittable : False
Parameter : value1
Parameter type : d
Omittable : False
Parameter : value2
Parameter type : d
Omittable : False
Parameter range : value2 != 0
Command /control/remainder
Guidance :
Define a new alias as the remainder of two values.
Syntax : <new_alias> <value1> <value2>
<new_alias> may be an already existing alias. If it is the case,
aliased value is alternated.
Parameter : new_alias
Parameter type : s
Omittable : False
Parameter : value1
Parameter type : i
Omittable : False
Parameter : value2
Parameter type : i
Omittable : False
Command /control/strif
Guidance :
Execute a macro file if the expression is true.
Syntax : <string> <comp> <string> <macro_file>
Parameter : left
Parameter type : s
Omittable : False
Parameter : comp
Parameter type : s
Omittable : False
Candidates : == !=
Parameter : right
Parameter type : s
Omittable : False
Parameter : macroFile
Parameter type : s
Omittable : False
Command /control/strdoif
Guidance :
Execute a UI command if the expression is true.
Syntax : <string> <comp> <string> <UI_command>
Parameter : left
Parameter type : s
Omittable : False
Parameter : comp
Parameter type : s
Omittable : False
Candidates : == !=
Parameter : right
Parameter type : s
Omittable : False
Parameter : UI_command
Parameter type : s
Omittable : False
Command /control/ifBatch
Guidance :
Execute a macro file if program is running in batch mode.
Parameter : macroFile
Parameter type : s
Omittable : False
Command /control/ifInteractive
Guidance :
Execute a macro file if program is running in interactive mode.
Parameter : macroFile
Parameter type : s
Omittable : False
Command /control/doifBatch
Guidance :
Execute a UI command if program is running in batch mode.
Parameter : UIcommand
Parameter type : s
Omittable : False
Command /control/doifInteractive
Guidance :
Execute a UI command if program is running in interactive mode.
Parameter : UIcommand
Parameter type : s
Omittable : False
Command /control/recordToMacro
Guidance :
Record the following UI command(s) into a macro file instead of executing it/them.
Recording lasts until a command "/control/endRecord" comes.
if <ifAppend> is set to true (default false), commands are appended to the existing file.
Parameter : fileName
Parameter type : s
Omittable : False
Parameter : ifAppend
Parameter type : b
Omittable : True
Default value : 0
Command /control/endRecord
Guidance :
Stop recording to a macro
Command directory path : /control/cout/
Guidance :
Control cout/cerr for local thread.
Sub-directories :
Commands :
setCoutFile * Send G4cout stream to a file dedicated to a thread.
setCerrFile * Send G4cerr stream to a file dedicated to a thread.
useBuffer * Send cout and/or cerr stream to a buffer.
prefixString * Set the prefix string for each cout/cerr line from a thread.
ignoreThreadsExcept * Omit cout from threads except the specified one.
ignoreInitializationCout * Omit cout from threads during initialization, as they should be identical to the master thread.
Command /control/cout/setCoutFile
Guidance :
Send G4cout stream to a file dedicated to a thread.
To have a display output, use special keyword "**Screen**".
If append flag is true output is appended to file,
otherwise file output is overwritten.
Parameter : fileName
Parameter type : s
Omittable : True
Default value : **Screen**
Parameter : append
Parameter type : b
Omittable : True
Default value : 1
Command /control/cout/setCerrFile
Guidance :
Send G4cerr stream to a file dedicated to a thread.
To have a display output, use special keyword "**Screen**".
If append flag is true output is appended to file,
otherwise file output is overwritten.
Parameter : fileName
Parameter type : s
Omittable : True
Default value : **Screen**
Parameter : append
Parameter type : b
Omittable : True
Default value : 1
Command /control/cout/useBuffer
Guidance :
Send cout and/or cerr stream to a buffer.
The buffered text will be printed at the end of the job
for each thread at a time, so that output of each thread is grouped.
This command has no effect if output goes to a file.
Parameter : flag
Parameter type : b
Omittable : True
Default value : 1
Command /control/cout/prefixString
Guidance :
Set the prefix string for each cout/cerr line from a thread.
Parameter : prefix
Parameter type : s
Omittable : True
Default value : G4WT
Command /control/cout/ignoreThreadsExcept
Guidance :
Omit cout from threads except the specified one.
This command takes effect only if cout destination is screen without buffering.
If specified thread ID is greater than the number of threads,
no cout is displayed from worker threads. -1 to reset.
This command does not affect to cerr.
Parameter : threadID
Parameter type : i
Omittable : True
Default value : 0
Command /control/cout/ignoreInitializationCout
Guidance :
Omit cout from threads during initialization, as they should be identical to the master thread.
This command takes effect only if cout destination is screen without buffering.
This command does not affect to cerr.
Parameter : IgnoreInit
Parameter type : b
Omittable : True
Default value : 1
Command directory path : /control/exception/
Guidance :
Managing number of G4Exception warning messages
Sub-directories :
Commands :
maxExceptionWarning * Set maximum number of G4Exception warning messages to be displayed
maxTotalExceptionWarning * Set total maximum number of G4Exception warning messages to be displayed.
Command /control/exception/maxExceptionWarning
Guidance :
Set maximum number of G4Exception warning messages to be displayed
for the specified error code.
Number of warnings is counted for each thread individually.
Once the number reaches to the maximum, the warning message of specified
error code won't be printed out any more.
Number is counted through the program execution if more than one run
are executed. Count can be reset with the same command.
If number is set to zero, warning message of the specified error code
won't be displayed at all.
Parameter : errorCode
Parameter type : s
Omittable : False
Parameter : maxNumber
Parameter type : i
Omittable : False
Parameter range : maxNumber >= 0
Command /control/exception/maxTotalExceptionWarning
Guidance :
Set total maximum number of G4Exception warning messages to be displayed.
Number of warnings is counted for each thread individually.
Once the number reaches to the maximum, warning messages won't be
printed out any more.
Number is counted through the program execution if more than one run
are executed. Count can be reset with the same command.
If number is set to zero, warning message won't be displayed at all.
Range of parameters : maxNumber >= 0
Parameter : maxNumber
Parameter type : i
Omittable : False
Command directory path : /units/
Guidance :
Available units.
Sub-directories :
Commands :
list * full list of available units.
Command /units/list
Guidance :
full list of available units.
Command directory path : /particle/
Guidance :
Particle control commands.
Sub-directories :
/particle/nuclideTable/ Nuclide table control commands.
/particle/property/ Particle Table control commands.
Commands :
select * Select particle
list * List name of particles.
find * Find particle by encoding
createAllIon * Create All ions (ground state)
createAllIsomer * Create All isomers
verbose * Set Verbose level of particle table.
Command /particle/select
Guidance :
Select particle
Parameter : particle name
Parameter type : s
Omittable : False
Default value : none
Command /particle/list
Guidance :
List name of particles.
all(default)/lepton/baryon/meson/nucleus/quarks
Parameter : particle type
Parameter type : s
Omittable : True
Default value : all
Candidates : all lepton baryon meson nucleus quarks
Command /particle/find
Guidance :
Find particle by encoding
Parameter : encoding
Parameter type : i
Omittable : False
Default value : 0
Command /particle/createAllIon
Guidance :
Create All ions (ground state)
Command /particle/createAllIsomer
Guidance :
Create All isomers
Command /particle/verbose
Guidance :
Set Verbose level of particle table.
0 : Silent (default)
1 : Display warning messages
2 : Display more
Range of parameters : verbose_level >=0
Parameter : verbose_level
Parameter type : i
Omittable : True
Default value : 0
Command directory path : /particle/nuclideTable/
Guidance :
Nuclide table control commands.
Sub-directories :
Commands :
min_halflife * Set threshold of half-life.
min_meanlife * Set threshold of mean life.
level_tolerance * Set tolerance in level searching.
Command /particle/nuclideTable/min_halflife
Guidance :
Set threshold of half-life.
Unit of the time can be :
s, ms, ns (default)
Range of parameters : halflife > 0.0
Parameter : life
Parameter type : d
Omittable : False
Default value : 0.693147
Parameter : Unit
Parameter type : s
Omittable : True
Default value : ns
Candidates : s ms us ns ps min h d y second millisecond microsecond nanosecond picosecond minute hour day year
Command /particle/nuclideTable/min_meanlife
Guidance :
Set threshold of mean life.
Unit of the time can be :
s, ms, ns (default)
Range of parameters : meanlife > 0.0
Parameter : life
Parameter type : d
Omittable : False
Default value : 1
Parameter : Unit
Parameter type : s
Omittable : True
Default value : ns
Candidates : s ms us ns ps min h d y second millisecond microsecond nanosecond picosecond minute hour day year
Command /particle/nuclideTable/level_tolerance
Guidance :
Set tolerance in level searching.
Unit of the energy can be :
MeV, keV, eV (default)
Range of parameters : lTolerance >0.0
Parameter : lTolerance
Parameter type : d
Omittable : False
Default value : 1
Parameter : Unit
Parameter type : s
Omittable : True
Default value : eV
Candidates : eV keV MeV GeV TeV PeV meV J electronvolt kiloelectronvolt megaelectronvolt gigaelectronvolt teraelectronvolt petaelectronvolt millielectronVolt joule
Command directory path : /particle/property/
Guidance :
Particle Table control commands.
Sub-directories :
/particle/property/decay/ Decay Table control commands.
Commands :
dump * Dump particle properties.
stable * Set stable flag.
lifetime * Set life time.
verbose * Set Verbose level of particle property.
Command /particle/property/dump
Guidance :
Dump particle properties.
Command /particle/property/stable
Guidance :
Set stable flag.
false: Unstable true: Stable
Parameter : stable
Parameter type : b
Omittable : False
Command /particle/property/lifetime
Guidance :
Set life time.
Unit of the time can be :
s, ms, ns (default)
Range of parameters : life >0.0
Parameter : life
Parameter type : d
Omittable : False
Default value : 0
Parameter : Unit
Parameter type : s
Omittable : True
Default value : ns
Candidates : s ms us ns ps min h d y second millisecond microsecond nanosecond picosecond minute hour day year
Command /particle/property/verbose
Guidance :
Set Verbose level of particle property.
0 : Silent (default)
1 : Display warning messages
2 : Display more
Range of parameters : verbose_level >=0
Parameter : verbose_level
Parameter type : i
Omittable : True
Default value : 0
Command directory path : /particle/property/decay/
Guidance :
Decay Table control commands.
Sub-directories :
Commands :
select * Enter index of decay mode.
dump * Dump decay mode information.
br * Set branching ratio. [0< BR <1.0]
Command /particle/property/decay/select
Guidance :
Enter index of decay mode.
Range of parameters : mode >=0
Parameter : mode
Parameter type : i
Omittable : True
Default value : 0
Command /particle/property/decay/dump
Guidance :
Dump decay mode information.
Command /particle/property/decay/br
Guidance :
Set branching ratio. [0< BR <1.0]
Range of parameters : (br >=0.0) && (br <=1.0)