Skip to content

Avendus/treestream

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

treestream

A simple interface to Root files containing simple trees, such as the CMS NanoAOD or the Root files created using Delphes. The enviroment variable TREESTREAM_PREFIX should be set to the directory in which you wish to install treestream, that is, to the directory containing the bin, lib, and include directories. If you do not use an environment management system such as miniconda3 (a slim version of Anaconda), we suggest that you create a directory called external in your home directory, as shown below to contain all external packages, and install treestream in that directory. You should clone (download) external packages to external, but do not try to install treestream within the treestream directory itself!

INSTALLATION

	cd
	mkdir -p external/bin
	mkdir -p external/lib
	mkdir -p external/include
	mkdir -p external/share

	cd $HOME/external
	git https://github.com/hbprosper/treestream.git
	cd treastream
	export TREESTREAM_PREFIX=$HOME/external (or $CONDA_PREFIX if you use miniconda3)
	make
	make install

TEST

	cd test
	./testtreestream
	./testdelphes
	./testvector

There is also a jupyter notebook version of the test program.

ANALYZER UTILITIES

  1. mkvariables.py reads a Root file and creates the file variables.txt containing a description of (by default) the first tree it finds.

  2. mkanalyzer.py reads variables.txt and creates the skeleton of an C++ and Python analyzer program for the Root tree.

About

Analysis code maker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 66.1%
  • Python 29.8%
  • Jupyter Notebook 2.5%
  • Makefile 1.2%
  • Other 0.4%