use dummy reconstructor only if detector exists
authortkuhr <tkuhr@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 11 May 2004 13:19:27 +0000 (13:19 +0000)
committertkuhr <tkuhr@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 11 May 2004 13:19:27 +0000 (13:19 +0000)
STEER/AliReconstruction.cxx

index a1635a2..0ef7b2d 100644 (file)
@@ -86,7 +86,6 @@
 #include "AliGenEventHeader.h"
 #include "AliESDpid.h"
 #include "AliMagF.h"
-#include "../TPC/AliTPCReconstructor.h"
 
 ClassImp(AliReconstruction)
 
@@ -231,7 +230,7 @@ Bool_t AliReconstruction::Run()
       reconstructor = (AliReconstructor*) pluginHandler->ExecPlugin(0);
     }
     // if there is no reconstructor class for the detector use the dummy one
-    if (!reconstructor) {
+    if (!reconstructor && gAlice->GetDetector(detName)) {
       Info("Run", "using dummy reconstructor for %s", detName.Data());
       reconstructor = new AliDummyReconstructor(gAlice->GetDetector(detName));
     }