Both sides previous revision
Previous revision
Next revision
|
Previous revision
Next revision
Both sides next revision
|
s800_spectcl [2018/03/09 14:38] pereira [S800 SpecTcl installation in S800 computer] |
s800_spectcl [2018/05/02 16:24] pereira [S800 SpecTcl installation in S800 computer] |
SpecTcl is the NSCL's event data analysis tool used for online and offline data analysis during experiments involving the S800 spectrograph. The documentation is accessible at: http://docs.nscl.msu.edu/daq/spectcl/. | SpecTcl is the NSCL's event data analysis tool used for online and offline data analysis during experiments involving the S800 spectrograph. The documentation is accessible at: http://docs.nscl.msu.edu/daq/spectcl/. |
| |
The S800 SpecTcl is run from the main directory **/user/s800/s800spectcl**. Instruction on how to install this software can be found [[S800 SpecTcl#S800 SpecTcl installation in S800 computer|here]]. | **Important NOTES**: |
| * The S800 SpecTcl is run from the main directory **/user/s800/s800spectcl**. Instruction on how to install this software can be found [[S800 SpecTcl#S800 SpecTcl installation in S800 computer|here]]. |
| * A S800 SpecTcl packet (compressed tar file) can be created for distribution to users. Instructions on how to create this packet can be found [[S800 SpecTcl#S800 SpecTcl deployment|here]]. |
| |
| |
The SpecTcl Control has been adapted for special functions required for the analysis of S800 data. SpecTcl can be open by from computer [[Software#u6pc5 (data U6)|u6pc5]] by clicking in the icon **SpecTcl** located in its desktop, or from a Linux terminal by typing ''gospectcl". | The SpecTcl Control has been adapted for special functions required for the analysis of S800 data. SpecTcl can be open by from computer [[Software#u6pc5 (data U6)|u6pc5]] by clicking in the icon **SpecTcl** located in its desktop, or from a Linux terminal by typing ''gospectcl''. |
| |
Spectra definition files can be found in directory **/user/s800/s800spectcl/Definitions**. Some pre-defined windows with useful spectra can be found in directory **/user/s800/s800spectcl/Windows**. | Spectra definition files can be found in directory **/user/s800/s800spectcl/Definitions**. Some pre-defined windows with useful spectra can be found in directory **/user/s800/s800spectcl/Windows**. |
| |
===== S800 SpecTcl installation in S800 computer ===== | ===== S800 SpecTcl installation in S800 computer ===== |
Before installing the S800 SpecTcl make sure to contact the S800 Device Physicist (Jorge Pereira). The process requires special password permits. Make sure to contact Jorge Pereira (pereira@nscl.msu.edu) or, Ron Fox (fox@nscl.msu.edu), or Giordano Cerizza (cerizza@nscl.msu.edu) for assistance. | Before installing the S800 SpecTcl make sure to contact the S800 Device Physicist (Jorge Pereira). |
In order to install S800 SpecTcl in the S800 computer, follow the following steps: | In order to install S800 SpecTcl in the S800 computer, follow the following steps: |
| |
- Check that the environment variable SPECTCLBINDIR is well defined: ''echo $SPECTCLBINDIR'' should give you /user/s800/s800spectcl. If that's not the case, edit .bashrc and define the variable (make sure to source .bashrc afterwards). | - Connect to s800 account, preferably from u6pc5. |
- Go to ~/s800develop/s800spectcl_develop and clean its content | - Check that the environment variable SPECTCLBINDIR is well defined: '' echo $SPECTCLBINDIR '' should give you **/user/s800/s800spectcl**. If that's not the case, edit .bashrc and define the variable (make sure to source .bashrc afterwards). |
- Clone the master branch from the remote repository: git clone git@git.nscl.msu.edu:pereira/s800spectcl.git master (NOTE: the deployment of this repository is password protected) | - Go to **/user/s800/s800develop/** and remove directory **s800spectcl** |
- Type "Make -f Make.s800 Install". This Makefile does the following: | - Clone the master branch from the remote repository: ''git clone git@git.nscl.msu.edu:pereira/s800spectcl.git -b master'' (NOTE: the deployment of this repository is password protected. Contact Jorge Pereira (pereira@nscl.msu.edu), Ron Fox (fox@nscl.msu.edu), or Giordano Cerizza (cerizza@nscl.msu.edu) for assistance). |
- Goes to subdirectory /libnumrec, runs make clean, and make LIBLITE (to clear objects and create library libnumreclite.a and moves the library to the ../src subdirectory | - Type ''Make -f Make.s800 Install''. This Makefile does the following: |
- Goes to subdirectory /src, runs make clean, and make (this creates the SpecTcl binary) and moves it to the Main directory (up) | - Goes to subdirectory **/libnumrec**, runs make clean, and make LIBLITE (to clear objects and create library libnumreclite.a and moves the library to the **../src** subdirectory |
- Creates SpecTcl-running directory defined in SPECTCLBINDIR=/user/s800/s800spectcl, along with subdirectories /Windows and /Definitions. | - Goes to subdirectory **/src**, runs make clean, and make (this creates the SpecTcl binary) and moves it to the Main directory (up) |
- Moves "control" tcl files from Main directory into /user/s800/s800spectcl, along with executable SpecTcl; Xamine6.ctbl to the home directory; windows files to /Windows and s800xdt.tcl to /Definitions . | - Creates SpecTcl-running directory defined in **SPECTCLBINDIR=/user/s800/s800spectcl**, along with subdirectories **/Windows** and **/Definitions**. |
- This gets the software necessary to run SpecTcl ready in directory /user/s800/s800spectcl. | - Moves "control" tcl files from Main directory into **/user/s800/s800spectcl**, along with executable SpecTcl; Xamine6.ctbl to the home directory; windows files to **/Windows** and s800xdt.tcl to **/Definitions** . |
- I added a script gospectcl to the binary directory /users/s800/bin. This allows to run SpecTcl from anywhere, just by typing gospectcl | - This gets the software necessary to run SpecTcl ready in directory **/user/s800/s800spectcl**. |
| - SpecTcl can now be run just by typing ''gospectcl'' from any terminal |
| |
| |
| ===== S800 SpecTcl deployment ===== |
| This section describes the procedure and scripts (Makefiles) to create a tar file with the S800 SpecTcl source files that any user may need to run S800 SpecTcl by themselves. This tar file contains: |
| |
| * "Control" SpecTcl files (e.g. SpecTclControl.tcl, SpecTclInit.tcl, SpecTclRC.tcl etc.) |
| * **/src** subdirectory with source cpp and h files, Makefile, and libnumreclite.a library from Numerical Recipes |
| * **/Windows** subdirectory with standard SpecTcl windows files |
| * **/Definitions** subdirectory with file s800xdt.tcl spectra definition file. |
| |
| |
| The procedure to deploy this software works as follows: |
| |
| - Connect to s800 account, preferably from u6pc5. |
| - Check that the environment variable SPECTCLDEPLOY is well defined: ''echo $SPECTCLDEPLOY'' should give you **/user/s800/s800spectcl_deploy**. If that's not the case, edit .bashrc and define the variable (make sure to source .bashrc afterwards). |
| - Go to **/user/s800/s800develop/** and remove directory **s800spectcl_develop** |
| - Clone the master branch from the remote repository: ''git clone git@git.nscl.msu.edu:pereira/s800spectcl.git -b master'' (NOTE: the deployment of this repository is password protected. Contact Jorge Pereira (pereira@nscl.msu.edu), Ron Fox (fox@nscl.msu.edu), or Giordano Cerizza (cerizza@nscl.msu.edu) for help) |
| - Type ''Make -f Make.s800 Deploy''. This Makefile does the following: |
| - Goes to subdirectory **/libnumrec**, runs make clean, and make LIBLITE (to clear objects and create library libnumreclite.a and moves the library to the **../src** subdirectory |
| - Creates deployment directory defined in **SPECTCLDEPLOY=/user/s800/s800spectcl_deploy**, along with subdirectories **/src**, **/Windows** and **/Definitions**. |
| - Moves "control" tcl files from Main directory into **/user/s800/s800spectcl_deploy**, along with files from **/src** directory; SpecTcl windows files to **/Windows** and s800xdt.tcl to **/Definitions**. |
| - Compresses directory **/user/s800/s800spectcl_deploy** (''tar -zcvf $(HOME)/s800spectcl_deploy.tar.gz $(SPECTCLDEPLOY)'') |
| - Removes **/user/s800/s800spectcl_deploy** |
| - The compressed file s800spectcl_deploy.tar.gz is located in the home directory **/user/s800** and can now be distributed to any user |
| |
| |
............................. | |
| |