From a723055fe4ee3c16d94d4866f3679ba30608d55a Mon Sep 17 00:00:00 2001 From: abercuci Date: Wed, 3 Feb 2010 14:11:29 +0000 Subject: [PATCH] Avoid nasty crash if user forget to initialize reconstruction setup --- TRD/AliTRDseedV1.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TRD/AliTRDseedV1.cxx b/TRD/AliTRDseedV1.cxx index 5147d38b85b..441cbee35b7 100644 --- a/TRD/AliTRDseedV1.cxx +++ b/TRD/AliTRDseedV1.cxx @@ -1270,6 +1270,10 @@ Bool_t AliTRDseedV1::Fit(Bool_t tilt, Bool_t zcorr) // Author // A.Bercuci + if(!fkReconstructor){ + AliError("The tracklet needs the reconstruction setup. Please initialize by SetReconstructor()."); + return kFALSE; + } if(!IsCalibrated()) Calibrate(); const Int_t kClmin = 8; -- 2.43.0