High Energy Physics Plotting Interface
Project description
===============================
Heppi
===============================
.. image:: https://img.shields.io/pypi/v/heppi.svg
:target: https://pypi.python.org/pypi/heppi
.. image:: https://img.shields.io/travis/yhaddad/heppi.svg
:target: https://travis-ci.org/yhaddad/heppi
.. image:: https://readthedocs.org/projects/heppi/badge/?version=latest
:target: https://readthedocs.org/projects/heppi/?badge=latest
:alt: Documentation Status
A High Energy Physics Plotting Interface
* Free software: ISC license
* Documentation: https://heppi.readthedocs.org.
How to run
----------
Produce a stacked plots
~~~~~~~~~~~~~~~~~~~~~~~
* To run ``heepi`` plotmaker you have to run the script ``plot``
* you can print the options of the script by typing ``.\plot --help``
* you have to combine the trees using ``rootmerge.py`` script
* the commend I'm using is the follwing:
.. code-block::
./plot -s /dir/to/merged/trees --load plotcard.json --all
* if you want to print one variable in the plotcard you can replace the option ``--all`` by ``--variable`` or just ``-v`` followed by the name of the variable.
example :
.. code-block::
./plot -s /dir/to/merged/trees --load plotcard.json -v var1
Write a valid plotcard ?
~~~~~~~~~~~~~~~~~~~~~~~~
* Produce the plotcard using a processe.json files and input root file.
* The tree name must be specified
.. code-block:: bash
./makeplotcard.py --load /path/to/root/file.root \
--out plotcard.json \
--tree VBFMVADumper/*VBFDiJet
* the ``*`` will be replaced automatically by the remaining name of the tree found in the ``VBFMVADumper`` directory.
* This is for the use of .. _``flashgg``: https://github.com/cms-analysis/flashgg type dumper trees only, a more standard version will be pushed soon
installation
------------
* Run the setup script to install the dependencies: ``python setup.py develop --user`` or run : ``pip install --user jsmin termcolor progressbar jsonmerge``, both ways works on lxplus.
* ROOT env must be set, I recomend to setup CMSSW env before runnning the previous commands
Credits
-------
This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
=======
History
=======
0.1.0 (2015-12-13)
------------------
* First release on PyPI.
Heppi
===============================
.. image:: https://img.shields.io/pypi/v/heppi.svg
:target: https://pypi.python.org/pypi/heppi
.. image:: https://img.shields.io/travis/yhaddad/heppi.svg
:target: https://travis-ci.org/yhaddad/heppi
.. image:: https://readthedocs.org/projects/heppi/badge/?version=latest
:target: https://readthedocs.org/projects/heppi/?badge=latest
:alt: Documentation Status
A High Energy Physics Plotting Interface
* Free software: ISC license
* Documentation: https://heppi.readthedocs.org.
How to run
----------
Produce a stacked plots
~~~~~~~~~~~~~~~~~~~~~~~
* To run ``heepi`` plotmaker you have to run the script ``plot``
* you can print the options of the script by typing ``.\plot --help``
* you have to combine the trees using ``rootmerge.py`` script
* the commend I'm using is the follwing:
.. code-block::
./plot -s /dir/to/merged/trees --load plotcard.json --all
* if you want to print one variable in the plotcard you can replace the option ``--all`` by ``--variable`` or just ``-v`` followed by the name of the variable.
example :
.. code-block::
./plot -s /dir/to/merged/trees --load plotcard.json -v var1
Write a valid plotcard ?
~~~~~~~~~~~~~~~~~~~~~~~~
* Produce the plotcard using a processe.json files and input root file.
* The tree name must be specified
.. code-block:: bash
./makeplotcard.py --load /path/to/root/file.root \
--out plotcard.json \
--tree VBFMVADumper/*VBFDiJet
* the ``*`` will be replaced automatically by the remaining name of the tree found in the ``VBFMVADumper`` directory.
* This is for the use of .. _``flashgg``: https://github.com/cms-analysis/flashgg type dumper trees only, a more standard version will be pushed soon
installation
------------
* Run the setup script to install the dependencies: ``python setup.py develop --user`` or run : ``pip install --user jsmin termcolor progressbar jsonmerge``, both ways works on lxplus.
* ROOT env must be set, I recomend to setup CMSSW env before runnning the previous commands
Credits
-------
This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
=======
History
=======
0.1.0 (2015-12-13)
------------------
* First release on PyPI.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Heppi-0.3.tar.gz
(19.9 kB
view hashes)
Built Distribution
Heppi-0.3-py2.py3-none-any.whl
(13.4 kB
view hashes)