]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSPIDv1.cxx
Fixed the DA so it picks up the pedestals from the right sample
[u/mrichter/AliRoot.git] / PHOS / AliPHOSPIDv1.cxx
index 5816f07b7aab3d59bf4bfa833f4c29774948c647..593a17e9f994d66194fa281296b056c372e42b9b 100644 (file)
@@ -745,7 +745,7 @@ Float_t  AliPHOSPIDv1::GetParameterToCalculateEllipse(TString particle, TString
 //{
 //  // Calculates the distance between the EMC RecPoint and the PPSD RecPoint
 //  
-//  const AliPHOSGeometry * geom = AliPHOSGetter::Instance()->PHOSGeometry() ; 
+//  AliPHOSGeometry * geom =  AliPHOSGeometry::GetInstance();
 //  TVector3 vecEmc ;
 //  TVector3 vecCpv ;
 //  if(cpv){
@@ -1455,8 +1455,8 @@ void  AliPHOSPIDv1::MakeRecParticles()
     rp->SetLastDaughter(-1);
     rp->SetPolarisation(0,0,0);
     //Set the position in global coordinate system from the RecPoint
-    AliPHOSTrackSegment * ts  = static_cast<AliPHOSTrackSegment *>(fTrackSegments->At(rp->GetPHOSTSIndex()));
-    AliPHOSEmcRecPoint  * erp = static_cast<AliPHOSEmcRecPoint *>(fEMCRecPoints->At(ts->GetEmcIndex()));
+    AliPHOSTrackSegment * ts1  = static_cast<AliPHOSTrackSegment *>(fTrackSegments->At(rp->GetPHOSTSIndex()));
+    AliPHOSEmcRecPoint  * erp = static_cast<AliPHOSEmcRecPoint *>(fEMCRecPoints->At(ts1->GetEmcIndex()));
     TVector3 pos ; 
     fGeom->GetGlobalPHOS(erp, pos) ; 
     rp->SetPos(pos);