GSI Helmholtzzentrum für Schwerionenforschung
Hi all, I used DPM generator to get some background statistics. In my analysis script I did n MC match to identify pions correctly. Additional I checked the MotherID to 88888 (pbarp-system) to know, how many of them decayed in the primary decay. But this check seems not to work as if there is no information stored. Greetings Simon PS: Using Release April '13
Can you please check that in your sim macro you have the following command set to "kTRUE"? EvtGen->SetStoreTree(kTRUE);
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