ATLAS Offline Software
|
Functions | |
def | extract (histogram) |
Variables | |
float | ACCEPTANCE = 3.323224e-01 |
parser = argparse.ArgumentParser() | |
type | |
str | |
help | |
default | |
action | |
args = parser.parse_args() | |
infilename = args.infile | |
infile = ROOT.TFile.Open(infilename, 'READ') | |
runmode = args.mode | |
runname = None | |
list | lbdirs = [] |
lbnums = sorted([int(_[3:]) for _ in lbdirs]) | |
effcyt | |
effcyr | |
effcya | |
effcydir | |
fout = ROOT.TFile(args.out if args.out else '%s_all.root' % runname[4:], 'RECREATE') | |
o_run = array('I', [0]) | |
o_lb = array('I', [0]) | |
o_lbwhen = array('d', [0., 0.]) | |
o_z_one = array('f', [0.]) | |
o_z_two = array('f', [0.]) | |
o_trigeff = array('f', [0.]) | |
o_trigeffstat = array('f', [0.]) | |
o_recoeff = array('f', [0.]) | |
o_recoeffstat = array('f', [0.]) | |
o_alleff = array('f', [0.]) | |
o_alleffstat = array('f', [0.]) | |
o_ae = array('f', [0.]) | |
o_aestat = array('f', [0.]) | |
tl = ROOT.TTree( 'lumitree', 'Luminosity tree' ) | |
lblb = fetch_iovs("LBLB", runs=int(runname[4:])).by_run | |
h = infile.Get('%s/%s/GLOBAL/DQTGlobalWZFinder/m_eltrigtp_matches' % (runname, lb)) | |
hmo = infile.Get('%s/%s/GLOBAL/DQTGlobalWZFinder/m_ele_tight_good_os' % (runname, lb)) | |
hms = infile.Get('%s/%s/GLOBAL/DQTGlobalWZFinder/m_ele_tight_good_ss' % (runname, lb)) | |
hno = infile.Get('%s/%s/GLOBAL/DQTGlobalWZFinder/m_ele_tight_bad_os' % (runname, lb)) | |
hns = infile.Get('%s/%s/GLOBAL/DQTGlobalWZFinder/m_ele_tight_bad_ss' % (runname, lb)) | |
lbnum = int(lb[3:]) | |
tuple | yld = (h[2], h[3]) |
tuple | ylderr = (h.GetBinError(2), h.GetBinError(3)) |
A = float(matchos-matchss) | |
B = float(nomatchos-nomatchss) | |
int | eff = 1./(float(A)/B/2.+1.) |
tuple | inverrsq = ((1/2./B)*ylderr[0])**2+((A/2./B**2)*ylderr[1])**2 |
iov = lblb[int(runname[4:])][lbnum-1] | |
matchos | |
matchoserr | |
matchss | |
matchsserr | |
nomatchos | |
nomatchoserr | |
nomatchss | |
nomatchsserr | |
tuple | Aerr = (matchoserr**2+matchsserr**2)**.5 |
tuple | Berr = (nomatchoserr**2+nomatchsserr**2)**.5 |
c1 = ROOT.TCanvas() | |
sumweights = infile.Get('%s/GLOBAL/DQTDataFlow/m_sumweights' % runname) | |
ctr = infile.Get('%s/GLOBAL/DQTGlobalWZFinder/m_Z_Counter_el' % runname) | |
ctrbin = ctr.FindBin(o_lb[0]) | |
p = ctr[ctrbin]/sumweights[ibin] | |
leg = ROOT.TLegend(0.65, 0.7, 0.89, 0.89) | |
effcyrat = effcydir.Clone() | |
def dqt_zlumi_alleff_HIST.extract | ( | histogram | ) |
Definition at line 126 of file dqt_zlumi_alleff_HIST.py.
Definition at line 110 of file dqt_zlumi_alleff_HIST.py.
float dqt_zlumi_alleff_HIST.ACCEPTANCE = 3.323224e-01 |
Definition at line 9 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.action |
Definition at line 17 of file dqt_zlumi_alleff_HIST.py.
tuple dqt_zlumi_alleff_HIST.Aerr = (matchoserr**2+matchsserr**2)**.5 |
Definition at line 141 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.args = parser.parse_args() |
Definition at line 21 of file dqt_zlumi_alleff_HIST.py.
Definition at line 110 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.Berr = (nomatchoserr**2+nomatchsserr**2)**.5 |
Definition at line 143 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.c1 = ROOT.TCanvas() |
Definition at line 168 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.ctr = infile.Get('%s/GLOBAL/DQTGlobalWZFinder/m_Z_Counter_el' % runname) |
Definition at line 193 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.ctrbin = ctr.FindBin(o_lb[0]) |
Definition at line 200 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.default |
Definition at line 16 of file dqt_zlumi_alleff_HIST.py.
Definition at line 113 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.effcya |
Definition at line 53 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.effcydir |
Definition at line 55 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.effcyr |
Definition at line 51 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.effcyrat = effcydir.Clone() |
Definition at line 223 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.effcyt |
Definition at line 49 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.fout = ROOT.TFile(args.out if args.out else '%s_all.root' % runname[4:], 'RECREATE') |
Definition at line 59 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.h = infile.Get('%s/%s/GLOBAL/DQTGlobalWZFinder/m_eltrigtp_matches' % (runname, lb)) |
Definition at line 95 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.help |
Definition at line 13 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.hmo = infile.Get('%s/%s/GLOBAL/DQTGlobalWZFinder/m_ele_tight_good_os' % (runname, lb)) |
Definition at line 96 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.hms = infile.Get('%s/%s/GLOBAL/DQTGlobalWZFinder/m_ele_tight_good_ss' % (runname, lb)) |
Definition at line 97 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.hno = infile.Get('%s/%s/GLOBAL/DQTGlobalWZFinder/m_ele_tight_bad_os' % (runname, lb)) |
Definition at line 98 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.hns = infile.Get('%s/%s/GLOBAL/DQTGlobalWZFinder/m_ele_tight_bad_ss' % (runname, lb)) |
Definition at line 99 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.infile = ROOT.TFile.Open(infilename, 'READ') |
Definition at line 24 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.infilename = args.infile |
Definition at line 23 of file dqt_zlumi_alleff_HIST.py.
Definition at line 114 of file dqt_zlumi_alleff_HIST.py.
Definition at line 119 of file dqt_zlumi_alleff_HIST.py.
list dqt_zlumi_alleff_HIST.lbdirs = [] |
Definition at line 41 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.lblb = fetch_iovs("LBLB", runs=int(runname[4:])).by_run |
Definition at line 92 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.lbnum = int(lb[3:]) |
Definition at line 106 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.lbnums = sorted([int(_[3:]) for _ in lbdirs]) |
Definition at line 47 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.leg = ROOT.TLegend(0.65, 0.7, 0.89, 0.89) |
Definition at line 217 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.matchos |
Definition at line 130 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.matchoserr |
Definition at line 130 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.matchss |
Definition at line 131 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.matchsserr |
Definition at line 131 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.nomatchos |
Definition at line 132 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.nomatchoserr |
Definition at line 132 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.nomatchss |
Definition at line 133 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.nomatchsserr |
Definition at line 133 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.o_ae = array('f', [0.]) |
Definition at line 71 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.o_aestat = array('f', [0.]) |
Definition at line 72 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.o_alleff = array('f', [0.]) |
Definition at line 69 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.o_alleffstat = array('f', [0.]) |
Definition at line 70 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.o_lb = array('I', [0]) |
Definition at line 61 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.o_lbwhen = array('d', [0., 0.]) |
Definition at line 62 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.o_recoeff = array('f', [0.]) |
Definition at line 67 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.o_recoeffstat = array('f', [0.]) |
Definition at line 68 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.o_run = array('I', [0]) |
Definition at line 60 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.o_trigeff = array('f', [0.]) |
Definition at line 65 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.o_trigeffstat = array('f', [0.]) |
Definition at line 66 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.o_z_one = array('f', [0.]) |
Definition at line 63 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.o_z_two = array('f', [0.]) |
Definition at line 64 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.p = ctr[ctrbin]/sumweights[ibin] |
Definition at line 203 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.parser = argparse.ArgumentParser() |
Definition at line 12 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.runmode = args.mode |
Definition at line 26 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.runname = None |
Definition at line 30 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.str |
Definition at line 13 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.sumweights = infile.Get('%s/GLOBAL/DQTDataFlow/m_sumweights' % runname) |
Definition at line 192 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.tl = ROOT.TTree( 'lumitree', 'Luminosity tree' ) |
Definition at line 73 of file dqt_zlumi_alleff_HIST.py.
dqt_zlumi_alleff_HIST.type |
Definition at line 13 of file dqt_zlumi_alleff_HIST.py.
Definition at line 107 of file dqt_zlumi_alleff_HIST.py.
tuple dqt_zlumi_alleff_HIST.ylderr = (h.GetBinError(2), h.GetBinError(3)) |
Definition at line 108 of file dqt_zlumi_alleff_HIST.py.