]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 a1635a2e3ab2c5e431d31a48875585f0eb0da617..0ef7b2d6626a528cbaf76d15ab1b3aee9a58c4c0 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));
     }