ATLAS Offline Software
Namespaces | Functions | Variables
dqt_zlumi_compute_lumi.py File Reference

Go to the source code of this file.

Namespaces

 dqt_zlumi_compute_lumi
 

Functions

def dqt_zlumi_compute_lumi.mu_dep_eff (mu)
 

Variables

 dqt_zlumi_compute_lumi.format
 
 dqt_zlumi_compute_lumi.level
 
 dqt_zlumi_compute_lumi.parser = argparse.ArgumentParser()
 
 dqt_zlumi_compute_lumi.type
 
 dqt_zlumi_compute_lumi.str
 
 dqt_zlumi_compute_lumi.help
 
 dqt_zlumi_compute_lumi.default
 
 dqt_zlumi_compute_lumi.action
 
 dqt_zlumi_compute_lumi.int
 
 dqt_zlumi_compute_lumi.args = parser.parse_args()
 
int dqt_zlumi_compute_lumi.BINWIDTH = 10
 
float dqt_zlumi_compute_lumi.ZPURITYFACTOR = 0.9935
 
float dqt_zlumi_compute_lumi.ZXSEC = 1.929
 
float dqt_zlumi_compute_lumi.ZATIMESC = 0.29632
 
 dqt_zlumi_compute_lumi.fin = ROOT.TFile.Open(args.infile)
 
 dqt_zlumi_compute_lumi.runname = None
 
 dqt_zlumi_compute_lumi.grl = DQUtils.grl.load_grl(args.grl)
 
 dqt_zlumi_compute_lumi.z_m = fin.Get('%s/GLOBAL/DQTGlobalWZFinder/m_Z_Counter_mu' % runname)
 
 dqt_zlumi_compute_lumi.outfname = args.out
 
 dqt_zlumi_compute_lumi.runmode = args.mode
 
 dqt_zlumi_compute_lumi.fout = None
 
 dqt_zlumi_compute_lumi.t = None
 
 dqt_zlumi_compute_lumi.o_passgrl = array('i', [0])
 
 dqt_zlumi_compute_lumi.o_mu = array('f', [0.])
 
 dqt_zlumi_compute_lumi.o_lb_rb = array('I', [0,0])
 
 dqt_zlumi_compute_lumi.o_lbwhen_rb = array('d', [0., 0.])
 
 dqt_zlumi_compute_lumi.o_zlumi_rb = array('f', [0.])
 
 dqt_zlumi_compute_lumi.o_zlumistat_rb = array('f', [0.])
 
 dqt_zlumi_compute_lumi.o_offlumi_rb = array('f', [0.])
 
 dqt_zlumi_compute_lumi.o_mu_rb = array('f', [0.])
 
 dqt_zlumi_compute_lumi.o_lblive_rb = array('f', [0.])
 
 dqt_zlumi_compute_lumi.o_run = array('I', [int(runname[4:])])
 
 dqt_zlumi_compute_lumi.o_lb = array('I', [0])
 
 dqt_zlumi_compute_lumi.o_lbwhen = array('d', [0., 0.])
 
 dqt_zlumi_compute_lumi.o_zraw = array('f', [0.])
 
 dqt_zlumi_compute_lumi.o_zrawstat = array('f', [0.])
 
 dqt_zlumi_compute_lumi.o_zlumi = array('f', [0.])
 
 dqt_zlumi_compute_lumi.o_zlumistat = array('f', [0.])
 
 dqt_zlumi_compute_lumi.o_offlumi = array('f', [0.])
 
 dqt_zlumi_compute_lumi.o_lblive = array('f', [0.])
 
 dqt_zlumi_compute_lumi.o_lhcfill = array('I', [0])
 
 dqt_zlumi_compute_lumi.t_rb = ROOT.TTree( 'lumitree_rb', 'Luminosity tree, rebinned' )
 
 dqt_zlumi_compute_lumi.lb_length = fin.Get('%s/GLOBAL/DQTGlobalWZFinder/m_lblength_lb' % runname)
 
 dqt_zlumi_compute_lumi.lbmin
 
 dqt_zlumi_compute_lumi.lbmax
 
 dqt_zlumi_compute_lumi.livetime = ROOT.TProfile('livetime', 'Livetime', int(lbmax-lbmin), lbmin, lbmax)
 
 dqt_zlumi_compute_lumi.official_lum = ROOT.TProfile('official_lum', 'official integrated luminosity', int(lbmax-lbmin), lbmin, lbmax)
 
 dqt_zlumi_compute_lumi.official_lum_zero = ROOT.TProfile('official_lum_zero', 'official inst luminosity', int(lbmax-lbmin), lbmin, lbmax)
 
 dqt_zlumi_compute_lumi.official_mu = ROOT.TProfile('official_mu', 'official mu', int(lbmax-lbmin), lbmin, lbmax)
 
 dqt_zlumi_compute_lumi.lblb = fetch_iovs("LBLB", runs=int(runname[4:]))
 
 dqt_zlumi_compute_lumi.lbtime = inverse_lblb(lblb)
 
 dqt_zlumi_compute_lumi.iovs_acct = fetch_iovs('COOLOFL_TRIGGER::/TRIGGER/OFLLUMI/LumiAccounting', lbtime.first.since, lbtime.last.until, tag=args.tag)
 
 dqt_zlumi_compute_lumi.iovs_lum = fetch_iovs('COOLOFL_TRIGGER::%s' % args.lumifolder, lblb.first.since, lblb.last.until, tag=args.lumitag, channels=[0])
 
dictionary dqt_zlumi_compute_lumi.lb_start_end = {}
 
dictionary dqt_zlumi_compute_lumi.lb_lhcfill = {}
 
list dqt_zlumi_compute_lumi.offlumiov = [_ for _ in iovs_lum if _.since.lumi==iov.LumiBlock]
 
 dqt_zlumi_compute_lumi.divisor = lb_length.Clone('divisor').ProjectionX()
 
 dqt_zlumi_compute_lumi.px = livetime.ProjectionX()
 
tuple dqt_zlumi_compute_lumi.nrebinned_bins = ((lbmax-lbmin) // BINWIDTH) + 1
 
string dqt_zlumi_compute_lumi.lumititle = 'Lumi, Z->ee (Run %s)' % runname[4:]
 
string dqt_zlumi_compute_lumi.efftitle = 'eff #sigma, Z->ee'
 
string dqt_zlumi_compute_lumi.lumirawtitle = 'Lumi, Z->ee per LB'
 
 dqt_zlumi_compute_lumi.lumiplot_m
 
 dqt_zlumi_compute_lumi.lumiplot_m_ratio
 
 dqt_zlumi_compute_lumi.xsec_m
 
 dqt_zlumi_compute_lumi.lumiplot_raw_m
 
 dqt_zlumi_compute_lumi.num_m
 
 dqt_zlumi_compute_lumi.lum
 
 dqt_zlumi_compute_lumi.denom
 
 dqt_zlumi_compute_lumi.weighted_mu
 
 dqt_zlumi_compute_lumi.tot_num_m
 
 dqt_zlumi_compute_lumi.tot_denom
 
 dqt_zlumi_compute_lumi.tot_lum
 
bool dqt_zlumi_compute_lumi.profileflag = True
 
def dqt_zlumi_compute_lumi.l_zatimesc = mu_dep_eff(official_mu[ibin])
 
 dqt_zlumi_compute_lumi.ribin = int(ibin // BINWIDTH)
 
 dqt_zlumi_compute_lumi.tge = ROOT.TGraphErrors(1)
 
 dqt_zlumi_compute_lumi.c1 = ROOT.TCanvas()
 
 dqt_zlumi_compute_lumi.leg = ROOT.TLegend(0.6, 0.75, 0.89, 0.88)