Difference between revisions of "SoLID Software Detector Simulation"

From Hall A Wiki
Jump to: navigation, search
(New page: = general info = SoLID detector simulation is based on Geant4 based simulation framework '''GEMC''' http://gemc.jlab.org "solid_gemc" under SoLID repository https://jlabsvn.jlab.org/svnr...)
 
(on ifarm with official installation of framework and SoLID repository (demonstration))
Line 19: Line 19:
 
  login into ifarm with your account
 
  login into ifarm with your account
 
  source /home/zwzhao/solid/solid_svn/solid/set_solid
 
  source /home/zwzhao/solid/solid_svn/solid/set_solid
 +
cd $SoLID_GEMC/field
 +
wget http://hallaweb.jlab.org/12GeV/SoLID/download/field/gemc2/solenoid_CLEOv8.dat
 
  cd $SoLID_GEMC/script
 
  cd $SoLID_GEMC/script
 
  gemc solid_CLEO_PVDIS.gcard or  gemc solid_CLEO_PVDIS_simple.gcard
 
  gemc solid_CLEO_PVDIS.gcard or  gemc solid_CLEO_PVDIS_simple.gcard

Revision as of 18:53, 5 June 2014

general info

SoLID detector simulation is based on Geant4 based simulation framework GEMC http://gemc.jlab.org

"solid_gemc" under SoLID repository https://jlabsvn.jlab.org/svnroot/solid/solid_gemc2 has files for SoLID detector configuration, field, scripts etc.

You need both GEMC and solid_gemc to do SoLID detector simulation, refer to the installation section

quick start

If you have any problem, remove or disable your auto env setup script like .csh and .login to and login a fresh terminal to try

The example below demonstrates how the simulation program work at various environment setting.

on ifarm with official installation of framework and SoLID repository (demonstration)

The fastest way to see what the simulation look like. You don't need to install any thing, but you can't modify anything either.

login into ifarm with your account
source /home/zwzhao/solid/solid_svn/solid/set_solid
cd $SoLID_GEMC/field
wget http://hallaweb.jlab.org/12GeV/SoLID/download/field/gemc2/solenoid_CLEOv8.dat
cd $SoLID_GEMC/script
gemc solid_CLEO_PVDIS.gcard or  gemc solid_CLEO_PVDIS_simple.gcard
gemc solid_CLEO_SIDIS_He3.gcard or  gemc solid_CLEO_SIDIS_He3_simple.gcard
You should see SoLID detector in graphic mode, click "Beam On" button to see beams

on ifarm with official installation of framework and your SoLID repository (recommended)

You don't need to install the framework, you can modify simulation configuration. This is the best way to run simulation on ifarm and farm nodes. This is recommend way to compare result and produce results.

cd your_choice_of_solid_repo_path
svn co https://jlabsvn.jlab.org/svnroot/solid
cd solid
edit file set_solid by following the instruction within, you only need to change SoLID_GEMC
source set_solid
cd $SoLID_GEMC/script
gemc solid_CLEO_PVDIS.gcard or  gemc solid_CLEO_PVDIS_simple.gcard
gemc solid_CLEO_SIDIS_He3.gcard or  gemc solid_CLEO_SIDIS_He3_simple.gcard
You should see SoLID detector in graphic mode, click "Beam On" button to see beams

on any machine with your installation of framework and your SoLID repository

This gives you maximum freedom to use any version of framework and ability to work on your local machine, And allow you to modify anything. This is the way to run on your local machine.

install the framework by following installation instruction
cd your_choice_of_solid_repo_path
svn co https://jlabsvn.jlab.org/svnroot/solid
cd solid
edit file set_solid by following the instruction within
source set_solid
cd $SoLID_GEMC/script
gemc solid_CLEO_PVDIS.gcard or  gemc solid_CLEO_PVDIS_simple.gcard
gemc solid_CLEO_SIDIS_He3.gcard or  gemc solid_CLEO_SIDIS_He3_simple.gcard
You should see SoLID detector in graphic mode, click "Beam On" button to see beams