# | Line 58 | Line 58 | const MCParticle *MCParticle::FindMother | |
---|---|---|
58 | return 0; | |
59 | ||
60 | if (checkCharge) { | |
61 | < | while (mother->PdgId()==fPdgId) |
61 | > | while (mother && mother->PdgId()!=pid) |
62 | mother = mother->Mother(); | |
63 | return mother; | |
64 | } | |
65 | ||
66 | Int_t apid = pid>0?pid:-pid; | |
67 | < | while (mother->AbsPdgId()==apid) |
67 | > | while (mother && mother->AbsPdgId()!=apid) |
68 | mother = mother->Mother(); | |
69 | ||
70 | return mother; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |