Re: Problem in reconstructing neutral particle [message #15402 is a reply to message #15401] |
Mon, 02 September 2013 12:00 |
Klaus Götzen
Messages: 293 Registered: June 2006 Location: GSI
|
first-grade participant |
From: *gsi.de
|
|
Hi Lu,
I was not able to reproduce your problem up to now, but I noticed, that you don't empty the RhoCandList bwd_gam around line 202/203.
You could add an
and rerun to see whether this cures the error.
The problem could be, that the bwd_gam list still holds pointers to candidates from the previous event, which after RhoFactory::Reset() point to different candidates from the current event, which might be composites, charged or whatever kind of particles.
Btw, the filtering in lines 135 and 139 (cutting on the PdgCode()) actually does not filter, since these numbers from the reco candidates do not represent the MC truth codes, but just the assigned ones from particle selectors. I.e. all the candidates in a 'PionLoosePlus' list have PDG code 211 after filling the list.
Best,
Klaus
|
|
|