For any question write to : phy.vijayraj@gmail.com
To initialize the project
/run/initialize # The first step for any project
For .mac
./virus macro.mac -i # Will execute the macro and then open interactive session
For materials list
/material/nist/listMaterials # List all materials
ls /material/nist # List all material available
/material/nist/printElementZ 1 # Retrieving information for a certain element
For axis
/vis/scene/add/axes 0 0 0 20 cm # 20 will be the new value for x,y,z
For visualization
/vis/open OGLSQt # Opens a graphic Qt window. /vis/drawVolume # Draw all volume /vis/scene/add/trajectories smooth # /vis/scene/endOfEventAction accumulate # /vis/viewer/zoomTo 5 #5 times zoom from the centre]
/vis/viewer/zoom 5
/vis/viewer/pan 5 0 m
/vis/viewer/panTo 5 0 m
For checking geometry is ok and well located
/tracking/verbose 1
/run/beamOn 1
For ParticleGun or fgun defined in PrimaryGeneratorAction
/gun/position 0 0 0 cm # position of the source will be centre]
/gun/position 10 0 0 cm # position of the source shift to positive x at 10 cm]
Help
help /vis/viewer/PutHereTheCommandName
Change UI choice
export G4UI_USE_TCSH=1 # Env. for TCSH window
./virus macro.mac -i # Without Qt (Not interactive)
unset G4UI_USE_TCSH # Set default or back on Qt window
run macro file
/control/execute file.mac