Parameters of AliITSVertexer3D added in AliITSRecoParam (F.Prino)
[u/mrichter/AliRoot.git] / ITS / AliITSReconstructor.cxx
index 622e57f046bf1dfc6dd03907f09410c9cf18d6d2..789d9411906c4a125c0aca1c1d6633c94aff6c66 100644 (file)
@@ -187,7 +187,19 @@ AliVertexer* AliITSReconstructor::CreateVertexer() const
   }
   // by default an AliITSVertexer3D object is instatiated
   Info("CreateVertexer","a AliITSVertexer3D object has been selected\n");
-  return new AliITSVertexer3D();
+  AliITSVertexer3D*  vtxr = new AliITSVertexer3D();
+  Float_t dzw=GetRecoParam()->GetVertexer3DWideFiducialRegionZ();
+  Float_t drw=GetRecoParam()->GetVertexer3DWideFiducialRegionR();
+  vtxr->SetWideFiducialRegion(dzw,drw);
+  Float_t dzn=GetRecoParam()->GetVertexer3DNarrowFiducialRegionZ();
+  Float_t drn=GetRecoParam()->GetVertexer3DNarrowFiducialRegionR();
+  vtxr->SetNarrowFiducialRegion(dzn,drn);
+  Float_t dphil=GetRecoParam()->GetVertexer3DLooseDeltaPhiCut();
+  Float_t dphit=GetRecoParam()->GetVertexer3DTightDeltaPhiCut();
+  vtxr->SetDeltaPhiCuts(dphil,dphit);
+  Float_t dcacut=GetRecoParam()->GetVertexer3DDCACut();
+  vtxr->SetDCACut(dcacut);
+  return vtxr;
 }
 
 //_____________________________________________________________________________