|
| | makeDecay.ap = argparse.ArgumentParser(description="Decay charm/beauty signals from makeCascade output with Pythia8") |
| | makeDecay.default |
| | makeDecay.help |
| | makeDecay.type |
| | makeDecay.float |
| | makeDecay.e13 |
| | makeDecay.cross_section = ap.add_mutually_exclusive_group() |
| | makeDecay.None |
| | makeDecay.choices |
| | makeDecay.args = ap.parse_args() |
| | makeDecay.fname = args.input.replace(".root", "") |
| | makeDecay.nrpotspill = args.pot |
| | makeDecay.cs = derive_cross_sections(args.target_composition, args.A, args.chicc, args.chibb) |
| | makeDecay.chicc = chibb |
| | makeDecay.chibb |
| str | makeDecay.FIN = fname + ".root" |
| | makeDecay.tmp = os.path.abspath(FIN).split("/") |
| str | makeDecay.FOUT = "Decay-" + tmp[len(tmp) - 1] |
| | makeDecay.fin = ROOT.TFile.Open(FIN) |
| | makeDecay.sTree = fin.FindObjectAny("pythia6") |
| | makeDecay.nEvents = sTree.GetEntries() |
| dict | makeDecay.hc = {} |
| | makeDecay.fhin = ROOT.TFile.Open(FIN.replace("ntuple", "hists")) |
| dict | makeDecay.nrcpot = hc["2"].GetBinContent(1) / 2.0 |
| | makeDecay.P8gen = ROOT.TPythia8() |
| | makeDecay.P8 = P8gen.Pythia8() |
| int | makeDecay.n = 1 |
| | makeDecay.p = P8.particleData.particleDataEntryPtr(n) |
| str | makeDecay.command = str(n) + ":mayDecay = false" |
| | makeDecay.ftup = ROOT.TFile.Open(FOUT, "RECREATE") |
| | makeDecay.Ntup = ROOT.TNtuple("Decay", "pythia8 heavy flavour decays", "id:px:py:pz:E:M:weight:mid:mpx:mpy:mpz:mE:pot:ptGM:pzGM") |
| dict | makeDecay.h = {} |
| | makeDecay.PDG = ROOT.TDatabasePDG.Instance() |
| int | makeDecay.idhnu = 1000 + idnu |
| | makeDecay.idw = idnu |
| | makeDecay._p = ut.get_particle(idw) |
| | makeDecay.name = _p.GetName() |
| float | makeDecay.pot = 0.0 |
| int | makeDecay.nDsprim = 0 |
| int | makeDecay.ntotprim = 0 |
| float | makeDecay.wspill = 0.0 |
| | makeDecay.rc = sTree.GetEvent(n) |
| int | makeDecay.is_beauty = sTree.M > 5 |
| | makeDecay.pt = ROOT.TMath.Sqrt(sTree.mpx**2 + sTree.mpy**2) |
| | makeDecay.idabs = int(abs(sTree.id)) |
| | makeDecay.par = P8.event[n] |
| | makeDecay.ptGM = ROOT.TMath.Sqrt(sTree.mpx * sTree.mpx + sTree.mpy * sTree.mpy) |
| int | makeDecay.pt2 = par.px() ** 2 + par.py() ** 2 |
| | makeDecay.ptot = ROOT.TMath.Sqrt(pt2 + par.pz() ** 2) |
| | makeDecay.l10ptot = min(max(ROOT.TMath.Log10(ptot), -0.3), 1.69999) |
| | makeDecay.l10pt = min(max(ROOT.TMath.Log10(ROOT.TMath.Sqrt(pt2)), -2.0), 0.4999) |
| float | makeDecay.fDsP6 = 1.0 * nDsprim / ntotprim |
| float | makeDecay.fDs = 0.077 |