Additional protection. The call to RecWithStack has to be removed in case of raw...
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 21 Mar 2006 17:37:48 +0000 (17:37 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 21 Mar 2006 17:37:48 +0000 (17:37 +0000)
RICH/AliRICHTracker.cxx

index 7bc97e7..bdb1dec 100644 (file)
@@ -171,6 +171,7 @@ void AliRICHTracker::RecWithStack(TNtupleD *hn)
 //        (pdg_code == 10020040)) {
 //
     if(pParticle->GetPdgCode()>=50000050||pParticle->GetPdgCode()==0||pParticle->GetPdgCode()>10000) {AliDebug(1,Form("A photon as track... Track skipped"));continue;}
+    if(!pParticle->GetPDG()) continue;
 //
 // to be updated for us!!
 //