ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/src/MCParticle.cc
(Generate patch)

Comparing UserCode/MitAna/DataTree/src/MCParticle.cc (file contents):
Revision 1.3 by loizides, Mon Nov 24 11:51:21 2008 UTC vs.
Revision 1.4 by loizides, Mon Nov 24 14:11:47 2008 UTC

# 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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines