#GRSISort
A lean, mean, sorting machine.
To compile for a .sh shell execute source SOURCEME.sh
in your terminal from the GRSISort Directory
To avoid running this script every session, add the following to your ~/.bashrc
export GRSISYS=/path/to/dir/of/GRSISort
export PATH=$GRSISYS/bin:$PATH
export LD_LIBRARY_PATH=$GRSISYS/libraries:$LD_LIBRARY_PATH
To compile using a .crsh or .tcsh shell execute source SOURCEME.csh
in your terminal from the GRSISort Directory
To avoid running this script every session, add the following in your ~/.cshrc or ~/.tcshrc
setenv GRSISYS /path/to/dir/of/GRSISort
set path = ($path $GRSISYS/bin)
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:$GRSISYS/libraries
Warning: compiling in csh has been known to be an issue. Use sh if possible.
once complete type make
in the GRSISort directory
grsisort will open up a root session in the grsi environment Commands:
grsisort NAMEOFMIDASFILE.mid -> Converts the midas file into a fragment tree
Currently accepted flags for the midas sort:
- -suppress_error, suppresses errors from failed data parsing appearing in stdout
- -log_error, sends errors from failed data parsing to file, will not send errors if supress error option is also used!
- -no_waveforms, does not add the wave form stored for each event in the mid file to the fragment tree
- -s, quits the program after it finishs turing the input midas files into trees.
grsisort -s NAME_OF_FRAGMENT_TREE.root -> Starts sorting the fragment tree into user defined hists.
- Histograms are defined in users/UserInitObj.h
- How to fill the histogram is defined in usrer/UserFillObj.h
Utilities, such as analysis scripts, asre kept in the util directory. Below are a list of useful utilities and how to use them.
- Root2Rad, Converts the 1D and 2D histograms in a root file to Radware .spe and .mat formats To compile:
g++ Root2Rad.cxx -oRoot2Rad `root-config --cflags --libs`
To Run:
./Root2Rad NAME_OF_ROOT_FILE.root
Scripts
- auto_eff.C, Reads in a root file and calculates the efficiency of each HPGe Crystal based on a specfic source and activity
More to follow...