]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliReconstructor.cxx
framework for reconstruction of raw data
[u/mrichter/AliRoot.git] / STEER / AliReconstructor.cxx
index eafd61040c663b754d65459e053501821f7b00a6..e8beac734882d79b4452e05074a2a3efb031341f 100644 (file)
@@ -19,7 +19,8 @@
 //                                                                           //
 // 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();
+}