Skip to content
Snippets Groups Projects
Commit 48c4ceb1 authored by Jihee Kim's avatar Jihee Kim
Browse files

debugging

parent c4c225cd
No related branches found
No related tags found
1 merge request!149Resolve "Add true decaying particle info onto event display"
......@@ -149,11 +149,11 @@ if __name__ == '__main__':
# Read all mc particles
dfallmcp = get_all_mcp(args.file, args.iev, 'mcparticles2')
pdgbase = ROOT.TDatabasePDG()
# Select decaying particles
dftemp = dfallmcp[dfallmcp['g4Parent'] == 1.0]
if len(dftemp) > 0:
dfdecaymcp = dftemp.copy()
pdgbase = ROOT.TDatabasePDG()
for iptl in [0, len(dfdecaymcp) - 1]:
infoptl = pdgbase.GetParticle(int(dfdecaymcp['pid'].iloc[iptl]))
print("{} Decaying particle = {}, pdgcode = {}, charge = {}, mass = {}"\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment