Pi0 identification with PID was wrongly done, changes in GetEllipseParameters
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 21 May 2004 09:47:26 +0000 (09:47 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 21 May 2004 09:47:26 +0000 (09:47 +0000)
PHOS/AliPHOSPIDv1.cxx

index da960df414106dddcefb5b966d951c9223af19e5..1dc37957713a0842bc48e28f41ac995576b1246a 100644 (file)
@@ -338,7 +338,11 @@ Float_t  AliPHOSPIDv1::GetEllipseParameter(TString particle, TString param, Floa
     else if (param.Contains("x0")) e = TMath::Max((Double_t)e,1.1);
   }
 
-  value = p[0]/TMath::Sqrt(e) + p[1]*e + p[2]*e*e + p[3];
+ if (particle == "photon")
+    value = p[0]/TMath::Sqrt(e) + p[1]*e + p[2]*e*e + p[3];
+  else if (particle == "pi0")
+    value = p[0] + p[1]*e + p[2]*e*e;
+
   return value;
 }