DP:Possibility to use actual vertex position added
authorkharlov <kharlov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 Mar 2007 06:59:10 +0000 (06:59 +0000)
committerkharlov <kharlov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 Mar 2007 06:59:10 +0000 (06:59 +0000)
PHOS/AliPHOSRecParticle.cxx

index aed0e84ba37cc85f27644aae9472b9e20cbb131e..0bf30b95ff0af907a4e5853a1342a7337bfdc958 100644 (file)
@@ -116,7 +116,9 @@ const TParticle * AliPHOSRecParticle::GetPrimary() const
   Int_t module ;
   const AliPHOSGeometry * geom = gime->PHOSGeometry() ;
    Double_t x,z ;
-  geom->ImpactOnEmc(static_cast<double>(Theta()),static_cast<double>(Phi()), module,z,x);
+//DP to be fixed: Why do we use this method here??? M.B. use RecPoint???
+  Double_t vtx[3]={0.,0.,0.} ;
+  geom->ImpactOnEmc(vtx,static_cast<double>(Theta()),static_cast<double>(Phi()), module,z,x);
   Int_t amp = 0 ;
   Int_t iPrim=-1 ;
   if(module != 0){