The Tree is stored. I could fix this problem with changing the request of the GetMcMotherIdx. I forgot that DPM does not start its decay with the pbarp. So the McMotherIdx is set to -1 and there is not candidate in the MCTruth list at position -1. Now I request additionally that GetMcMotherIdx()<0.
int motherId = mctrk[ TCandidate.GetMcIdx() ].GetMcMotherIdx();
if(motherId<0 || mctrk[ motherId ].PdgCode()==88888) {...}
Sorry for interruption
[Updated on: Thu, 04 July 2013 14:02] by Moderator
Report message to a moderator