FairShip
Loading...
Searching...
No Matches
makeDecay Namespace Reference

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

Variable Documentation

◆ _p

makeDecay._p = ut.get_particle(idw)
protected

Definition at line 116 of file makeDecay.py.

◆ ap

makeDecay.ap = argparse.ArgumentParser(description="Decay charm/beauty signals from makeCascade output with Pythia8")

Definition at line 20 of file makeDecay.py.

◆ args

makeDecay.args = ap.parse_args()

Definition at line 52 of file makeDecay.py.

◆ chibb

makeDecay.chibb

Definition at line 58 of file makeDecay.py.

◆ chicc

makeDecay.chicc = chibb

Definition at line 58 of file makeDecay.py.

◆ choices

makeDecay.choices

Definition at line 39 of file makeDecay.py.

◆ command

str makeDecay.command = str(n) + ":mayDecay = false"

Definition at line 94 of file makeDecay.py.

◆ cross_section

makeDecay.cross_section = ap.add_mutually_exclusive_group()

Definition at line 29 of file makeDecay.py.

◆ cs

makeDecay.cs = derive_cross_sections(args.target_composition, args.A, args.chicc, args.chibb)

Definition at line 57 of file makeDecay.py.

◆ default

makeDecay.default

Definition at line 24 of file makeDecay.py.

◆ e13

makeDecay.e13

Definition at line 27 of file makeDecay.py.

◆ fDs

float makeDecay.fDs = 0.077

Definition at line 214 of file makeDecay.py.

◆ fDsP6

float makeDecay.fDsP6 = 1.0 * nDsprim / ntotprim

Definition at line 213 of file makeDecay.py.

◆ fhin

makeDecay.fhin = ROOT.TFile.Open(FIN.replace("ntuple", "hists"))

Definition at line 75 of file makeDecay.py.

◆ FIN

str makeDecay.FIN = fname + ".root"

Definition at line 62 of file makeDecay.py.

◆ fin

makeDecay.fin = ROOT.TFile.Open(FIN)

Definition at line 65 of file makeDecay.py.

◆ float

makeDecay.float

Definition at line 27 of file makeDecay.py.

◆ fname

makeDecay.fname = args.input.replace(".root", "")

Definition at line 54 of file makeDecay.py.

◆ FOUT

str makeDecay.FOUT = "Decay-" + tmp[len(tmp) - 1]

Definition at line 64 of file makeDecay.py.

◆ ftup

makeDecay.ftup = ROOT.TFile.Open(FOUT, "RECREATE")

Definition at line 101 of file makeDecay.py.

◆ h

dict makeDecay.h = {}

Definition at line 104 of file makeDecay.py.

◆ hc

dict makeDecay.hc = {}

Definition at line 71 of file makeDecay.py.

◆ help

makeDecay.help

Definition at line 25 of file makeDecay.py.

◆ idabs

makeDecay.idabs = int(abs(sTree.id))

Definition at line 150 of file makeDecay.py.

◆ idhnu

int makeDecay.idhnu = 1000 + idnu

Definition at line 111 of file makeDecay.py.

◆ idw

makeDecay.idw = idnu

Definition at line 112 of file makeDecay.py.

◆ is_beauty

int makeDecay.is_beauty = sTree.M > 5

Definition at line 132 of file makeDecay.py.

◆ l10pt

makeDecay.l10pt = min(max(ROOT.TMath.Log10(ROOT.TMath.Sqrt(pt2)), -2.0), 0.4999)

Definition at line 190 of file makeDecay.py.

◆ l10ptot

makeDecay.l10ptot = min(max(ROOT.TMath.Log10(ptot), -0.3), 1.69999)

Definition at line 189 of file makeDecay.py.

◆ n

makeDecay.n = 1

Definition at line 89 of file makeDecay.py.

◆ name

makeDecay.name = _p.GetName()

Definition at line 117 of file makeDecay.py.

◆ nDsprim

int makeDecay.nDsprim = 0

Definition at line 124 of file makeDecay.py.

◆ nEvents

makeDecay.nEvents = sTree.GetEntries()

Definition at line 67 of file makeDecay.py.

◆ None

makeDecay.None

Definition at line 31 of file makeDecay.py.

◆ nrcpot

dict makeDecay.nrcpot = hc["2"].GetBinContent(1) / 2.0

Definition at line 79 of file makeDecay.py.

◆ nrpotspill

makeDecay.nrpotspill = args.pot

Definition at line 55 of file makeDecay.py.

◆ ntotprim

int makeDecay.ntotprim = 0

Definition at line 125 of file makeDecay.py.

◆ Ntup

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.

◆ p

makeDecay.p = P8.particleData.particleDataEntryPtr(n)

Definition at line 92 of file makeDecay.py.

◆ P8

makeDecay.P8 = P8gen.Pythia8()

Definition at line 85 of file makeDecay.py.

◆ P8gen

makeDecay.P8gen = ROOT.TPythia8()

Definition at line 84 of file makeDecay.py.

◆ par

makeDecay.par = P8.event[n]

Definition at line 163 of file makeDecay.py.

◆ PDG

makeDecay.PDG = ROOT.TDatabasePDG.Instance()

Definition at line 107 of file makeDecay.py.

◆ pot

float makeDecay.pot = 0.0

Definition at line 122 of file makeDecay.py.

◆ pt

makeDecay.pt = ROOT.TMath.Sqrt(sTree.mpx**2 + sTree.mpy**2)

Definition at line 145 of file makeDecay.py.

◆ pt2

int makeDecay.pt2 = par.px() ** 2 + par.py() ** 2

Definition at line 187 of file makeDecay.py.

◆ ptGM

makeDecay.ptGM = ROOT.TMath.Sqrt(sTree.mpx * sTree.mpx + sTree.mpy * sTree.mpy)

Definition at line 164 of file makeDecay.py.

◆ ptot

makeDecay.ptot = ROOT.TMath.Sqrt(pt2 + par.pz() ** 2)

Definition at line 188 of file makeDecay.py.

◆ rc

makeDecay.rc = sTree.GetEvent(n)

Definition at line 129 of file makeDecay.py.

◆ sTree

makeDecay.sTree = fin.FindObjectAny("pythia6")

Definition at line 66 of file makeDecay.py.

◆ tmp

makeDecay.tmp = os.path.abspath(FIN).split("/")

Definition at line 63 of file makeDecay.py.

◆ type

makeDecay.type

Definition at line 27 of file makeDecay.py.

◆ wspill

dict makeDecay.wspill = 0.0

Definition at line 126 of file makeDecay.py.