Skip to content

peterkostka/albers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

albers

Preparing the environment

On lxplus

To build and install this package, do:

source init.sh

On Mac OS

Assuming the path to your version of ROOT is <root_path>, do:

source <root_path>/bin/thisroot.sh

Set up python. We advise to use the version of python that comes with Mac OS. This version should be 2.7.X

python --version
> Python 2.7.5

Check that the yaml python module is available

python 
>>> import yaml

If the import goes fine (no message), you're all set. If not, you need to install yaml. For that, you need to:

1- install the C++ yaml library, which is used by the python module. The easiest way to do that is to use homebrew (install homebrew if you don't have it yet)

brew install libyaml

2- install the python yaml module (first install pip if you don't have it yet)

pip install yaml 

Check that you can now import the yaml module in python.

Finally, set your environment:

source init_macos.sh

Compiling

after setting up a separate build and install area, the build can be triggered w/

mkdir build
mkdir install
cd build
cmake -DCMAKE_INSTALL_PREFIX=../install ..
make -j 4 install 

Running

The examples are for creating a file "example.root"

../install/examples/write

And reading it again

../install/examples/read

Modifying the data model

if you want to invoke the data model creator use python/albers_class_generator.py and look into examples/datalayout.yaml for inspiration

About

Albers data model package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published