ATLAS Offline Software
Functions | Variables
dqt_zlumi_combine_lumi Namespace Reference

Functions

def correction (mu)
 

Variables

 parser = argparse.ArgumentParser()
 
 type
 
 str
 
 help
 
 int
 
 default
 
 args = parser.parse_args()
 
 recozfname = args.recofile
 
 effzfname = args.efffile
 
 outfname = args.outfile
 
 LUMIBLOCKS = args.nlb
 
float ACCEPTANCE = 3.323224e-01
 
float ZXSEC = 1.929
 
float ZPURITYFACTOR = 0.9935
 
 recozfile = ROOT.TFile.Open(recozfname)
 
 effzfile = ROOT.TFile.Open(effzfname)
 
 recoztree = recozfile.lumitree
 
 effztree = effzfile.lumitree
 
dictionary entrydict = {}
 
tuple lbzero = (recoztree.lb // LUMIBLOCKS)*LUMIBLOCKS
 
 run = recoztree.run
 
dictionary thisdict = entrydict[(run, lbzero)]
 
tuple effcy = (effztree.GetV1()[0]*correction(recoztree.mu))
 
tuple effcywght = (effztree.GetV2()[0]*correction(recoztree.mu))**2
 
 loclivetime = recoztree.lblive
 
 fout = ROOT.TFile.Open(outfname, 'RECREATE')
 
 o_run = array('I', [0])
 
 o_lb = array('I', [0])
 
 o_lbwhen = array('d', [0., 0.])
 
 o_zrate = array('f', [0.])
 
 o_zratestat = array('f', [0.])
 
 o_zlumi = array('f', [0.])
 
 o_zlumistat = array('f', [0.])
 
 o_mu = array('f', [0.])
 
 o_alleffcorr = array('f', [0.])
 
 o_alleffcorrstat = array('f', [0.])
 
 o_offlumi = array('f', [0.])
 
 o_lblive = array('f', [0.])
 
 o_lhcfill = array('I', [0])
 
 t = ROOT.TTree( 'lumitree', 'Luminosity tree' )
 
 eff = entryval['rolleff']/entryval['rollefferrsq']
 
int efferr = 1/entryval['rollefferrsq']**.5
 
 newrzt = recoztree.CloneTree()
 
 newezt = effztree.CloneTree()
 

Function Documentation

◆ correction()

def dqt_zlumi_combine_lumi.correction (   mu)

Definition at line 25 of file dqt_zlumi_combine_lumi.py.

25 def correction(mu):
26  # R20.7
27  # return 1.04524-0.000108956*mu
28  # R21
29  #return 1.04701-0.000206159*mu
30  return 0.998758-0.000157214*mu
31  #return 1.
32 

Variable Documentation

◆ ACCEPTANCE

float dqt_zlumi_combine_lumi.ACCEPTANCE = 3.323224e-01

Definition at line 21 of file dqt_zlumi_combine_lumi.py.

◆ args

dqt_zlumi_combine_lumi.args = parser.parse_args()

Definition at line 13 of file dqt_zlumi_combine_lumi.py.

◆ default

dqt_zlumi_combine_lumi.default

Definition at line 12 of file dqt_zlumi_combine_lumi.py.

◆ eff

dqt_zlumi_combine_lumi.eff = entryval['rolleff']/entryval['rollefferrsq']

Definition at line 108 of file dqt_zlumi_combine_lumi.py.

◆ effcy

tuple dqt_zlumi_combine_lumi.effcy = (effztree.GetV1()[0]*correction(recoztree.mu))

Definition at line 55 of file dqt_zlumi_combine_lumi.py.

◆ effcywght

tuple dqt_zlumi_combine_lumi.effcywght = (effztree.GetV2()[0]*correction(recoztree.mu))**2

Definition at line 60 of file dqt_zlumi_combine_lumi.py.

◆ efferr

int dqt_zlumi_combine_lumi.efferr = 1/entryval['rollefferrsq']**.5

Definition at line 109 of file dqt_zlumi_combine_lumi.py.

◆ effzfile

dqt_zlumi_combine_lumi.effzfile = ROOT.TFile.Open(effzfname)

Definition at line 34 of file dqt_zlumi_combine_lumi.py.

◆ effzfname

dqt_zlumi_combine_lumi.effzfname = args.efffile

Definition at line 16 of file dqt_zlumi_combine_lumi.py.

◆ effztree

dqt_zlumi_combine_lumi.effztree = effzfile.lumitree

Definition at line 37 of file dqt_zlumi_combine_lumi.py.

◆ entrydict

dictionary dqt_zlumi_combine_lumi.entrydict = {}

Definition at line 39 of file dqt_zlumi_combine_lumi.py.

◆ fout

dqt_zlumi_combine_lumi.fout = ROOT.TFile.Open(outfname, 'RECREATE')

Definition at line 75 of file dqt_zlumi_combine_lumi.py.

◆ help

dqt_zlumi_combine_lumi.help

Definition at line 8 of file dqt_zlumi_combine_lumi.py.

◆ int

dqt_zlumi_combine_lumi.int

Definition at line 11 of file dqt_zlumi_combine_lumi.py.

◆ lbzero

tuple dqt_zlumi_combine_lumi.lbzero = (recoztree.lb // LUMIBLOCKS)*LUMIBLOCKS

Definition at line 51 of file dqt_zlumi_combine_lumi.py.

◆ loclivetime

dqt_zlumi_combine_lumi.loclivetime = recoztree.lblive

Definition at line 63 of file dqt_zlumi_combine_lumi.py.

◆ LUMIBLOCKS

dqt_zlumi_combine_lumi.LUMIBLOCKS = args.nlb

Definition at line 19 of file dqt_zlumi_combine_lumi.py.

◆ newezt

dqt_zlumi_combine_lumi.newezt = effztree.CloneTree()

Definition at line 131 of file dqt_zlumi_combine_lumi.py.

◆ newrzt

dqt_zlumi_combine_lumi.newrzt = recoztree.CloneTree()

Definition at line 129 of file dqt_zlumi_combine_lumi.py.

◆ o_alleffcorr

dqt_zlumi_combine_lumi.o_alleffcorr = array('f', [0.])

Definition at line 84 of file dqt_zlumi_combine_lumi.py.

◆ o_alleffcorrstat

dqt_zlumi_combine_lumi.o_alleffcorrstat = array('f', [0.])

Definition at line 85 of file dqt_zlumi_combine_lumi.py.

◆ o_lb

dqt_zlumi_combine_lumi.o_lb = array('I', [0])

Definition at line 77 of file dqt_zlumi_combine_lumi.py.

◆ o_lblive

dqt_zlumi_combine_lumi.o_lblive = array('f', [0.])

Definition at line 87 of file dqt_zlumi_combine_lumi.py.

◆ o_lbwhen

dqt_zlumi_combine_lumi.o_lbwhen = array('d', [0., 0.])

Definition at line 78 of file dqt_zlumi_combine_lumi.py.

◆ o_lhcfill

dqt_zlumi_combine_lumi.o_lhcfill = array('I', [0])

Definition at line 88 of file dqt_zlumi_combine_lumi.py.

◆ o_mu

dqt_zlumi_combine_lumi.o_mu = array('f', [0.])

Definition at line 83 of file dqt_zlumi_combine_lumi.py.

◆ o_offlumi

dqt_zlumi_combine_lumi.o_offlumi = array('f', [0.])

Definition at line 86 of file dqt_zlumi_combine_lumi.py.

◆ o_run

dqt_zlumi_combine_lumi.o_run = array('I', [0])

Definition at line 76 of file dqt_zlumi_combine_lumi.py.

◆ o_zlumi

dqt_zlumi_combine_lumi.o_zlumi = array('f', [0.])

Definition at line 81 of file dqt_zlumi_combine_lumi.py.

◆ o_zlumistat

dqt_zlumi_combine_lumi.o_zlumistat = array('f', [0.])

Definition at line 82 of file dqt_zlumi_combine_lumi.py.

◆ o_zrate

dqt_zlumi_combine_lumi.o_zrate = array('f', [0.])

Definition at line 79 of file dqt_zlumi_combine_lumi.py.

◆ o_zratestat

dqt_zlumi_combine_lumi.o_zratestat = array('f', [0.])

Definition at line 80 of file dqt_zlumi_combine_lumi.py.

◆ outfname

dqt_zlumi_combine_lumi.outfname = args.outfile

Definition at line 17 of file dqt_zlumi_combine_lumi.py.

◆ parser

dqt_zlumi_combine_lumi.parser = argparse.ArgumentParser()

Definition at line 7 of file dqt_zlumi_combine_lumi.py.

◆ recozfile

dqt_zlumi_combine_lumi.recozfile = ROOT.TFile.Open(recozfname)

Definition at line 33 of file dqt_zlumi_combine_lumi.py.

◆ recozfname

dqt_zlumi_combine_lumi.recozfname = args.recofile

Definition at line 15 of file dqt_zlumi_combine_lumi.py.

◆ recoztree

dqt_zlumi_combine_lumi.recoztree = recozfile.lumitree

Definition at line 36 of file dqt_zlumi_combine_lumi.py.

◆ run

dqt_zlumi_combine_lumi.run = recoztree.run

Definition at line 52 of file dqt_zlumi_combine_lumi.py.

◆ str

dqt_zlumi_combine_lumi.str

Definition at line 8 of file dqt_zlumi_combine_lumi.py.

◆ t

dqt_zlumi_combine_lumi.t = ROOT.TTree( 'lumitree', 'Luminosity tree' )

Definition at line 89 of file dqt_zlumi_combine_lumi.py.

◆ thisdict

dictionary dqt_zlumi_combine_lumi.thisdict = entrydict[(run, lbzero)]

Definition at line 54 of file dqt_zlumi_combine_lumi.py.

◆ type

dqt_zlumi_combine_lumi.type

Definition at line 8 of file dqt_zlumi_combine_lumi.py.

◆ ZPURITYFACTOR

float dqt_zlumi_combine_lumi.ZPURITYFACTOR = 0.9935

Definition at line 23 of file dqt_zlumi_combine_lumi.py.

◆ ZXSEC

float dqt_zlumi_combine_lumi.ZXSEC = 1.929

Definition at line 22 of file dqt_zlumi_combine_lumi.py.

dqt_zlumi_combine_lumi.correction
def correction(mu)
Definition: dqt_zlumi_combine_lumi.py:25