ATLAS Offline Software
Variables
RTTAlgmain Namespace Reference

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')
 

Variable Documentation

◆ address

RTTAlgmain.address = np.zeros(1, 'float32')

Definition at line 55 of file RTTAlgmain.py.

◆ bins

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.

◆ branch

RTTAlgmain.branch = output_tree.Branch(branchname, address, "F")

Definition at line 61 of file RTTAlgmain.py.

◆ branchname

string RTTAlgmain.branchname = '.'.join([histname.replace('/','.'), test.split('_')[0]])

Definition at line 60 of file RTTAlgmain.py.

◆ currenttime

RTTAlgmain.currenttime = datetime.datetime.now()

Definition at line 24 of file RTTAlgmain.py.

◆ data1

RTTAlgmain.data1

Definition at line 54 of file RTTAlgmain.py.

◆ data2

RTTAlgmain.data2

Definition at line 54 of file RTTAlgmain.py.

◆ EvtMax

RTTAlgmain.EvtMax

Definition at line 14 of file RTTAlgmain.py.

◆ f_html

RTTAlgmain.f_html = open('RTTAlg.html', 'w')

Definition at line 85 of file RTTAlgmain.py.

◆ files

RTTAlgmain.files = ROOT.TFile(ref_filename), ROOT.TFile(rtt_filename)

Definition at line 39 of file RTTAlgmain.py.

◆ h

int RTTAlgmain.h = 7

Definition at line 17 of file RTTAlgmain.py.

◆ h_th

int RTTAlgmain.h_th = 0

Definition at line 18 of file RTTAlgmain.py.

◆ header

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.

◆ hist_pairs

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.

◆ htmalhisname

string RTTAlgmain.htmalhisname = "tot_"+rtt_treename+"_"+histname.replace("/", "_")+".png"

Definition at line 56 of file RTTAlgmain.py.

◆ Matrix

list RTTAlgmain.Matrix = [0 for x in range(w)]

Definition at line 19 of file RTTAlgmain.py.

◆ output_file

RTTAlgmain.output_file = ROOT.TFile(os.path.join(output_directory, "power_of_test.root"), "RECREATE")

Definition at line 43 of file RTTAlgmain.py.

◆ output_tree

RTTAlgmain.output_tree = ROOT.TTree("Tree", "Tree")

Definition at line 44 of file RTTAlgmain.py.

◆ p_arr

RTTAlgmain.p_arr = np.array(p_arr).round(5)

Definition at line 62 of file RTTAlgmain.py.

◆ parallel

RTTAlgmain.parallel

Definition at line 59 of file RTTAlgmain.py.

◆ rel

int RTTAlgmain.rel = currenttime.isoweekday()

Definition at line 25 of file RTTAlgmain.py.

◆ rvs_key

RTTAlgmain.rvs_key

Definition at line 59 of file RTTAlgmain.py.

◆ std_line

list RTTAlgmain.std_line = ["Object","Test","p-value"]

Definition at line 35 of file RTTAlgmain.py.

◆ Testresult

string RTTAlgmain.Testresult = "%s %s:%s +- %s" % (histname,test ,p_arr.mean(),p_arr.std())

Definition at line 66 of file RTTAlgmain.py.

◆ tests

RTTAlgmain.tests

Definition at line 59 of file RTTAlgmain.py.

◆ trees

list RTTAlgmain.trees = [file.Get(treename) for treename, file in zip([ref_treename, rtt_treename], files)]

Definition at line 40 of file RTTAlgmain.py.

◆ w

int RTTAlgmain.w = 6*len(histnames)

Definition at line 16 of file RTTAlgmain.py.