forked from yhaddad/Heppi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOptimizeBounds
More file actions
31 lines (21 loc) · 808 Bytes
/
Copy pathOptimizeBounds
File metadata and controls
31 lines (21 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/user/bin/python
import ROOT # needed
from heppi import heppi
import os, sys, glob, sys, json, re, logging, collections, math, numpy
from termcolor import colored
from progressbar import ProgressBar, Bar, Percentage, ETA
from collections import OrderedDict
def optimise(trees):
(sig_tree, bkg_tree) = trees
init_bouds = [0.0, 0.5]
if __name__ == "__main__":
i = 3
heppi.sampledir = '../data/training/rms003/merged'
ROOT.gROOT.ProcessLine(".x .root/rootlogon.C")
ROOT.gROOT.ProcessLine(".L macros/kernelH1.cc+")
heppi.read_plotcard('config/plotcard_data_vbf.json')
heppi.print_cutflow()
(tsig, tbkg) = heppi.book_trees('')
heppi.test_tree_book()
trees = (tsig.GetTree(), tbkg.GetTree())
ws = optimise(trees)