Difference between revisions of "Solid install"
(→GEMC) |
|||
Line 23: | Line 23: | ||
You have two choices | You have two choices | ||
− | * Use the pre-compiled version on ifarm machines, see [https:// | + | * Use the pre-compiled version on ifarm machines, see quick start here [https://hallaweb.jlab.org/wiki/index.php/Solid_sim_geant4#on_ifarm_using_pre-compiled_GEMC_instllation]. It's easy to running batch mode in a terminal or submit a job to farm. For interactive mode, due to the OpenGL 3D rendering, it's too slow to run if you ssh in and do X11 forward to your local machine. The solution is to run vncserver with X window on ifarm and connect to it remote, this way it's not too slow if your network speed is ok. But this's not recommend because it demands more resources from ifarm which is shared by many users. |
− | * Use your local copy. You will have the full power for the interactive mode and you can choose what version of GEMC to use. Please use 64 bit system, don't use 32 bit system, as it's not future proof and jlab farm has gone to 64 bit Linux system already. | + | * Use your local copy. You will have the full power for the interactive mode and you can choose what version of GEMC to use. Please use 64 bit system, don't use 32 bit system, as it's not future proof and jlab farm has gone to 64 bit Linux system already. The general GEMC installation instruction is here [https://gemc.jlab.org/gemc/Support/Entries/2011/8/1_Step_by_Step.html], The default GEMC version will be installed this way. To use the production version for SoLID, please follow the instruction below to install it, then refer to here [https://hallaweb.jlab.org/wiki/index.php/Solid_sim_geant4#on_any_machine_using_a_local_GEMC_installation] to test your installation |
− | + | ''' this installs the GEMC version 1.8 with GEANT4.9.6.p01, tested on ifarm (CentOS6.2_x64) on 2013/7/30''' | |
− | + | setenv JLAB_ROOT DirOfYourChoice | |
− | + | cd $JLAB_ROOT | |
− | + | svn co https://clas12svn.jlab.org/repos/users/ungaro/repository/sourcebuild | |
− | + | cd sourcebuild | |
− | + | (refer to sourcebuild/README and make sure all required packages are installed already) | |
− | + | go_ce | |
− | + | (choose to compile and use a particular version of GEMC) | |
− | + | setenv GEANT4_VERSION 4.9.6.p01 | |
− | + | setenv CLHEP_VERSION 2.1.3.1 | |
− | + | setenv ROOT_VERSION 5.34.05 | |
+ | setenv QT_VERSION 4.8.4 | ||
+ | setenv GEMC_VERSION 1.8 | ||
source $JLAB_ROOT/ce/jlab.csh | source $JLAB_ROOT/ce/jlab.csh | ||
+ | (make sure your cmake version is higher than 8, do this on ifarm "setenv PATH /apps/cmake/bin/:{$PATH}") | ||
+ | go_clhep | ||
+ | go_qt | ||
+ | go_xercesc | ||
+ | go_geant4 | ||
+ | go_sconsscript (At the end of its output, it will tell you to copy certain files to a location. | ||
+ | you need admin authority to do it. If you are using ifarm, you don't need to do | ||
+ | anything because it's there already) | ||
+ | go_evio | ||
+ | go_gemc | ||
+ | go_root | ||
+ | go_gemc_evio2root | ||
=== version control === | === version control === | ||
− | see [[solid GEMC version historty ]] for | + | '''see [[solid GEMC version historty ]] for the change log''' |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
svn checkout by default always get the latest reversion. If you want a specific reversion, add option "-r revision_number" | svn checkout by default always get the latest reversion. If you want a specific reversion, add option "-r revision_number" | ||
Line 79: | Line 63: | ||
You'd better use a graphic svn client to get alerted once updates show up. I like "kdesvn" or you may check out this list [http://en.wikipedia.org/wiki/Comparison_of_Subversion_clients] | You'd better use a graphic svn client to get alerted once updates show up. I like "kdesvn" or you may check out this list [http://en.wikipedia.org/wiki/Comparison_of_Subversion_clients] | ||
− | |||
− | |||
== solgemc == | == solgemc == |
Revision as of 19:48, 31 July 2013
Introduction
You will need two things to run set of things for SoLID simulation:
- SoLID_GEMC, which you will need no matter what,
- GEMC (vanilla kind, easiest to setup) or solgemc (which uses GEMC as library, require a bit more work).
SoLID_GEMC
solid_gemc is a collection of SoLID codes for using GEMC. You need it no matter running vanilla GEMC or solgemc.
You can obtain solid_gemc from SoLID SVN
svn co https://jlabsvn.jlab.org/svnroot/solid/solid_gemc
database_io dir has geometry/field/banks ready to load into the mysql database script dir has scripts to setup env and run the simulation code analysistool dir has various packages for analyzing simulation result
GEMC
get it
You have two choices
- Use the pre-compiled version on ifarm machines, see quick start here [1]. It's easy to running batch mode in a terminal or submit a job to farm. For interactive mode, due to the OpenGL 3D rendering, it's too slow to run if you ssh in and do X11 forward to your local machine. The solution is to run vncserver with X window on ifarm and connect to it remote, this way it's not too slow if your network speed is ok. But this's not recommend because it demands more resources from ifarm which is shared by many users.
- Use your local copy. You will have the full power for the interactive mode and you can choose what version of GEMC to use. Please use 64 bit system, don't use 32 bit system, as it's not future proof and jlab farm has gone to 64 bit Linux system already. The general GEMC installation instruction is here [2], The default GEMC version will be installed this way. To use the production version for SoLID, please follow the instruction below to install it, then refer to here [3] to test your installation
this installs the GEMC version 1.8 with GEANT4.9.6.p01, tested on ifarm (CentOS6.2_x64) on 2013/7/30 setenv JLAB_ROOT DirOfYourChoice cd $JLAB_ROOT svn co https://clas12svn.jlab.org/repos/users/ungaro/repository/sourcebuild cd sourcebuild (refer to sourcebuild/README and make sure all required packages are installed already) go_ce (choose to compile and use a particular version of GEMC) setenv GEANT4_VERSION 4.9.6.p01 setenv CLHEP_VERSION 2.1.3.1 setenv ROOT_VERSION 5.34.05 setenv QT_VERSION 4.8.4 setenv GEMC_VERSION 1.8 source $JLAB_ROOT/ce/jlab.csh (make sure your cmake version is higher than 8, do this on ifarm "setenv PATH /apps/cmake/bin/:{$PATH}") go_clhep go_qt go_xercesc go_geant4 go_sconsscript (At the end of its output, it will tell you to copy certain files to a location. you need admin authority to do it. If you are using ifarm, you don't need to do anything because it's there already) go_evio go_gemc go_root go_gemc_evio2root
version control
see solid GEMC version historty for the change log
svn checkout by default always get the latest reversion. If you want a specific reversion, add option "-r revision_number"
how to know your current copy reversion number: go to top svn directory, run "svn update", then run "svnversion"
You'd better use a graphic svn client to get alerted once updates show up. I like "kdesvn" or you may check out this list [4]
solgemc
Another way to run solid simulation is to use GEMC as library,
To get the code specific to SoLID, solgemc:
svn checkout https://jlabsvn.jlab.org/svnroot/solid/solgemc
solgemc Installation Instructions
solgemc installation outside JLAB
libsolgem
The library for digitizing GEM output is found in this repository
svn checkout https://jlabsvn.jlab.org/svnroot/solid/libsolgem/
The database that corresponds to the GEM configuration in user_geometry3 : solid_gem
https://hallaweb.jlab.org/12GeV/SoLID/download/sim/libsolgem/db_gemc.dat