Back to home page

Project CMSSW displayed by LXR

 
 

    


Warning, /PhysicsTools/HeppyCore/README.md is written in an unsupported language. File is not indexed.

0001 Heppy : a python framework for high-energy physics data analysis
0002 ================================================================
0003 
0004 This README is for the standalone version of heppy.
0005 
0006 Prerequisites
0007 -------------
0008 
0009 **python 2.x, x>5**
0010 
0011 **ROOT 5, with pyroot support**
0012 
0013 Note that you need to ensure that ROOT was compiled with the same
0014 version of python as the one in your PATH.
0015 
0016 To check that, do the following:
0017 
0018     python
0019     import ROOT
0020 
0021 Any error message needs to be taken care of before going further. 
0022 
0023 Environment
0024 -----------
0025 Put the heppy package in a directory that is in your PYTHONPATH
0026 For example, you can do:
0027 
0028     export PYTHONPATH=$PWD/..:$PYTHONPATH
0029 
0030 Check that you can now import heppy:
0031 
0032     python
0033     import heppy 
0034 
0035 From this directory, run the initialization script, which makes a few
0036 executable scripts available to you:
0037 
0038     source init.sh
0039 
0040 
0041 Examples
0042 --------
0043 
0044 A simple example are provided in the test/ directory:
0045 
0046     cd test/
0047 
0048 Create a root file with a tree:
0049 
0050     python create_tree.py
0051         
0052 Process the root file:
0053 
0054     multiloop.py  Output   simple_example_cfg.py
0055 
0056 Investigate the contents of the Output folder and its subdirectories.