CPV identification bit is corrected
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 28 Feb 2003 09:57:26 +0000 (09:57 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 28 Feb 2003 09:57:26 +0000 (09:57 +0000)
PHOS/AliPHOSFastRecParticle.h
PHOS/AliPHOSPIDv1.cxx

index 99d8d0c..e0d2011 100644 (file)
@@ -117,8 +117,9 @@ class AliPHOSFastRecParticle : public TParticle {
 
   Bool_t IsFastChargedEM()  {
     Bool_t pid=kFALSE ;
-    if((TestPIDBit(8)||TestPIDBit(7)||TestPIDBit(6))&&
-       TestPIDBit(5)&&TestPIDBit(4)&&TestPIDBit(3))//TOF
+    if( (TestPIDBit(8)||TestPIDBit(7)||TestPIDBit(6))&& //  PCA
+        (TestPIDBit(5)||TestPIDBit(4)||TestPIDBit(3))&& //  TOF
+       !(TestPIDBit(2)||TestPIDBit(1)||TestPIDBit(0)))  // !CPV
       pid = kTRUE ;
     return pid ;
   }
index c5f0f08..c2af9d4 100644 (file)
@@ -319,7 +319,7 @@ const Int_t  AliPHOSPIDv1::GetCPVBit(AliPHOSEmcRecPoint * emc,AliPHOSRecPoint *
   Float_t deltaX = TMath::Abs(GetDistance(emc, cpv,  "X"));
   Float_t deltaZ = TMath::Abs(GetDistance(emc, cpv,  "Z"));
        
-  if((deltaX>sigX*(EffPur+1))|(deltaZ>sigZ*(EffPur+1)))
+  if((deltaX>sigX*(EffPur+1)) || (deltaZ>sigZ*(EffPur+1)))
     return 1;//Neutral
   else
     return 0;//Charged