check on swapped pair
authorskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 20 Feb 2002 13:39:52 +0000 (13:39 +0000)
committerskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 20 Feb 2002 13:39:52 +0000 (13:39 +0000)
HBTAN/AliHBTFunction.h

index 5d86a9ee068404af4b555ec1eed0910583557f1d..48c449c4196c720ab01b51db3170998240f3a31b 100644 (file)
@@ -49,10 +49,11 @@ inline AliHBTPair* AliHBTFunction::CheckPair(AliHBTPair* pair)
   if(fPairCut->Pass(pair)) //if the pair is BAD
    {//it is BAD 
     pair = pair->GetSwapedPair();
-    if(fPairCut->Pass(pair)) //so try reverse combination
-     { 
-       return 0x0;//it is BAD as well - so return
-     }
+    if(pair)
+     if(fPairCut->Pass(pair)) //so try reverse combination
+       { 
+        return 0x0;//it is BAD as well - so return
+       }
    }
   return pair; 
 }