ATLAS Offline Software
Variables
dqt_zlumi_pandas Namespace Reference

Variables

 format
 
 level
 
 parser = argparse.ArgumentParser()
 
 type
 
 str
 
 help
 
 default
 
 action
 
 args = parser.parse_args()
 
 campaign = args.campaign
 
 update = args.update
 
int BINWIDTH = 10
 
float ZPURITYFACTOR = 0.9935
 
float ZXSEC = 2.0675
 
list zee_missing_lbs = []
 
list zmumu_missing_lbs = []
 
int ntoys = 10000000
 
bool do_toys = False
 
 fin = ROOT.TFile.Open(args.infile)
 
 runname = None
 
 runnumber = runname.replace('run_','')
 
string exit_string = "CSV file already exists for Run " + runnumber + ". Moving to next run..."
 
 out_dir = args.outdir
 
string lb_length_name = '%s/GLOBAL/DQTGlobalWZFinder/duration_vs_LB' % runname
 
string livetime_name = '%s/GLOBAL/DQTGlobalWZFinder/avgLiveFrac_vs_LB' % runname
 
 grlReader = ROOT.Root.TGoodRunsListReader(args.grl)
 
 grl = grlReader.GetMergedGRLCollection()
 
 lb_length_old = fin.Get(lb_length_name)
 
 lbmin
 
 lbmax
 
 lb_length = ROOT.TProfile('lb_length', 'LB length', int(lbmax-lbmin), lbmin, lbmax)
 
 livetime = ROOT.TProfile('livetime', 'Livetime', 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]
 
 lb_full = lb_length.Clone('lb_full').ProjectionX()
 
 divisor = lb_length.Clone('divisor').ProjectionX()
 
 px = livetime.ProjectionX()
 
 hto = fin.Get('%s/GLOBAL/DQTGlobalWZFinder/m_ele_template_os' % (runname))
 
 hts = fin.Get('%s/GLOBAL/DQTGlobalWZFinder/m_ele_template_ss' % (runname))
 
 hphotontotal = fin.Get("%s/GLOBAL/DQTGlobalWZFinder/m_elContainertp_nomatch" % (runname))
 
 h_fit = hphotontotal.Clone()
 
 mass = h_fit.GetBinLowEdge(xbin)
 
dictionary o_recoeff_fit = {}
 
dictionary o_recoerr_fit = {}
 
list lb_minus_one_reco_eff = [1.0, 1.0, 1.0]
 
 this_lb = int(lb_full.GetBinCenter(ibin))
 
string lb = "lb_" + str(this_lb)
 
 pileup = round(official_mu[ibin])
 
 hmo = fin.Get('%s/%s/GLOBAL/DQTGlobalWZFinder/m_ele_tight_good_os' % (runname, lb))
 
 hms = fin.Get('%s/%s/GLOBAL/DQTGlobalWZFinder/m_ele_tight_good_ss' % (runname, lb))
 
 hno = fin.Get('%s/%s/GLOBAL/DQTGlobalWZFinder/m_ele_tight_bad_os' % (runname, lb))
 
 hns = fin.Get('%s/%s/GLOBAL/DQTGlobalWZFinder/m_ele_tight_bad_ss' % (runname, lb))
 
 eff = 0
 
 err = 0
 
int weight = 1/pow(err, 2)
 
 arr_rec_eff = array('d')
 
 arr_rec_err = array('d')
 
 arr_mu = array('d')
 
 tg_fit = ROOT.TGraphErrors(len(arr_mu), arr_mu, arr_rec_eff, ROOT.nullptr, arr_rec_err)
 
string fit_type = "pol0"
 
 csvfile = open(out_dir, 'w')
 
 csvwriter = csv.writer(csvfile, delimiter=',')
 
dictionary lb_minus_one_trig_eff = {}
 
dictionary out_dict = {}
 
 loclivetime = divisor[ibin]
 
dictionary this_fill = lb_lhcfill[this_lb]
 
int passgrl = 1
 
string hname = runname + '/lb_'+str(int(ibin+lbmin-0.5))+'/GLOBAL/DQTGlobalWZFinder/m_Z_mass_opsele'
 
 h = fin.Get('%s/%s/GLOBAL/DQTGlobalWZFinder/m_eltrigtp_matches_os' % (runname, lb))
 
float ACCEPTANCE = 0.2971
 
 z_m = fin.Get(hname).Integral()
 
 z_merr = math.sqrt(z_m)
 
int N1 = 0
 
 N2 = h.GetBinContent(3)
 
 eff_trig
 
 err_trig
 
 arr_trig
 
 arr_NZ
 
 bin1 = hmo.GetXaxis().FindBin(86000)
 
 bin2 = hmo.GetXaxis().FindBin(95000)
 
 eff_reco
 
 err_reco
 
 arr_reco
 
 bin3 = hmo.GetXaxis().FindBin(120000)
 
 bin4 = hmo.GetXaxis().FindBin(250000)
 
 matchos_peak = hmo.Integral(bin1, bin2)
 
 matchos_tail = hmo.Integral(bin3, bin4)
 
 matchss_tail = hms.Integral(bin3, bin4)
 
 nomatchos_peak = hno.Integral(bin1, bin2)
 
 nomatchos_tail = hno.Integral(bin3, bin4)
 
 templateos_peak = hto.Integral(bin1, bin2)
 
 templateos_tail = hto.Integral(bin3, bin4)
 
 templatess_tail = hts.Integral(bin3, bin4)
 
int defaulted_reco_eff = 0
 
int defaulted_trig_eff = 0
 
tuple arr_comb = (1.0 - (1.0 - arr_trig)**2) * (arr_reco)**2
 
tuple nonan_arr_comb = arr_comb[~np.isnan(arr_comb)]
 
 eff_comb = np.median(nonan_arr_comb)
 
tuple err_comb = nonan_arr_comb.std()
 
float eff_Acomb = ACCEPTANCE * eff_comb
 
float err_Acomb = ACCEPTANCE * err_comb
 
 lblive = divisor[ibin]
 
 run = int(runname.replace("run_", ""))
 
tuple effcy = arr_comb * dq_cf.correction(official_mu[ibin], channel, campaign, run)
 
tuple effcyerr = err_comb * dq_cf.correction(official_mu[ibin], channel, campaign, run)
 
float zlumi = 0.0
 
float CORRECTIONS = ZPURITYFACTOR/ACCEPTANCE/ZXSEC
 
 arr_zlumi = np.divide(arr_NZ, effcy) * (CORRECTIONS)/loclivetime
 
 zlumistat = arr_zlumi.std()
 
float zrate = zlumi / CORRECTIONS
 
int lumi_index = len(out_dict['Zee'])-3
 
int error_index = len(out_dict['Zee'])-2
 
tuple zll_lumi = (out_dict['Zee'][lumi_index] + out_dict['Zmumu'][lumi_index])/2
 
float zll_lumi_err = 0.5 * math.sqrt( pow(out_dict['Zee'][error_index], 2) + pow(out_dict['Zmumu'][error_index], 2) )
 
list out_write = [this_fill, run, this_lb, lb_start_end[this_lb][0], lb_start_end[this_lb][1], loclivetime, lb_full[ibin], official_lum_zero[ibin], official_mu[ibin], passgrl] + out_dict["Zee"] + out_dict["Zmumu"] + [zll_lumi, zll_lumi_err]
 

Variable Documentation

◆ ACCEPTANCE

float dqt_zlumi_pandas.ACCEPTANCE = 0.2971

Definition at line 285 of file dqt_zlumi_pandas.py.

◆ action

dqt_zlumi_pandas.action

Definition at line 32 of file dqt_zlumi_pandas.py.

◆ args

dqt_zlumi_pandas.args = parser.parse_args()

Definition at line 40 of file dqt_zlumi_pandas.py.

◆ arr_comb

tuple dqt_zlumi_pandas.arr_comb = (1.0 - (1.0 - arr_trig)**2) * (arr_reco)**2

Definition at line 379 of file dqt_zlumi_pandas.py.

◆ arr_mu

dqt_zlumi_pandas.arr_mu = array('d')

Definition at line 210 of file dqt_zlumi_pandas.py.

◆ arr_NZ

dqt_zlumi_pandas.arr_NZ

Definition at line 320 of file dqt_zlumi_pandas.py.

◆ arr_rec_eff

dqt_zlumi_pandas.arr_rec_eff = array('d')

Definition at line 208 of file dqt_zlumi_pandas.py.

◆ arr_rec_err

dqt_zlumi_pandas.arr_rec_err = array('d')

Definition at line 209 of file dqt_zlumi_pandas.py.

◆ arr_reco

dqt_zlumi_pandas.arr_reco

Definition at line 332 of file dqt_zlumi_pandas.py.

◆ arr_trig

dqt_zlumi_pandas.arr_trig

Definition at line 320 of file dqt_zlumi_pandas.py.

◆ arr_zlumi

dqt_zlumi_pandas.arr_zlumi = np.divide(arr_NZ, effcy) * (CORRECTIONS)/loclivetime

Definition at line 422 of file dqt_zlumi_pandas.py.

◆ bin1

dqt_zlumi_pandas.bin1 = hmo.GetXaxis().FindBin(86000)

Definition at line 329 of file dqt_zlumi_pandas.py.

◆ bin2

dqt_zlumi_pandas.bin2 = hmo.GetXaxis().FindBin(95000)

Definition at line 330 of file dqt_zlumi_pandas.py.

◆ bin3

dqt_zlumi_pandas.bin3 = hmo.GetXaxis().FindBin(120000)

Definition at line 344 of file dqt_zlumi_pandas.py.

◆ bin4

dqt_zlumi_pandas.bin4 = hmo.GetXaxis().FindBin(250000)

Definition at line 345 of file dqt_zlumi_pandas.py.

◆ BINWIDTH

int dqt_zlumi_pandas.BINWIDTH = 10

Definition at line 44 of file dqt_zlumi_pandas.py.

◆ campaign

dqt_zlumi_pandas.campaign = args.campaign

Definition at line 41 of file dqt_zlumi_pandas.py.

◆ CORRECTIONS

float dqt_zlumi_pandas.CORRECTIONS = ZPURITYFACTOR/ACCEPTANCE/ZXSEC

Definition at line 419 of file dqt_zlumi_pandas.py.

◆ csvfile

dqt_zlumi_pandas.csvfile = open(out_dir, 'w')

Definition at line 235 of file dqt_zlumi_pandas.py.

◆ csvwriter

dqt_zlumi_pandas.csvwriter = csv.writer(csvfile, delimiter=',')

Definition at line 236 of file dqt_zlumi_pandas.py.

◆ default

dqt_zlumi_pandas.default

Definition at line 31 of file dqt_zlumi_pandas.py.

◆ defaulted_reco_eff

int dqt_zlumi_pandas.defaulted_reco_eff = 0

Definition at line 366 of file dqt_zlumi_pandas.py.

◆ defaulted_trig_eff

int dqt_zlumi_pandas.defaulted_trig_eff = 0

Definition at line 367 of file dqt_zlumi_pandas.py.

◆ divisor

dqt_zlumi_pandas.divisor = lb_length.Clone('divisor').ProjectionX()

Definition at line 154 of file dqt_zlumi_pandas.py.

◆ do_toys

bool dqt_zlumi_pandas.do_toys = False

Definition at line 55 of file dqt_zlumi_pandas.py.

◆ eff

int dqt_zlumi_pandas.eff = 0

Definition at line 193 of file dqt_zlumi_pandas.py.

◆ eff_Acomb

float dqt_zlumi_pandas.eff_Acomb = ACCEPTANCE * eff_comb

Definition at line 387 of file dqt_zlumi_pandas.py.

◆ eff_comb

tuple dqt_zlumi_pandas.eff_comb = np.median(nonan_arr_comb)

Definition at line 381 of file dqt_zlumi_pandas.py.

◆ eff_reco

dqt_zlumi_pandas.eff_reco

Definition at line 332 of file dqt_zlumi_pandas.py.

◆ eff_trig

dqt_zlumi_pandas.eff_trig

Definition at line 320 of file dqt_zlumi_pandas.py.

◆ effcy

dqt_zlumi_pandas.effcy = arr_comb * dq_cf.correction(official_mu[ibin], channel, campaign, run)

Definition at line 398 of file dqt_zlumi_pandas.py.

◆ effcyerr

tuple dqt_zlumi_pandas.effcyerr = err_comb * dq_cf.correction(official_mu[ibin], channel, campaign, run)

Definition at line 401 of file dqt_zlumi_pandas.py.

◆ err

int dqt_zlumi_pandas.err = 0

Definition at line 193 of file dqt_zlumi_pandas.py.

◆ err_Acomb

float dqt_zlumi_pandas.err_Acomb = ACCEPTANCE * err_comb

Definition at line 388 of file dqt_zlumi_pandas.py.

◆ err_comb

tuple dqt_zlumi_pandas.err_comb = nonan_arr_comb.std()

Definition at line 382 of file dqt_zlumi_pandas.py.

◆ err_reco

dqt_zlumi_pandas.err_reco

Definition at line 332 of file dqt_zlumi_pandas.py.

◆ err_trig

dqt_zlumi_pandas.err_trig

Definition at line 320 of file dqt_zlumi_pandas.py.

◆ error_index

int dqt_zlumi_pandas.error_index = len(out_dict['Zee'])-2

Definition at line 438 of file dqt_zlumi_pandas.py.

◆ exit_string

string dqt_zlumi_pandas.exit_string = "CSV file already exists for Run " + runnumber + ". Moving to next run..."

Definition at line 66 of file dqt_zlumi_pandas.py.

◆ fin

dqt_zlumi_pandas.fin = ROOT.TFile.Open(args.infile)

Definition at line 57 of file dqt_zlumi_pandas.py.

◆ fit_type

string dqt_zlumi_pandas.fit_type = "pol0"

Definition at line 226 of file dqt_zlumi_pandas.py.

◆ format

dqt_zlumi_pandas.format

Definition at line 26 of file dqt_zlumi_pandas.py.

◆ grl

dqt_zlumi_pandas.grl = grlReader.GetMergedGRLCollection()

Definition at line 90 of file dqt_zlumi_pandas.py.

◆ grlReader

dqt_zlumi_pandas.grlReader = ROOT.Root.TGoodRunsListReader(args.grl)

Definition at line 88 of file dqt_zlumi_pandas.py.

◆ h

dqt_zlumi_pandas.h = fin.Get('%s/%s/GLOBAL/DQTGlobalWZFinder/m_eltrigtp_matches_os' % (runname, lb))

Definition at line 275 of file dqt_zlumi_pandas.py.

◆ h_fit

dqt_zlumi_pandas.h_fit = hphotontotal.Clone()

Definition at line 168 of file dqt_zlumi_pandas.py.

◆ help

dqt_zlumi_pandas.help

Definition at line 29 of file dqt_zlumi_pandas.py.

◆ hmo

dqt_zlumi_pandas.hmo = fin.Get('%s/%s/GLOBAL/DQTGlobalWZFinder/m_ele_tight_good_os' % (runname, lb))

Definition at line 187 of file dqt_zlumi_pandas.py.

◆ hms

dqt_zlumi_pandas.hms = fin.Get('%s/%s/GLOBAL/DQTGlobalWZFinder/m_ele_tight_good_ss' % (runname, lb))

Definition at line 188 of file dqt_zlumi_pandas.py.

◆ hname

string dqt_zlumi_pandas.hname = runname + '/lb_'+str(int(ibin+lbmin-0.5))+'/GLOBAL/DQTGlobalWZFinder/m_Z_mass_opsele'

Definition at line 272 of file dqt_zlumi_pandas.py.

◆ hno

dqt_zlumi_pandas.hno = fin.Get('%s/%s/GLOBAL/DQTGlobalWZFinder/m_ele_tight_bad_os' % (runname, lb))

Definition at line 189 of file dqt_zlumi_pandas.py.

◆ hns

dqt_zlumi_pandas.hns = fin.Get('%s/%s/GLOBAL/DQTGlobalWZFinder/m_ele_tight_bad_ss' % (runname, lb))

Definition at line 190 of file dqt_zlumi_pandas.py.

◆ hphotontotal

dqt_zlumi_pandas.hphotontotal = fin.Get("%s/GLOBAL/DQTGlobalWZFinder/m_elContainertp_nomatch" % (runname))

Definition at line 164 of file dqt_zlumi_pandas.py.

◆ hto

dqt_zlumi_pandas.hto = fin.Get('%s/GLOBAL/DQTGlobalWZFinder/m_ele_template_os' % (runname))

Definition at line 162 of file dqt_zlumi_pandas.py.

◆ hts

dqt_zlumi_pandas.hts = fin.Get('%s/GLOBAL/DQTGlobalWZFinder/m_ele_template_ss' % (runname))

Definition at line 163 of file dqt_zlumi_pandas.py.

◆ iovs_acct

dqt_zlumi_pandas.iovs_acct = fetch_iovs('COOLOFL_TRIGGER::/TRIGGER/OFLLUMI/LumiAccounting', lbtime.first.since, lbtime.last.until, tag=args.tag)

Definition at line 122 of file dqt_zlumi_pandas.py.

◆ iovs_lum

dqt_zlumi_pandas.iovs_lum = fetch_iovs('COOLOFL_TRIGGER::%s' % args.lumifolder, lblb.first.since, lblb.last.until, tag=args.lumitag, channels=[0])

Definition at line 126 of file dqt_zlumi_pandas.py.

◆ lb

string dqt_zlumi_pandas.lb = "lb_" + str(this_lb)

Definition at line 184 of file dqt_zlumi_pandas.py.

◆ lb_full

dqt_zlumi_pandas.lb_full = lb_length.Clone('lb_full').ProjectionX()

Definition at line 153 of file dqt_zlumi_pandas.py.

◆ lb_length

dqt_zlumi_pandas.lb_length = ROOT.TProfile('lb_length', 'LB length', int(lbmax-lbmin), lbmin, lbmax)

Definition at line 103 of file dqt_zlumi_pandas.py.

◆ lb_length_name

string dqt_zlumi_pandas.lb_length_name = '%s/GLOBAL/DQTGlobalWZFinder/duration_vs_LB' % runname

Definition at line 80 of file dqt_zlumi_pandas.py.

◆ lb_length_old

dqt_zlumi_pandas.lb_length_old = fin.Get(lb_length_name)

Definition at line 101 of file dqt_zlumi_pandas.py.

◆ lb_lhcfill

dictionary dqt_zlumi_pandas.lb_lhcfill = {}

Definition at line 129 of file dqt_zlumi_pandas.py.

◆ lb_minus_one_reco_eff

dictionary dqt_zlumi_pandas.lb_minus_one_reco_eff = [1.0, 1.0, 1.0]

Definition at line 181 of file dqt_zlumi_pandas.py.

◆ lb_minus_one_trig_eff

dictionary dqt_zlumi_pandas.lb_minus_one_trig_eff = {}

Definition at line 246 of file dqt_zlumi_pandas.py.

◆ lb_start_end

dictionary dqt_zlumi_pandas.lb_start_end = {}

Definition at line 128 of file dqt_zlumi_pandas.py.

◆ lblb

dqt_zlumi_pandas.lblb = fetch_iovs("LBLB", runs=int(runname[4:]))

Definition at line 120 of file dqt_zlumi_pandas.py.

◆ lblive

dqt_zlumi_pandas.lblive = divisor[ibin]

Definition at line 390 of file dqt_zlumi_pandas.py.

◆ lbmax

dqt_zlumi_pandas.lbmax

Definition at line 102 of file dqt_zlumi_pandas.py.

◆ lbmin

dqt_zlumi_pandas.lbmin

Definition at line 102 of file dqt_zlumi_pandas.py.

◆ lbtime

dqt_zlumi_pandas.lbtime = inverse_lblb(lblb)

Definition at line 121 of file dqt_zlumi_pandas.py.

◆ level

dqt_zlumi_pandas.level

Definition at line 26 of file dqt_zlumi_pandas.py.

◆ livetime

dqt_zlumi_pandas.livetime = ROOT.TProfile('livetime', 'Livetime', int(lbmax-lbmin), lbmin, lbmax)

Definition at line 112 of file dqt_zlumi_pandas.py.

◆ livetime_name

string dqt_zlumi_pandas.livetime_name = '%s/GLOBAL/DQTGlobalWZFinder/avgLiveFrac_vs_LB' % runname

Definition at line 81 of file dqt_zlumi_pandas.py.

◆ loclivetime

float dqt_zlumi_pandas.loclivetime = divisor[ibin]

Definition at line 256 of file dqt_zlumi_pandas.py.

◆ lumi_index

int dqt_zlumi_pandas.lumi_index = len(out_dict['Zee'])-3

Definition at line 437 of file dqt_zlumi_pandas.py.

◆ mass

dqt_zlumi_pandas.mass = h_fit.GetBinLowEdge(xbin)

Definition at line 170 of file dqt_zlumi_pandas.py.

◆ matchos_peak

dqt_zlumi_pandas.matchos_peak = hmo.Integral(bin1, bin2)

Definition at line 346 of file dqt_zlumi_pandas.py.

◆ matchos_tail

dqt_zlumi_pandas.matchos_tail = hmo.Integral(bin3, bin4)

Definition at line 347 of file dqt_zlumi_pandas.py.

◆ matchss_tail

dqt_zlumi_pandas.matchss_tail = hms.Integral(bin3, bin4)

Definition at line 348 of file dqt_zlumi_pandas.py.

◆ N1

dqt_zlumi_pandas.N1 = 0

Definition at line 315 of file dqt_zlumi_pandas.py.

◆ N2

dqt_zlumi_pandas.N2 = h.GetBinContent(3)

Definition at line 318 of file dqt_zlumi_pandas.py.

◆ nomatchos_peak

dqt_zlumi_pandas.nomatchos_peak = hno.Integral(bin1, bin2)

Definition at line 349 of file dqt_zlumi_pandas.py.

◆ nomatchos_tail

dqt_zlumi_pandas.nomatchos_tail = hno.Integral(bin3, bin4)

Definition at line 350 of file dqt_zlumi_pandas.py.

◆ nonan_arr_comb

tuple dqt_zlumi_pandas.nonan_arr_comb = arr_comb[~np.isnan(arr_comb)]

Definition at line 380 of file dqt_zlumi_pandas.py.

◆ ntoys

int dqt_zlumi_pandas.ntoys = 10000000

Definition at line 54 of file dqt_zlumi_pandas.py.

◆ o_recoeff_fit

dictionary dqt_zlumi_pandas.o_recoeff_fit = {}

Definition at line 177 of file dqt_zlumi_pandas.py.

◆ o_recoerr_fit

dictionary dqt_zlumi_pandas.o_recoerr_fit = {}

Definition at line 178 of file dqt_zlumi_pandas.py.

◆ official_lum_zero

dqt_zlumi_pandas.official_lum_zero = ROOT.TProfile('official_lum_zero', 'official inst luminosity', int(lbmax-lbmin), lbmin, lbmax)

Definition at line 117 of file dqt_zlumi_pandas.py.

◆ official_mu

dqt_zlumi_pandas.official_mu = ROOT.TProfile('official_mu', 'official mu', int(lbmax-lbmin), lbmin, lbmax)

Definition at line 118 of file dqt_zlumi_pandas.py.

◆ offlumiov

list dqt_zlumi_pandas.offlumiov = [_ for _ in iovs_lum if _.since.lumi==iov.LumiBlock]

Definition at line 144 of file dqt_zlumi_pandas.py.

◆ out_dict

dictionary dqt_zlumi_pandas.out_dict = {}

Definition at line 251 of file dqt_zlumi_pandas.py.

◆ out_dir

string dqt_zlumi_pandas.out_dir = args.outdir

Definition at line 69 of file dqt_zlumi_pandas.py.

◆ out_write

list dqt_zlumi_pandas.out_write = [this_fill, run, this_lb, lb_start_end[this_lb][0], lb_start_end[this_lb][1], loclivetime, lb_full[ibin], official_lum_zero[ibin], official_mu[ibin], passgrl] + out_dict["Zee"] + out_dict["Zmumu"] + [zll_lumi, zll_lumi_err]

Definition at line 441 of file dqt_zlumi_pandas.py.

◆ parser

dqt_zlumi_pandas.parser = argparse.ArgumentParser()

Definition at line 28 of file dqt_zlumi_pandas.py.

◆ passgrl

int dqt_zlumi_pandas.passgrl = 1

Definition at line 263 of file dqt_zlumi_pandas.py.

◆ pileup

dqt_zlumi_pandas.pileup = round(official_mu[ibin])

Definition at line 185 of file dqt_zlumi_pandas.py.

◆ px

dqt_zlumi_pandas.px = livetime.ProjectionX()

Definition at line 155 of file dqt_zlumi_pandas.py.

◆ run

dqt_zlumi_pandas.run = int(runname.replace("run_", ""))

Definition at line 396 of file dqt_zlumi_pandas.py.

◆ runname

dqt_zlumi_pandas.runname = None

Definition at line 58 of file dqt_zlumi_pandas.py.

◆ runnumber

dqt_zlumi_pandas.runnumber = runname.replace('run_','')

Definition at line 62 of file dqt_zlumi_pandas.py.

◆ str

dqt_zlumi_pandas.str

Definition at line 29 of file dqt_zlumi_pandas.py.

◆ templateos_peak

dqt_zlumi_pandas.templateos_peak = hto.Integral(bin1, bin2)

Definition at line 351 of file dqt_zlumi_pandas.py.

◆ templateos_tail

dqt_zlumi_pandas.templateos_tail = hto.Integral(bin3, bin4)

Definition at line 352 of file dqt_zlumi_pandas.py.

◆ templatess_tail

dqt_zlumi_pandas.templatess_tail = hts.Integral(bin3, bin4)

Definition at line 353 of file dqt_zlumi_pandas.py.

◆ tg_fit

dqt_zlumi_pandas.tg_fit = ROOT.TGraphErrors(len(arr_mu), arr_mu, arr_rec_eff, ROOT.nullptr, arr_rec_err)

Definition at line 224 of file dqt_zlumi_pandas.py.

◆ this_fill

string dqt_zlumi_pandas.this_fill = lb_lhcfill[this_lb]

Definition at line 258 of file dqt_zlumi_pandas.py.

◆ this_lb

dqt_zlumi_pandas.this_lb = int(lb_full.GetBinCenter(ibin))

Definition at line 183 of file dqt_zlumi_pandas.py.

◆ type

dqt_zlumi_pandas.type

Definition at line 29 of file dqt_zlumi_pandas.py.

◆ update

dqt_zlumi_pandas.update = args.update

Definition at line 42 of file dqt_zlumi_pandas.py.

◆ weight

int dqt_zlumi_pandas.weight = 1/pow(err, 2)

Definition at line 200 of file dqt_zlumi_pandas.py.

◆ z_m

dqt_zlumi_pandas.z_m = fin.Get(hname).Integral()

Definition at line 304 of file dqt_zlumi_pandas.py.

◆ z_merr

dqt_zlumi_pandas.z_merr = math.sqrt(z_m)

Definition at line 305 of file dqt_zlumi_pandas.py.

◆ zee_missing_lbs

list dqt_zlumi_pandas.zee_missing_lbs = []

Definition at line 51 of file dqt_zlumi_pandas.py.

◆ zll_lumi

tuple dqt_zlumi_pandas.zll_lumi = (out_dict['Zee'][lumi_index] + out_dict['Zmumu'][lumi_index])/2

Definition at line 439 of file dqt_zlumi_pandas.py.

◆ zll_lumi_err

float dqt_zlumi_pandas.zll_lumi_err = 0.5 * math.sqrt( pow(out_dict['Zee'][error_index], 2) + pow(out_dict['Zmumu'][error_index], 2) )

Definition at line 440 of file dqt_zlumi_pandas.py.

◆ zlumi

tuple dqt_zlumi_pandas.zlumi = 0.0

Definition at line 418 of file dqt_zlumi_pandas.py.

◆ zlumistat

float dqt_zlumi_pandas.zlumistat = arr_zlumi.std()

Definition at line 425 of file dqt_zlumi_pandas.py.

◆ zmumu_missing_lbs

list dqt_zlumi_pandas.zmumu_missing_lbs = []

Definition at line 52 of file dqt_zlumi_pandas.py.

◆ ZPURITYFACTOR

float dqt_zlumi_pandas.ZPURITYFACTOR = 0.9935

Definition at line 45 of file dqt_zlumi_pandas.py.

◆ zrate

float dqt_zlumi_pandas.zrate = zlumi / CORRECTIONS

Definition at line 426 of file dqt_zlumi_pandas.py.

◆ ZXSEC

float dqt_zlumi_pandas.ZXSEC = 2.0675

Definition at line 47 of file dqt_zlumi_pandas.py.