Difference between revisions of "Solid run"

From Hall A Wiki
Jump to: navigation, search
Line 19: Line 19:
 
then run the command below in a terminal
 
then run the command below in a terminal
  
gemc -gcard=solid_BaBar_PVDIS.gcard -DBHOST=$GEMC_HOST -HALL_FIELD=solenoid_BaBar -HALL_MATERIAL=Vacuum -geometry=1000x1000 -BEAM_P="e-, 5.5*GeV, 28.5*deg, 0*deg" -SPREAD_P="5.5*GeV, 6.5*deg, 360*deg"
+
gemc -gcard=solid_BaBar_PVDIS.gcard -DBHOST=$GEMC_HOST -HALL_FIELD=solenoid_BaBar -HALL_MATERIAL=Vacuum -geometry=1000x1000 -BEAM_P="e-, 5.5*GeV, 28.5*deg, 0*deg" -SPREAD_P="5.5*GeV, 6.5*deg, 360*deg"
  
 
This is just an example of gemc running options. you can change it to whatever you want, but "keep -DBHOST=$GEMC_HOST unchanged to accommodate mysql server access."
 
This is just an example of gemc running options. you can change it to whatever you want, but "keep -DBHOST=$GEMC_HOST unchanged to accommodate mysql server access."

Revision as of 23:09, 16 May 2011

read Up2date GEMC info at http://gemc.jlab.org for installation and tutorial.

There are a couple way to run GEMC. You can always run it on ifarm for batch mode, but interactive mode will be slow because the OpenGL 3D rendering.

To run interactive mode, install it locally.

To install by rpm package, I recommend to used yum repo, if it somehow doesn't work, download them directly from http://www.jlab.org/12gev_phys/RPMS/

After install, get gcard file, set_solidGEMC and run_solidGEMC from svn "gcards/"

edit "set_solidGEMC", see instruction in the file

run "source set_solidGEMC" to setup environment.

(do ssh tunnel if you are not on jlab network, refer to Solid_mysql_database)

put a copy of solenoid_BaBar.dat or other maps at the default location /usr/local/jlab_software/geant4/data/ or anywhere defined by the FIELD_DIR option.

then run the command below in a terminal

gemc -gcard=solid_BaBar_PVDIS.gcard -DBHOST=$GEMC_HOST -HALL_FIELD=solenoid_BaBar -HALL_MATERIAL=Vacuum -geometry=1000x1000 -BEAM_P="e-, 5.5*GeV, 28.5*deg, 0*deg" -SPREAD_P="5.5*GeV, 6.5*deg, 360*deg"

This is just an example of gemc running options. you can change it to whatever you want, but "keep -DBHOST=$GEMC_HOST unchanged to accommodate mysql server access."

use -USE_QT=0 to run in batch mode

use option -geometry=1000x1000 to get larger screen instead of default 600x600

use -EXEC_MACRO=solid_slice.vis to see the cut-half plot. (The solid_slice.vis and other macros are not included with rpms, get them at svn "macros/")

for full options, use "gemc -help" to get a list or see gemc website