kratsg / optimization

Code for optimizing simple n-tuples
http://giordonstark.com/
MIT License
7 stars 9 forks source link

Convenience functions for calculating some cuts manually #13

Open kratsg opened 9 years ago

kratsg commented 9 years ago

Let's say you're given a series of output hashes that contain cuts. You should be able to do something like

from optimize import *
cut = load_cut('/path/to/hash.json')
trees = get_ttrees('....')
signal = get_signal(...)
bkgd = get_bkgd(...)
apply_cut(...)