![]() |
FairShip
|
Variables | |
| ap = argparse.ArgumentParser(description="Decay charm/beauty signals from makeCascade output with Pythia8") | |
| default | |
| help | |
| type | |
| float | |
| e13 | |
| cross_section = ap.add_mutually_exclusive_group() | |
| None | |
| choices | |
| args = ap.parse_args() | |
| fname = args.input.replace(".root", "") | |
| nrpotspill = args.pot | |
| cs = derive_cross_sections(args.target_composition, args.A, args.chicc, args.chibb) | |
| chicc = chibb | |
| chibb | |
| str | FIN = fname + ".root" |
| tmp = os.path.abspath(FIN).split("/") | |
| str | FOUT = "Decay-" + tmp[len(tmp) - 1] |
| fin = ROOT.TFile.Open(FIN) | |
| sTree = fin.FindObjectAny("pythia6") | |
| nEvents = sTree.GetEntries() | |
| dict | hc = {} |
| fhin = ROOT.TFile.Open(FIN.replace("ntuple", "hists")) | |
| dict | nrcpot = hc["2"].GetBinContent(1) / 2.0 |
| P8gen = ROOT.TPythia8() | |
| P8 = P8gen.Pythia8() | |
| int | n = 1 |
| p = P8.particleData.particleDataEntryPtr(n) | |
| str | command = str(n) + ":mayDecay = false" |
| ftup = ROOT.TFile.Open(FOUT, "RECREATE") | |
| Ntup = ROOT.TNtuple("Decay", "pythia8 heavy flavour decays", "id:px:py:pz:E:M:weight:mid:mpx:mpy:mpz:mE:pot:ptGM:pzGM") | |
| dict | h = {} |
| PDG = ROOT.TDatabasePDG.Instance() | |
| int | idhnu = 1000 + idnu |
| idw = idnu | |
| _p = ut.get_particle(idw) | |
| name = _p.GetName() | |
| float | pot = 0.0 |
| int | nDsprim = 0 |
| int | ntotprim = 0 |
| float | wspill = 0.0 |
| rc = sTree.GetEvent(n) | |
| int | is_beauty = sTree.M > 5 |
| pt = ROOT.TMath.Sqrt(sTree.mpx**2 + sTree.mpy**2) | |
| idabs = int(abs(sTree.id)) | |
| par = P8.event[n] | |
| ptGM = ROOT.TMath.Sqrt(sTree.mpx * sTree.mpx + sTree.mpy * sTree.mpy) | |
| int | pt2 = par.px() ** 2 + par.py() ** 2 |
| ptot = ROOT.TMath.Sqrt(pt2 + par.pz() ** 2) | |
| l10ptot = min(max(ROOT.TMath.Log10(ptot), -0.3), 1.69999) | |
| l10pt = min(max(ROOT.TMath.Log10(ROOT.TMath.Sqrt(pt2)), -2.0), 0.4999) | |
| float | fDsP6 = 1.0 * nDsprim / ntotprim |
| float | fDs = 0.077 |
|
protected |
Definition at line 116 of file makeDecay.py.
| makeDecay.ap = argparse.ArgumentParser(description="Decay charm/beauty signals from makeCascade output with Pythia8") |
Definition at line 20 of file makeDecay.py.
| makeDecay.args = ap.parse_args() |
Definition at line 52 of file makeDecay.py.
| makeDecay.chibb |
Definition at line 58 of file makeDecay.py.
| makeDecay.chicc = chibb |
Definition at line 58 of file makeDecay.py.
| makeDecay.choices |
Definition at line 39 of file makeDecay.py.
| str makeDecay.command = str(n) + ":mayDecay = false" |
Definition at line 94 of file makeDecay.py.
| makeDecay.cross_section = ap.add_mutually_exclusive_group() |
Definition at line 29 of file makeDecay.py.
| makeDecay.cs = derive_cross_sections(args.target_composition, args.A, args.chicc, args.chibb) |
Definition at line 57 of file makeDecay.py.
| makeDecay.default |
Definition at line 24 of file makeDecay.py.
| makeDecay.e13 |
Definition at line 27 of file makeDecay.py.
| float makeDecay.fDs = 0.077 |
Definition at line 214 of file makeDecay.py.
Definition at line 213 of file makeDecay.py.
| makeDecay.fhin = ROOT.TFile.Open(FIN.replace("ntuple", "hists")) |
Definition at line 75 of file makeDecay.py.
| str makeDecay.FIN = fname + ".root" |
Definition at line 62 of file makeDecay.py.
| makeDecay.fin = ROOT.TFile.Open(FIN) |
Definition at line 65 of file makeDecay.py.
| makeDecay.float |
Definition at line 27 of file makeDecay.py.
| makeDecay.fname = args.input.replace(".root", "") |
Definition at line 54 of file makeDecay.py.
| str makeDecay.FOUT = "Decay-" + tmp[len(tmp) - 1] |
Definition at line 64 of file makeDecay.py.
| makeDecay.ftup = ROOT.TFile.Open(FOUT, "RECREATE") |
Definition at line 101 of file makeDecay.py.
| dict makeDecay.h = {} |
Definition at line 104 of file makeDecay.py.
| dict makeDecay.hc = {} |
Definition at line 71 of file makeDecay.py.
| makeDecay.help |
Definition at line 25 of file makeDecay.py.
| makeDecay.idabs = int(abs(sTree.id)) |
Definition at line 150 of file makeDecay.py.
| int makeDecay.idhnu = 1000 + idnu |
Definition at line 111 of file makeDecay.py.
| makeDecay.idw = idnu |
Definition at line 112 of file makeDecay.py.
| int makeDecay.is_beauty = sTree.M > 5 |
Definition at line 132 of file makeDecay.py.
| makeDecay.l10pt = min(max(ROOT.TMath.Log10(ROOT.TMath.Sqrt(pt2)), -2.0), 0.4999) |
Definition at line 190 of file makeDecay.py.
| makeDecay.l10ptot = min(max(ROOT.TMath.Log10(ptot), -0.3), 1.69999) |
Definition at line 189 of file makeDecay.py.
| makeDecay.n = 1 |
Definition at line 89 of file makeDecay.py.
| makeDecay.name = _p.GetName() |
Definition at line 117 of file makeDecay.py.
| int makeDecay.nDsprim = 0 |
Definition at line 124 of file makeDecay.py.
| makeDecay.nEvents = sTree.GetEntries() |
Definition at line 67 of file makeDecay.py.
| makeDecay.None |
Definition at line 31 of file makeDecay.py.
| dict makeDecay.nrcpot = hc["2"].GetBinContent(1) / 2.0 |
Definition at line 79 of file makeDecay.py.
| makeDecay.nrpotspill = args.pot |
Definition at line 55 of file makeDecay.py.
| int makeDecay.ntotprim = 0 |
Definition at line 125 of file makeDecay.py.
| makeDecay.Ntup = ROOT.TNtuple("Decay", "pythia8 heavy flavour decays", "id:px:py:pz:E:M:weight:mid:mpx:mpy:mpz:mE:pot:ptGM:pzGM") |
Definition at line 102 of file makeDecay.py.
| makeDecay.p = P8.particleData.particleDataEntryPtr(n) |
Definition at line 92 of file makeDecay.py.
| makeDecay.P8 = P8gen.Pythia8() |
Definition at line 85 of file makeDecay.py.
| makeDecay.P8gen = ROOT.TPythia8() |
Definition at line 84 of file makeDecay.py.
| makeDecay.par = P8.event[n] |
Definition at line 163 of file makeDecay.py.
| makeDecay.PDG = ROOT.TDatabasePDG.Instance() |
Definition at line 107 of file makeDecay.py.
| float makeDecay.pot = 0.0 |
Definition at line 122 of file makeDecay.py.
| makeDecay.pt = ROOT.TMath.Sqrt(sTree.mpx**2 + sTree.mpy**2) |
Definition at line 145 of file makeDecay.py.
| int makeDecay.pt2 = par.px() ** 2 + par.py() ** 2 |
Definition at line 187 of file makeDecay.py.
| makeDecay.ptGM = ROOT.TMath.Sqrt(sTree.mpx * sTree.mpx + sTree.mpy * sTree.mpy) |
Definition at line 164 of file makeDecay.py.
| makeDecay.ptot = ROOT.TMath.Sqrt(pt2 + par.pz() ** 2) |
Definition at line 188 of file makeDecay.py.
| makeDecay.rc = sTree.GetEvent(n) |
Definition at line 129 of file makeDecay.py.
| makeDecay.sTree = fin.FindObjectAny("pythia6") |
Definition at line 66 of file makeDecay.py.
| makeDecay.tmp = os.path.abspath(FIN).split("/") |
Definition at line 63 of file makeDecay.py.
| makeDecay.type |
Definition at line 27 of file makeDecay.py.
| dict makeDecay.wspill = 0.0 |
Definition at line 126 of file makeDecay.py.