Difference between revisions of "MainPage:Nuclear:Summer2018:Software and Computing"

From cua_phy
Jump to navigation Jump to search
Line 29: Line 29:
 
* Then go to root directory in /usr/local like $ cd root
 
* Then go to root directory in /usr/local like $ cd root
 
* Then do $ git checkout -b v6-12-06 v6-12-06
 
* Then do $ git checkout -b v6-12-06 v6-12-06
:* Remember to name the unpacked source file, like root-6-12 or whatever, so you wont get confused with other versions or the build directory later.. do this anyway if you don't.
+
:* Remember to name the unpacked source file, like root6-12 or whatever, so you wont get confused with other versions or the build directory later.. do this anyway if you don't.
:* The "root" or "root-6.12.06" is a directory with all the cmake stuff in it, which will be used to build the source.
+
:* This "root6-12" is a directory with all the cmake stuff in it, which will be used to build the source.
 
* Now you need to make a build directory in /usr/local/ by doing $ mkdir build
 
* Now you need to make a build directory in /usr/local/ by doing $ mkdir build
 
:* Since you are trying to compile and link the "build" directory to the source, you need this other build directory. This will look like /usr/local/build/
 
:* Since you are trying to compile and link the "build" directory to the source, you need this other build directory. This will look like /usr/local/build/
 
* Now go to your build directory if you weren't already in it $ cd /usr/local/build/ and link to root via cmake by $ cmake /path/to/source/ or $ cmake /usr/local/root/  
 
* Now go to your build directory if you weren't already in it $ cd /usr/local/build/ and link to root via cmake by $ cmake /path/to/source/ or $ cmake /usr/local/root/  
 
:* Note: if your source isn't in a directory named "root" then change it to the source directory name e.g. if it was named root6-12-06 then do $ cmake /usr/local/root6-12-06/  
 
:* Note: if your source isn't in a directory named "root" then change it to the source directory name e.g. if it was named root6-12-06 then do $ cmake /usr/local/root6-12-06/  
* Now build it: $ cmake --build . -- -jN  
+
* Now build it by $ cmake --build . -- -jN  
 
:* where N is the number of cores available to speed up the building. This will take a while regardless of the short cut.
 
:* where N is the number of cores available to speed up the building. This will take a while regardless of the short cut.
 
* After the install is done, and nothing is broken/no error messages, test if root is working by going to your build directory and doing  
 
* After the install is done, and nothing is broken/no error messages, test if root is working by going to your build directory and doing  

Revision as of 20:05, 23 June 2018

⇐ Back to the Main_Page


Hall A/C Software and Computing Studies for Kaon LT and DVCS
Salina Ali & Callum Walton


Network Server Setup at CUA

To-do

  • Setup master server
  • Install CentOS7 (open source)
  • Install root 6.10.06 (most recent version)
  • Install PODD software: analyzer 1.6.3 (most recent version) for Hall A and Hall C in different build directories
  • Link for Hall A analyzer 1.6.3 Redmine pg, install '.gz' format and untar.
  • Link for Hall C analyzer 1.6.3 Redmine pg, install '.gz' format and untar.
  • Create a "setup" script like gohana and gohcana with correct environment variables set in path
  • Have local root files available either on own computer or file servers to test network server communication with readability

Building and using root 6.10.06 on Linux CentOS7 (Salina)

ROOT is a software used in experimental nuclear physics for data analysis and is C++ based. For more info go here. The commands in this section are written in terminal after the $, so don't type the $ while typing your command in the terminal.

  • You can download root two ways: from pre-compiled binaries suited for your OS, or using cmake and building root from the source code. For the source code and pre-compiled binaries go to: root version 6.12.06. These instructions are for the installation from the source.
  • Either install the source code (.tar.gz) or use "git clone" to clone the root repository to your directory
  • In your terminal, first go to your /usr/local/ directory by doing $ cd /usr/local/
  • Then do $ git clone http://github.com/root-project/root.git
  • Then go to root directory in /usr/local like $ cd root
  • Then do $ git checkout -b v6-12-06 v6-12-06
  • Remember to name the unpacked source file, like root6-12 or whatever, so you wont get confused with other versions or the build directory later.. do this anyway if you don't.
  • This "root6-12" is a directory with all the cmake stuff in it, which will be used to build the source.
  • Now you need to make a build directory in /usr/local/ by doing $ mkdir build
  • Since you are trying to compile and link the "build" directory to the source, you need this other build directory. This will look like /usr/local/build/
  • Now go to your build directory if you weren't already in it $ cd /usr/local/build/ and link to root via cmake by $ cmake /path/to/source/ or $ cmake /usr/local/root/
  • Note: if your source isn't in a directory named "root" then change it to the source directory name e.g. if it was named root6-12-06 then do $ cmake /usr/local/root6-12-06/
  • Now build it by $ cmake --build . -- -jN
  • where N is the number of cores available to speed up the building. This will take a while regardless of the short cut.
  • After the install is done, and nothing is broken/no error messages, test if root is working by going to your build directory and doing
  • (for bash shell) $ . bin/thisroot.sh
  • (for csh shell) $ source /usr/local/build/bin/thisroot.sh
  • Start a root interactive session by doing $ root
  • You should probably change the directory name of "build" to root6.12.06 or just root. So now root will be in /usr/local/root/ or /usr/local/root6.12.06
  • For a more permanent change, edit the login file, either .bash_profile on Mac OS X or .bashrc on linux by doing
  • For text editor vim: vim ~/.bash_profile OR vim ~/.bashrc
  • For text editor emacs: emacs ~/.bash_profile OR emacs ~/.bashrc
  • Then add the lines, usually toward the bottom (applies to both bash_profile on mac and linux):

$ export ROOTSYS=/usr/local/root $ export PATH=$ROOTSYS/bin:$PATH $ export PYTHONDIR=$ROOTSYS/bindings/pyroot

Installing analyzer


Computing using PODD/Hall A & C analyzer

Link for information for Hall C Analyzer: hcana info Link for information for Hall A analyzer: Hall A analyzer info

Computing Workshop at JLab from June 25-26, 2018: Hall A/C Computing Workshop Info and Registration