Explore processes defined for proton, e-, e+, gamma
particles via UI commands and add these commands in run.mac
.
* Hint: See the commands /particle/select
and /particle/process/*
Add a command line option to select any Geant4 physics list using G4PhysListFactory
class when starting the example application, for example:
./exampleED -p FTFP_BERT_EMV
main()
function. See the documentation for the basic example B4 , where use of a similar code is described in the section “How to run”.Check availability of the physics list via G4bool IsReferencePhysList(const G4String& physListName);
Inspect the implementation of a command using G4GenericMessenger
in the EventAction
class, execute the command to inactivate verbose mode and run a new event
Implement a command to activate or inactivate the randomizing of the particle direction in the primary generator action using G4GenericMessenger
in an analogous way as the command in EventAction
G4GenericMessenger
object in PrimaryGeneratorAction
DeclareProperty
method to create setRandomize
command associated with already existing data member fRandomize
of a G4bool
typeAdd a menu in GUI using the command line interface
Theta/Phi (0,0)
and (90,0)