Warning, /tutorials/HEPData/README.md is written in an unsupported language. File is not indexed.
0001 * This short tutorial give a example macro on how to generate HEPData submission using hepdata_lib (https://github.com/HEPData/hepdata_lib/)
0002 * It can be installed on SDCC or local using: python -m pip install hepdata_lib
0003 * The most powerful feature is it allows to read ROOT objects directly - in this case you also need to install ROOT for your python, installing both root and hepdata_lib can be done as
0004 * conda config --set channel_priority strict
0005 * conda create -c conda-forge --name my_env_name root hepdata-lib
0006 * conda activate my_env_name
0007
0008 * Files:
0009 * GenerateDummyTree.ipynb: Create s TTree with TH1D with statistical errors, TGraphAsymmError holding the systematic uncertainties, and TH2D correlation matrix
0010 * spectrum_output.root: generated ROOT file
0011 * CreateSubmission.ipynb: Example code to create Submission for histogram with stat and syst errors while reading TH1D and TGraphAsymmError, and second histogram for the TH2D
0012 * CreateSubmission.py: just pure python of the above code