Skip to content

Tools for converting between some file formats used for data analysis in the lab.

Notifications You must be signed in to change notification settings

SFUNUSC/FileConvTools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Conversion Tools for NUSC

Maintainer: Jonathan Williams, Aaron Chester

Description

Codes for converting between and processing different file types commonly used for SFU NUSC work.

Running any code with no parameters will show a list of required parameters and/or parameter files. Some codes require parameter files to run. Sample parameter files are included containing examples and listings of valid parameters.

Instructions

Use 'make' to compile. Many of the codes require CERN ROOT to be installed (available at https://root.cern.ch/). Codes that do not depend on ROOT may be compiled using 'make no_root'. gf3 is recommended for viewing .mca files, or the code mca2txt can be used to convert them to plaintext (for viewing in Excel, etc.).

To make codes which depend on ROOT, environment variables related to ROOT must be set up properly. This can be done by adding to your .bashrc (and then reloading the terminal):

#ROOT configuration
export ROOTSYS=/path/to/root
export ROOTINC=$ROOTSYS/include
export ROOTLIB=$ROOTSYS/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTLIB

To run the programs from anywhere, move the resulting executables (in the 'bin' directory) to any directory under your $PATH environment variable.

Tested using Ubuntu 14.04 and Scientific Linux/CentOS 6 with ROOT v5.x. The codes not based on ROOT are self-contained and should work on more or less any Linux distro.

About

Tools for converting between some file formats used for data analysis in the lab.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.5%
  • Makefile 1.5%