feigaodm / SanDP

SanDix Processor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bin/sandix_logo.png

SanDix Processor (SanDP) is used for Analyzing the Data from SanDix Detector, see Documentation.

Instructions:

Waveform checking:

sandper --waveform --input /rawdata_path/rawdata.dat --event 100

Rawdata processing:

sandper --process --input /rawdata_path/rawdata.dat --outpath /processed_path/

note: the processed data have same name as raw data with extension of .root instead of .dat

Installation:

If you wish to develop SanDP, install it either on your machine or your account on Nilab server, please follow the instructions below.

Installing Anaconda Libraries

SanDP is currently written by Python. We recommend Anaconda for the python distribution and environment management. If you already have Anaconda installed, skip this step. To install this in Linux do:

wget http://repo.continuum.io/archive/Anaconda3-2.4.0-Linux-x86_64.sh  # Linux
bash Anaconda3-2.4.0-Linux-x86_64.sh  # Say 'yes' to appending to .bashrc and specify the installation directory
conda install -q conda=4.1.1

Usually the steps above automatically create .bashrc file. Check the file by

cat ~/.bashrc

It should contains the following line:

export PATH="/home/<username>/anaconda3/bin:$PATH"

If not, add the line above to .bashrc file and source it by source ~/.bashrc

Install the environment

After Anaconda is installed, we can install our environment. Be noted that SanDP is written by Python 2.

conda create -n <your_environment> python=2.7 root numpy scipy matplotlib pandas libgcc jupyter ipykernel configparser libgfortran==1

Then activate your environment by

source activate <your_environment>

Solution to common issues can be found in FAQ (to be added) .

Install SanDP

git clone https://github.com/darkmatter-ucsd/SanDP.git

Enter your user name and password for GitHub as SanDP is a private repository. We recommend you to add your SSH to GitHub to access your private repository without password.

Then install the package by:

cd SanDP
python setup.py develop

The installation is done! To test if it's installed properly, check SanDP version by:

sandper version

If it prompts the right version, then congratulate and enjoy the package!

About

SanDix Processor


Languages

Language:Python 89.0%Language:Jupyter Notebook 8.1%Language:C++ 2.5%Language:C 0.4%