Skip to content

arushanova/oxsx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OXSX

Signal Extraction framework for the SNO+ experiment

Dependencies

1. [Armadillo](http://arma.sourceforge.net/) is a linear algebra package used for quick matrix multiplication 2. [GSL](https://gcc.gnu.org/libstdc++/) - likely you already have this installed, especially if you are running RAT 3. [SCons](http://www.scons.org/) Is used for the build, also a dependency for RAT 4. [HDF5](https://www.hdfgroup.org/HDF5/release/obtain5.html) Follow the installation instructions for each of the above using either the default install location or a different directory if you would prefer.

Installation Instructions

  1. Clone this repository with git clone https://github.com/jackdunger/oxsx.git --recursive if you've already cloned without the recursive flag just run git submodule update --init

  2. Update env.sh to point to ROOT and scons installs e.g. ROOT_DIR = /software/..../root-5.34.30 SCONS_DIR = /software/..../scons-2.3.4

  3. Do the same for GSL,armadillo, HDF5 and if these were installed to system dirs /user/lib etc. these can be left as empty strings ""

  4. Run source env.sh && scons && scons units

  5. Test the build was sucessful with ./tests/RunUnits

Compiling Your Own Scripts

scons auto-generates a script that compiles and links your c++ against the source code and dependencies just run ./examples/compile.sh <your cpp file> to produce an executible of the same name

Creating ntuples

To create ntuples for oxsx run ./util/prune_flat_tree <path_to_file_to_convert> -treename <name_of_the_tree> <branch1> <branch2> <branch3> -newtreename <name_of_your_tree> -outputfile <name_of_your_file> -nevents <number_of_events>

  • The name of the tree in an input file is optional, as a default it is "output"
  • The name of the output file is optional, as a default is is <the_name_of_input_file>+"_oxsx.root"
  • The name of the tree in an output file is optional, as a default it is "oxsx"
  • The number of events of an output file is optional

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 92.8%
  • Python 6.3%
  • Shell 0.9%