]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDseedV1.cxx
Avoid nasty crash if user forget to initialize reconstruction setup
[u/mrichter/AliRoot.git] / TRD / AliTRDseedV1.cxx
index 5147d38b85baab92f5e6efd57ffb7c25bf173e3f..441cbee35b7ed0e561a2c9100b85964a9077aec4 100644 (file)
@@ -1270,6 +1270,10 @@ Bool_t AliTRDseedV1::Fit(Bool_t tilt, Bool_t zcorr)
 // Author 
 // A.Bercuci <A.Bercuci@gsi.de>
 
+  if(!fkReconstructor){
+    AliError("The tracklet needs the reconstruction setup. Please initialize by SetReconstructor().");
+    return kFALSE;
+  }
   if(!IsCalibrated()) Calibrate();
 
   const Int_t kClmin = 8;