SIMC Monte Carlo
From HallCWiki
(Redirected from Monte Carlo)
SIMC
- Version control of SIMC has moved from CVS to git. github.com is used to store the code. (Useful git instructions/howto.)
- To checkout and contribute using github:
- Create an account on github.com
- Setup ssh on JLab CUE: Generate ssh key if you do not have one: ssh-keygen -t dsa ( Hit return for all three prompts, ie do not make a pass phrase)
- Put ssh public key on Github
- Open the "Settings" in the pull down menu on the extreme right.
- Go to "SSH keys"
- Click on "new ssh key" button. At terminal type "more ~/.ssh/id_dsa.pub". Copy the code and paste into github.
- NOTE: The github instructions ask you to install a program called "xclip" to help upload your public key. This is unnecessary - you can just "click and paste".
- Once you have signed into github then go to https://github.com/JeffersonLab/simc_gfortran.
- Select Watch to be notified of changes to simc_gfortran repo and the click on the Fork button to create your own Github copy of the repo.
- On the computer that you want to run the code type: git clone git@github.com:GitHub-Username/simc_gfortran.git where Githib-Username is your github username.
- Now "origin" remote is to your personal Github repository. After cloning you will be in the "master" branch. Make your local changes and commit them to your local copy. You can update the github repository by command: git push origin master . If you want to have these changes incorporated into the JeffersonLab repository then go to your github account Githib-Username/simc_gfortran and click on the pull request button. This will notify the person monitoring the JeffersonLab repository and your changes can be pulled in.
- To have access to the changes in the JeffersonLab GutHub repository, in your newly created simc_gfortran directory
- One time need to execute the command: git remote add upstream git@github.com:JeffersonLab/simc_gfortran
- The command git fetch upstream will fetch any new changes from the original repository
- The command git merge upstream/master will merge any changes fetched into your working files
- The CTP library is now included as a SIMC subdirectory
- When compiling code need on JLab ifarm machines need to do:"setup cernlib/2005" to set CERN_ROOT properly.
- To compile code type: "make"
- The input files included with simc_gfortran have NOT been updated to work with the new code. Basically in the name of a variable the "." needs to be replaced by a "%" for gfortran. To convert your input files use the script ( in the infiles subdirectory) : convert_inputfile.sh oldfile
- To checkout and contribute using github:
- simc_grfortan Git repo on the web.
- History of SIMC ( starting in June 2011).
- Documentation
- Primer on SIMC. Section 2 on "Getting SIMC" is not valid any longer.
- Directory with SIMC documentation.
- Paper by Bradley Filippone,Rolf Ent,Naomi Makins,Richard Milner on radiative corrections for (e,ep) reactions. (broken link!)
- Radiative corrections for (e,e'p) reactions at GeV energies, R. Ent, B. W. Filippone, N. C. R. Makins, R. G. Milner, T. G. O’Neill, and D. A. Wasson, Phys.Rev.C 64 (2001), 054610
- Talk given by John Arrington at a 2001 Hall A meeting.
- A more recent presentation: SIMC – Physics Monte Carlo for Hall C and Hall A, Dave Gaskell and John Arrington, Hall A Analysis Meeting December 14, 2009.
- And of course the GitHub README.md file.
- Directory that archives previous versions of SIMC.
- Single arm Monte Carlo for SHMS.
- Page for the SHMS MC Working Group