ATLAS Offline Software
|
Variables | |
EvtMax | |
int | w = 6*len(histnames) |
int | h = 7 |
int | h_th = 0 |
list | Matrix = [0 for x in range(w)] |
currenttime = datetime.datetime.now() | |
rel = currenttime.isoweekday() | |
header = dict([("Object", max(len(h) for h in histnames)),("Test",max(len(t.split("_")[0]) for t in tests)),("p-value",21)]) | |
list | std_line = ["Object","Test","p-value"] |
files = ROOT.TFile(ref_filename), ROOT.TFile(rtt_filename) | |
list | trees = [file.Get(treename) for treename, file in zip([ref_treename, rtt_treename], files)] |
list | hist_pairs = [(histname, tuple(tree.Get(histname) for tree in trees)) for histname in histnames] |
output_file = ROOT.TFile(os.path.join(output_directory, "power_of_test.root"), "RECREATE") | |
output_tree = ROOT.TTree("Tree", "Tree") | |
bins = np.intersect1d(*map(lambda hist: [hist.GetBinLowEdge(i) for i in range(1, hist.GetNbinsX()+2)], hist_pair)) | |
data1 | |
data2 | |
address = np.zeros(1, 'float32') | |
string | htmalhisname = "tot_"+rtt_treename+"_"+histname.replace("/", "_")+".png" |
tests | |
rvs_key | |
parallel | |
string | branchname = '.'.join([histname.replace('/','.'), test.split('_')[0]]) |
branch = output_tree.Branch(branchname, address, "F") | |
p_arr = np.array(p_arr).round(5) | |
string | Testresult = "%s %s:%s +- %s" % (histname,test ,p_arr.mean(),p_arr.std()) |
f_html = open('RTTAlg.html', 'w') | |
RTTAlgmain.address = np.zeros(1, 'float32') |
Definition at line 55 of file RTTAlgmain.py.
RTTAlgmain.bins = np.intersect1d(*map(lambda hist: [hist.GetBinLowEdge(i) for i in range(1, hist.GetNbinsX()+2)], hist_pair)) |
Definition at line 52 of file RTTAlgmain.py.
RTTAlgmain.branch = output_tree.Branch(branchname, address, "F") |
Definition at line 61 of file RTTAlgmain.py.
string RTTAlgmain.branchname = '.'.join([histname.replace('/','.'), test.split('_')[0]]) |
Definition at line 60 of file RTTAlgmain.py.
RTTAlgmain.currenttime = datetime.datetime.now() |
Definition at line 24 of file RTTAlgmain.py.
RTTAlgmain.data1 |
Definition at line 54 of file RTTAlgmain.py.
RTTAlgmain.data2 |
Definition at line 54 of file RTTAlgmain.py.
RTTAlgmain.EvtMax |
Definition at line 14 of file RTTAlgmain.py.
RTTAlgmain.f_html = open('RTTAlg.html', 'w') |
Definition at line 85 of file RTTAlgmain.py.
RTTAlgmain.files = ROOT.TFile(ref_filename), ROOT.TFile(rtt_filename) |
Definition at line 39 of file RTTAlgmain.py.
int RTTAlgmain.h = 7 |
Definition at line 17 of file RTTAlgmain.py.
int RTTAlgmain.h_th = 0 |
Definition at line 18 of file RTTAlgmain.py.
RTTAlgmain.header = dict([("Object", max(len(h) for h in histnames)),("Test",max(len(t.split("_")[0]) for t in tests)),("p-value",21)]) |
Definition at line 34 of file RTTAlgmain.py.
list RTTAlgmain.hist_pairs = [(histname, tuple(tree.Get(histname) for tree in trees)) for histname in histnames] |
Definition at line 41 of file RTTAlgmain.py.
string RTTAlgmain.htmalhisname = "tot_"+rtt_treename+"_"+histname.replace("/", "_")+".png" |
Definition at line 56 of file RTTAlgmain.py.
Definition at line 19 of file RTTAlgmain.py.
RTTAlgmain.output_file = ROOT.TFile(os.path.join(output_directory, "power_of_test.root"), "RECREATE") |
Definition at line 43 of file RTTAlgmain.py.
RTTAlgmain.output_tree = ROOT.TTree("Tree", "Tree") |
Definition at line 44 of file RTTAlgmain.py.
RTTAlgmain.p_arr = np.array(p_arr).round(5) |
Definition at line 62 of file RTTAlgmain.py.
RTTAlgmain.parallel |
Definition at line 59 of file RTTAlgmain.py.
int RTTAlgmain.rel = currenttime.isoweekday() |
Definition at line 25 of file RTTAlgmain.py.
RTTAlgmain.rvs_key |
Definition at line 59 of file RTTAlgmain.py.
list RTTAlgmain.std_line = ["Object","Test","p-value"] |
Definition at line 35 of file RTTAlgmain.py.
string RTTAlgmain.Testresult = "%s %s:%s +- %s" % (histname,test ,p_arr.mean(),p_arr.std()) |
Definition at line 66 of file RTTAlgmain.py.
RTTAlgmain.tests |
Definition at line 59 of file RTTAlgmain.py.
list RTTAlgmain.trees = [file.Get(treename) for treename, file in zip([ref_treename, rtt_treename], files)] |
Definition at line 40 of file RTTAlgmain.py.
int RTTAlgmain.w = 6*len(histnames) |
Definition at line 16 of file RTTAlgmain.py.