From a326cd74ae720c4af9c3802195681e8065a8de66 Mon Sep 17 00:00:00 2001 From: marian Date: Wed, 13 May 2009 21:10:21 +0000 Subject: [PATCH] Don't propagate track outside of the TPC acceptance (Marian) --- TPC/AliTPCtrack.cxx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/TPC/AliTPCtrack.cxx b/TPC/AliTPCtrack.cxx index 2eeea9e91e4..79d8db126eb 100644 --- a/TPC/AliTPCtrack.cxx +++ b/TPC/AliTPCtrack.cxx @@ -239,9 +239,19 @@ Bool_t AliTPCtrack::PropagateTo(Double_t xk,Double_t rho,Double_t x0) { // rho - density of the crossed matrial (g/cm^3) // x0 - radiation length of the crossed material (g/cm^2) //----------------------------------------------------------------- + // + Double_t bz=GetBz(); + Double_t zat=0; + if (!GetZAt(xk, bz,zat)) return kFALSE; + if (TMath::Abs(zat)>250.){ + // Don't propagate track outside of the fiducial volume - material budget not proper one + // + //AliWarning("Propagate outside of fiducial volume"); + return kFALSE; + } + Double_t oldX=GetX(), oldY=GetY(), oldZ=GetZ(); - Double_t bz=GetBz(); if (!AliExternalTrackParam::PropagateTo(xk,bz)) return kFALSE; Double_t d = TMath::Sqrt((GetX()-oldX)*(GetX()-oldX) + -- 2.43.0