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

use key name ReconstructedParticlesAssociations instead of...

use key name ReconstructedParticlesAssociations instead of ReconstructedChargedParticlesAssociations in truth_reconstruction.py
parent bd13f0d9
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',
'ReconstructedChargedParticlesAssociations/ReconstructedChargedParticlesAssociations.simID',
'ReconstructedChargedParticlesAssociations/ReconstructedChargedParticlesAssociations.recID'],step_size=Nevents):
'ReconstructedParticlesAssociations/ReconstructedParticlesAssociations.simID',
'ReconstructedParticlesAssociations/ReconstructedParticlesAssociations.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['ReconstructedChargedParticlesAssociations/ReconstructedChargedParticlesAssociations.simID']
recID = array['ReconstructedChargedParticlesAssociations/ReconstructedChargedParticlesAssociations.recID']
simID = array['ReconstructedParticlesAssociations/ReconstructedParticlesAssociations.simID']
recID = array['ReconstructedParticlesAssociations/ReconstructedParticlesAssociations.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