added method GetNDaughters()
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 17 Nov 2009 06:50:51 +0000 (06:50 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 17 Nov 2009 06:50:51 +0000 (06:50 +0000)
STEER/AliAODMCParticle.h

index ab1d30aba6e4faaf3c0a076fe65317f4353a414c..c06c3057207b7f14bf15ff9dcefb1aedb59565f6 100644 (file)
@@ -68,6 +68,7 @@ class AliAODMCParticle: public AliVParticle {
     virtual Double_t GetCalcMass() const;
     virtual void SetDaughter(Int_t i,Int_t id){if(i<2)fDaughter[i] = id;}
     virtual Int_t GetDaughter(Int_t i) const {return fDaughter[i];}
+    virtual Int_t GetNDaughters  () const { return fDaughter[1]>0 ? fDaughter[1]-fDaughter[0]+1 : 0;}
     virtual void SetMother(Int_t im){fMother = im;}
     virtual Int_t GetMother() const {return fMother;}
     virtual void Print(const Option_t *opt = "") const;