Difference between revisions of "SIMC Monte Carlo"

From HallCWiki
Jump to navigationJump to search
Line 1: Line 1:
 
= SIMC =
 
= SIMC =
  
* Version control of SIMC has moved from CVS to git.  
+
* Version control of SIMC has moved from CVS to git. github.com is used to store the code.
** To checkout from git:
+
** To checkout from github:
*** If you haven't been using the Hall C git repository, then following the [https://hallcweb.jlab.org/wiki/index.php/ROOT_Analyzer/Git#Read.2Fwrite_access instructions] for gaining access gain access to the repository. If you have been using the hcana git repo then you should be able to access the simc git repo.
+
*** Need to create an account on [https://github.com github.com] and following the directions for storing your public ssh key on the site.
*** git clone git@hallcgit.jlab.org:simc_gfortran.git  
+
*** Once you have signed into github then go to the [https://github.com/JeffersonLab/simc_gfortran 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.
*** After cloning you will be in the "master" branch. Please create a branch for your experiment and that way you can keep track of your infilesWith your separate branch you can push it to the Hall C repo and then share it with others in the experiment. Any changes that would be useful to all can also be incorporated into the "master" branch.
+
*** Now on the computer that you want to run the code type:  git clone git@github.com:''Githib-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. Now you make local changes and commit them locallyYou can update the github repository by command: ''git push origin master'' . If you want to have these changes put in the JeffersonLab then go to your github account ''Githib-Username''/simc_gfortran and click on the "pull request" button. This will notify the JeffersonLab
 +
*** 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 https://github.com/JeffersonLab/simc_gfortran
 +
**** git fetch upstream # Fetches any new changes from the original repository
 +
**** git merge upstream/master # Merges any changes fetched into your working files
 
** The CTP library is now included as a SIMC subdirectory
 
** The CTP library is now included as a SIMC subdirectory
 
** 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''  
 
** 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''  

Revision as of 15:44, 2 October 2013

SIMC

  • Version control of SIMC has moved from CVS to git. github.com is used to store the code.
    • To checkout from github:
      • Need to create an account on github.com and following the directions for storing your public ssh key on the site.
      • Once you have signed into github then go to the 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.
      • Now on the computer that you want to run the code type: git clone git@github.com:Githib-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. Now you make local changes and commit them locally. You can update the github repository by command: git push origin master . If you want to have these changes put in the JeffersonLab then go to your github account Githib-Username/simc_gfortran and click on the "pull request" button. This will notify the JeffersonLab
      • 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 https://github.com/JeffersonLab/simc_gfortran
        • git fetch upstream # Fetches any new changes from the original repository
        • git merge upstream/master # Merges any changes fetched into your working files
    • The CTP library is now included as a SIMC subdirectory
    • 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
  • 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.
    • Talk given by John Arrington at a 2001 Hall A meeting.
  • Directory that archives previous versions of SIMC.
  • Single arm Monte Carlo for SHMS.
  • Page for the SHMS MC Working Group