Bug correction
authorskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Apr 2004 13:56:01 +0000 (13:56 +0000)
committerskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Apr 2004 13:56:01 +0000 (13:56 +0000)
HBTAN/AliHBTReaderESD.cxx

index c477189d7b8be1b1e1cc4891d4bfa49e76ca2455..1d798756268c5d2edf8da917acd0d9b69a4c7d59 100644 (file)
@@ -345,11 +345,14 @@ Int_t AliHBTReaderESD::ReadESD(AliESD* esd)
            Error("ReadNext","Can not find track with such label.");
            continue;
          }
-        if(Pass(p->GetPdgCode())) 
+        if (fCheckParticlePID)
          {
-           if ( AliHBTParticle::GetDebug() > 5 )
-             Info("ReadNext","Simulated Particle PID (%d) did not pass the cut.",p->GetPdgCode());
-           continue; //check if we are intersted with particles of this type 
+           if(Pass(p->GetPdgCode())) 
+            {
+              if ( AliHBTParticle::GetDebug() > 5 )
+                Info("ReadNext","Simulated Particle PID (%d) did not pass the cut.",p->GetPdgCode());
+              continue; //check if we are intersted with particles of this type 
+            }
          }
 //           if(p->GetPdgCode()<0) charge = -1;
         particle = new AliHBTParticle(*p,i);