Skip to content
Snippets Groups Projects

Analysis of truth/reconstruction associations

Merged Tooba Ali requested to merge truth_reconstruction into master
1 file
+ 0
10
Compare changes
  • Side-by-side
  • Inline
#!/usr/bin/env python
# coding: utf-8
# In[1]:
import os
import numpy as np
import uproot as ur
@@ -32,9 +26,6 @@ p = int(args.pbeam)
Nevents = int(args.nevents)
# In[16]:
for array in ur.iterate(rec_file + ':events',['MCParticles/MCParticles.generatorStatus',
'MCParticles/MCParticles.mass',
'MCParticles/MCParticles.PDG',
@@ -71,7 +62,6 @@ theta_rc = np.arctan2(np.sqrt(px_rc**2+py_rc**2), pz_rc)
phi_rc = np.arctan2(py_rc, px_rc)
# In[ ]:
booll = (PDG_mc[simID])==(PDG_rc[recID])
Loading