ATLAS Offline Software
|
Functions | |
def | mu_dep_eff (mu) |
Variables | |
format | |
level | |
parser = argparse.ArgumentParser() | |
type | |
str | |
help | |
default | |
action | |
int | |
args = parser.parse_args() | |
int | BINWIDTH = 10 |
float | ZPURITYFACTOR = 0.9935 |
float | ZXSEC = 1.929 |
float | ZATIMESC = 0.29632 |
fin = ROOT.TFile.Open(args.infile) | |
runname = None | |
grl = DQUtils.grl.load_grl(args.grl) | |
z_m = fin.Get('%s/GLOBAL/DQTGlobalWZFinder/m_Z_Counter_mu' % runname) | |
outfname = args.out | |
runmode = args.mode | |
fout = None | |
t = None | |
o_passgrl = array('i', [0]) | |
o_mu = array('f', [0.]) | |
o_lb_rb = array('I', [0,0]) | |
o_lbwhen_rb = array('d', [0., 0.]) | |
o_zlumi_rb = array('f', [0.]) | |
o_zlumistat_rb = array('f', [0.]) | |
o_offlumi_rb = array('f', [0.]) | |
o_mu_rb = array('f', [0.]) | |
o_lblive_rb = array('f', [0.]) | |
o_run = array('I', [int(runname[4:])]) | |
o_lb = array('I', [0]) | |
o_lbwhen = array('d', [0., 0.]) | |
o_zraw = array('f', [0.]) | |
o_zrawstat = array('f', [0.]) | |
o_zlumi = array('f', [0.]) | |
o_zlumistat = array('f', [0.]) | |
o_offlumi = array('f', [0.]) | |
o_lblive = array('f', [0.]) | |
o_lhcfill = array('I', [0]) | |
t_rb = ROOT.TTree( 'lumitree_rb', 'Luminosity tree, rebinned' ) | |
lb_length = fin.Get('%s/GLOBAL/DQTGlobalWZFinder/m_lblength_lb' % runname) | |
lbmin | |
lbmax | |
livetime = ROOT.TProfile('livetime', 'Livetime', int(lbmax-lbmin), lbmin, lbmax) | |
official_lum = ROOT.TProfile('official_lum', 'official integrated luminosity', int(lbmax-lbmin), lbmin, lbmax) | |
official_lum_zero = ROOT.TProfile('official_lum_zero', 'official inst luminosity', int(lbmax-lbmin), lbmin, lbmax) | |
official_mu = ROOT.TProfile('official_mu', 'official mu', int(lbmax-lbmin), lbmin, lbmax) | |
lblb = fetch_iovs("LBLB", runs=int(runname[4:])) | |
lbtime = inverse_lblb(lblb) | |
iovs_acct = fetch_iovs('COOLOFL_TRIGGER::/TRIGGER/OFLLUMI/LumiAccounting', lbtime.first.since, lbtime.last.until, tag=args.tag) | |
iovs_lum = fetch_iovs('COOLOFL_TRIGGER::%s' % args.lumifolder, lblb.first.since, lblb.last.until, tag=args.lumitag, channels=[0]) | |
dictionary | lb_start_end = {} |
dictionary | lb_lhcfill = {} |
list | offlumiov = [_ for _ in iovs_lum if _.since.lumi==iov.LumiBlock] |
divisor = lb_length.Clone('divisor').ProjectionX() | |
px = livetime.ProjectionX() | |
tuple | nrebinned_bins = ((lbmax-lbmin) // BINWIDTH) + 1 |
string | lumititle = 'Lumi, Z->ee (Run %s)' % runname[4:] |
string | efftitle = 'eff #sigma, Z->ee' |
string | lumirawtitle = 'Lumi, Z->ee per LB' |
lumiplot_m | |
lumiplot_m_ratio | |
xsec_m | |
lumiplot_raw_m | |
num_m | |
lum | |
denom | |
weighted_mu | |
tot_num_m | |
tot_denom | |
tot_lum | |
bool | profileflag = True |
def | l_zatimesc = mu_dep_eff(official_mu[ibin]) |
ribin = int(ibin // BINWIDTH) | |
tge = ROOT.TGraphErrors(1) | |
c1 = ROOT.TCanvas() | |
leg = ROOT.TLegend(0.6, 0.75, 0.89, 0.88) | |
def dqt_zlumi_compute_lumi.mu_dep_eff | ( | mu | ) |
Definition at line 35 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.action |
Definition at line 15 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.args = parser.parse_args() |
Definition at line 26 of file dqt_zlumi_compute_lumi.py.
int dqt_zlumi_compute_lumi.BINWIDTH = 10 |
Definition at line 28 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.c1 = ROOT.TCanvas() |
Definition at line 308 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.default |
Definition at line 14 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.denom |
Definition at line 216 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.divisor = lb_length.Clone('divisor').ProjectionX() |
Definition at line 186 of file dqt_zlumi_compute_lumi.py.
string dqt_zlumi_compute_lumi.efftitle = 'eff #sigma, Z->ee' |
Definition at line 194 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.fin = ROOT.TFile.Open(args.infile) |
Definition at line 46 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.format |
Definition at line 7 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.fout = None |
Definition at line 84 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.grl = DQUtils.grl.load_grl(args.grl) |
Definition at line 55 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.help |
Definition at line 10 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.int |
Definition at line 20 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.iovs_acct = fetch_iovs('COOLOFL_TRIGGER::/TRIGGER/OFLLUMI/LumiAccounting', lbtime.first.since, lbtime.last.until, tag=args.tag) |
Definition at line 155 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.iovs_lum = fetch_iovs('COOLOFL_TRIGGER::%s' % args.lumifolder, lblb.first.since, lblb.last.until, tag=args.lumitag, channels=[0]) |
Definition at line 157 of file dqt_zlumi_compute_lumi.py.
float dqt_zlumi_compute_lumi.l_zatimesc = mu_dep_eff(official_mu[ibin]) |
Definition at line 226 of file dqt_zlumi_compute_lumi.py.
Definition at line 137 of file dqt_zlumi_compute_lumi.py.
dictionary dqt_zlumi_compute_lumi.lb_lhcfill = {} |
Definition at line 160 of file dqt_zlumi_compute_lumi.py.
dictionary dqt_zlumi_compute_lumi.lb_start_end = {} |
Definition at line 159 of file dqt_zlumi_compute_lumi.py.
Definition at line 152 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.lbmax |
Definition at line 138 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.lbmin |
Definition at line 138 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.lbtime = inverse_lblb(lblb) |
Definition at line 153 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.leg = ROOT.TLegend(0.6, 0.75, 0.89, 0.88) |
Definition at line 311 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.level |
Definition at line 7 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.livetime = ROOT.TProfile('livetime', 'Livetime', int(lbmax-lbmin), lbmin, lbmax) |
Definition at line 143 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.lum |
Definition at line 216 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.lumiplot_m |
Definition at line 202 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.lumiplot_m_ratio |
Definition at line 205 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.lumiplot_raw_m |
Definition at line 212 of file dqt_zlumi_compute_lumi.py.
string dqt_zlumi_compute_lumi.lumirawtitle = 'Lumi, Z->ee per LB' |
Definition at line 195 of file dqt_zlumi_compute_lumi.py.
string dqt_zlumi_compute_lumi.lumititle = 'Lumi, Z->ee (Run %s)' % runname[4:] |
Definition at line 193 of file dqt_zlumi_compute_lumi.py.
Definition at line 190 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.num_m |
Definition at line 216 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.o_lb = array('I', [0]) |
Definition at line 101 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.o_lb_rb = array('I', [0,0]) |
Definition at line 91 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.o_lblive = array('f', [0.]) |
Definition at line 108 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.o_lblive_rb = array('f', [0.]) |
Definition at line 97 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.o_lbwhen = array('d', [0., 0.]) |
Definition at line 102 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.o_lbwhen_rb = array('d', [0., 0.]) |
Definition at line 92 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.o_lhcfill = array('I', [0]) |
Definition at line 109 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.o_mu = array('f', [0.]) |
Definition at line 89 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.o_mu_rb = array('f', [0.]) |
Definition at line 96 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.o_offlumi = array('f', [0.]) |
Definition at line 107 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.o_offlumi_rb = array('f', [0.]) |
Definition at line 95 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.o_passgrl = array('i', [0]) |
Definition at line 88 of file dqt_zlumi_compute_lumi.py.
Definition at line 100 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.o_zlumi = array('f', [0.]) |
Definition at line 105 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.o_zlumi_rb = array('f', [0.]) |
Definition at line 93 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.o_zlumistat = array('f', [0.]) |
Definition at line 106 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.o_zlumistat_rb = array('f', [0.]) |
Definition at line 94 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.o_zraw = array('f', [0.]) |
Definition at line 103 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.o_zrawstat = array('f', [0.]) |
Definition at line 104 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.official_lum = ROOT.TProfile('official_lum', 'official integrated luminosity', int(lbmax-lbmin), lbmin, lbmax) |
Definition at line 147 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.official_lum_zero = ROOT.TProfile('official_lum_zero', 'official inst luminosity', int(lbmax-lbmin), lbmin, lbmax) |
Definition at line 148 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.official_mu = ROOT.TProfile('official_mu', 'official mu', int(lbmax-lbmin), lbmin, lbmax) |
Definition at line 149 of file dqt_zlumi_compute_lumi.py.
Definition at line 176 of file dqt_zlumi_compute_lumi.py.
string dqt_zlumi_compute_lumi.outfname = args.out |
Definition at line 65 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.parser = argparse.ArgumentParser() |
Definition at line 9 of file dqt_zlumi_compute_lumi.py.
bool dqt_zlumi_compute_lumi.profileflag = True |
Definition at line 219 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.px = livetime.ProjectionX() |
Definition at line 187 of file dqt_zlumi_compute_lumi.py.
Definition at line 261 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.runmode = args.mode |
Definition at line 69 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.runname = None |
Definition at line 47 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.str |
Definition at line 10 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.t = None |
Definition at line 85 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.t_rb = ROOT.TTree( 'lumitree_rb', 'Luminosity tree, rebinned' ) |
Definition at line 124 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.tge = ROOT.TGraphErrors(1) |
Definition at line 301 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.tot_denom |
Definition at line 217 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.tot_lum |
Definition at line 217 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.tot_num_m |
Definition at line 217 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.type |
Definition at line 10 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.weighted_mu |
Definition at line 216 of file dqt_zlumi_compute_lumi.py.
dqt_zlumi_compute_lumi.xsec_m |
Definition at line 210 of file dqt_zlumi_compute_lumi.py.
Definition at line 63 of file dqt_zlumi_compute_lumi.py.
float dqt_zlumi_compute_lumi.ZATIMESC = 0.29632 |
Definition at line 33 of file dqt_zlumi_compute_lumi.py.
float dqt_zlumi_compute_lumi.ZPURITYFACTOR = 0.9935 |
Definition at line 30 of file dqt_zlumi_compute_lumi.py.
float dqt_zlumi_compute_lumi.ZXSEC = 1.929 |
Definition at line 31 of file dqt_zlumi_compute_lumi.py.