// //
// base class for reconstruction algorithms //
// //
-// Derived classes should implement the virtual methods //
+// Derived classes should implement a default constructor and //
+// the virtual methods //
// - Reconstruct : to perform the local reconstruction for all events //
// - FillESD : to fill the ESD for the current event //
// //
#include "AliReconstructor.h"
+#include <TString.h>
ClassImp(AliReconstructor)
+
+
+//_____________________________________________________________________________
+void AliReconstructor::Reconstruct(AliRunLoader* /*runLoader*/,
+ AliRawReader* /*rawReader*/) const
+{
+// run the local reconstruction with raw data input
+
+ Error("Reconstruct",
+ "local reconstruction not implemented for raw data input");
+}
+
+//_____________________________________________________________________________
+void AliReconstructor::FillESD(AliRunLoader* runLoader,
+ AliRawReader* /*rawReader*/, AliESD* esd) const
+{
+// fill the ESD in case of raw data input.
+// by default the FillESD method for MC is called
+
+ FillESD(runLoader, esd);
+}
+
+
+//_____________________________________________________________________________
+const char* AliReconstructor::GetDetectorName() const
+{
+// get the name of the detector
+
+ static TString detName;
+ detName = GetName();
+ detName.Remove(0, 3);
+ detName.Remove(detName.Index("Reconstructor"));
+ return detName.Data();
+}