message: Additional protection in case of rootino
diff: @@ -1087,13 +1087,14 @@ Bool_t AliStack::IsSecondaryFromWeakDecay(Int_t index) {
  if(IsPhysicalPrimary(index)) return kFALSE;
  - Int_t mfl = 0;
  Int_t indexMoth = particle->GetFirstMother();
  if(indexMoth < 0) return kFALSE; // if index mother < 0 and not a physical primary, is a non-stable product or one of the beams
  TParticle* moth = Particle(indexMoth);
  Float_t codemoth = (Float_t)TMath::Abs(moth->GetPdgCode());
  // mass of the flavour
  - mfl = Int_t (codemoth / TMath::Power(10, Int_t(TMath::Log10(codemoth))));
  + Int_t mfl = 0;
  + // Protect the "rootino" case when codemoth is 0
  + if (TMath::Abs(codemoth)>0) mfl = Int_t (codemoth / TMath::Power(10, Int_t(TMath::Log10(codemoth))));
  if(mfl == 3 && uniqueID == kPDecay) return kTRUE;// The first mother is strange and it's a decay
  if(codemoth == 211 && uniqueID == kPDecay) return kTRUE;// pion+- decay products
  