Skip to content
Snippets Groups Projects
Commit 0063cbf4 authored by Tooba Ali's avatar Tooba Ali
Browse files

fix key name in truth_reconstruction.py

parent 767fa387
No related branches found
No related tags found
1 merge request!193Truth reconstruction
This commit is part of merge request !193. Comments created here will be created in the context of that merge request.
......@@ -30,8 +30,8 @@ for array in ur.iterate(rec_file + ':events',['MCParticles/MCParticles.generator
'ReconstructedChargedParticles/ReconstructedChargedParticles.momentum.x',
'ReconstructedChargedParticles/ReconstructedChargedParticles.momentum.y',
'ReconstructedChargedParticles/ReconstructedChargedParticles.momentum.z',
'ReconstructedParticlesAssociations/ReconstructedParticlesAssociations.simID',
'ReconstructedParticlesAssociations/ReconstructedParticlesAssociations.recID'],step_size=Nevents):
'ReconstructedChargedParticlesAssoc/ReconstructedChargedParticlesAssoc.simID',
'ReconstructedChargedParticlesAssoc/ReconstructedChargedParticlesAssoc.recID'],step_size=Nevents):
PDG_mc = array['MCParticles/MCParticles.PDG'] #Monte Carlo (MC) particle numbering scheme.
px_mc = array['MCParticles/MCParticles.momentum.x']
py_mc = array['MCParticles/MCParticles.momentum.y']
......@@ -40,8 +40,8 @@ for array in ur.iterate(rec_file + ':events',['MCParticles/MCParticles.generator
px_rc = array['ReconstructedChargedParticles/ReconstructedChargedParticles.momentum.x']
py_rc = array['ReconstructedChargedParticles/ReconstructedChargedParticles.momentum.y']
pz_rc = array['ReconstructedChargedParticles/ReconstructedChargedParticles.momentum.z']
simID = array['ReconstructedParticlesAssociations/ReconstructedParticlesAssociations.simID']
recID = array['ReconstructedParticlesAssociations/ReconstructedParticlesAssociations.recID']
simID = array['ReconstructedChargedParticlesAssoc/ReconstructedChargedParticlesAssoc.simID']
recID = array['ReconstructedChargedParticlesAssoc/ReconstructedChargedParticlesAssoc.recID']
#SimID and recID contain the indices of the MCParticles and ReconstructedParticles entry for that event.
### MCParticles Variables
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment