Skip to content
Snippets Groups Projects
README.md 1.04 KiB
Newer Older
dsmolyakov's avatar
dsmolyakov committed

Dmitry Smolyakov's avatar
Dmitry Smolyakov committed
# hist_compare
dsmolyakov's avatar
dsmolyakov committed
Repository contains client and server app. You can install only client or only server part.

Instalation of server requier ROOT library:
1) Install ROOT with python
dsmolyakov's avatar
dsmolyakov committed
```
sudo apt-get install subversion dpkg-dev make g++ gcc binutils libx11-dev libxpm-dev libxft-dev libxext-dev
git clone http://root.cern.ch/git/root.git
cd root
git tag -l
git checkout -b v5-34-08 v5-34-08
./configure --enable-python --prefix=/usr/local
sudo make
sudo make install
export LD_LIBRARY_PATH=$ROOTSYS/lib:$PYTHONDIR/lib:$LD_LIBRARY_PATH
export PYTHONPATH=$ROOTSYS/lib:$PYTHONPATH
dsmolyakov's avatar
dsmolyakov committed
```
dsmolyakov's avatar
dsmolyakov committed
After this server can be installed. Move to ./server and run:
dsmolyakov's avatar
dsmolyakov committed
```
[sudo] python setup.py install
dsmolyakov's avatar
dsmolyakov committed
```
dsmolyakov's avatar
dsmolyakov committed
For starting server
dsmolyakov's avatar
dsmolyakov committed
```
dsmolyakov's avatar
dsmolyakov committed
python api.py
dsmolyakov's avatar
dsmolyakov committed
```
dsmolyakov's avatar
dsmolyakov committed

dsmolyakov's avatar
dsmolyakov committed
For client installation move to ./client and run:
dsmolyakov's avatar
dsmolyakov committed
```
[sudo] python setup.py install
```
dsmolyakov's avatar
dsmolyakov committed
4) Example
dsmolyakov's avatar
dsmolyakov committed
```
dsmolyakov's avatar
dsmolyakov committed
import hist_client
dsmolyakov's avatar
dsmolyakov committed
first_file = 'default_1.root'
second_file = 'BrunelDaVinci_FULL_134363_00021387.root'
all_paths = ['Timing/OverallEventProcTime/overallTime']
dsmolyakov's avatar
dsmolyakov committed
print hist_client.hist_compare(first_file, second_file, all_paths)
dsmolyakov's avatar
dsmolyakov committed
```