]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliReconstructor.cxx
(martin) 2D correction matrix calculation class
[u/mrichter/AliRoot.git] / STEER / AliReconstructor.cxx
index eafd61040c663b754d65459e053501821f7b00a6..5f8fbfbf1b013f0aee79d1b64c825041d6f45e4c 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 "AliLog.h"
 #include "AliReconstructor.h"
+#include <TString.h>
 
 
 ClassImp(AliReconstructor)
+
+
+//_____________________________________________________________________________
+void AliReconstructor::ConvertDigits(AliRawReader* /*rawReader*/, 
+                                    TTree* /*digitsTree*/) const
+{
+// convert raw data digits into digit objects in a root tree
+
+  AliError("conversion of raw data digits into digit objects not implemented");
+}
+
+
+//_____________________________________________________________________________
+void AliReconstructor::Reconstruct(TTree* /*digitsTree*/,
+                                  TTree* /*clustersTree*/) const
+{
+// run the local reconstruction
+
+  AliError("local event reconstruction not implemented");
+}
+
+//_____________________________________________________________________________
+void AliReconstructor::Reconstruct(AliRawReader* /*rawReader*/, 
+                                  TTree* /*clustersTree*/) const
+{
+// run the local reconstruction with raw data input
+
+  AliError("local event reconstruction not implemented for raw data input");
+}
+
+//_____________________________________________________________________________
+void AliReconstructor::Reconstruct(AliRunLoader* /*runLoader*/) const
+{
+// run the local reconstruction
+
+  AliError("local reconstruction not implemented");
+}
+
+//_____________________________________________________________________________
+void AliReconstructor::Reconstruct(AliRunLoader* /*runLoader*/, 
+                                  AliRawReader* /*rawReader*/) const
+{
+// run the local reconstruction with raw data input
+
+  AliError("local reconstruction not implemented for raw data input");
+}
+
+
+//_____________________________________________________________________________
+void AliReconstructor::FillESD(TTree* /*digitsTree*/, TTree* /*clustersTree*/,
+                              AliESD* /*esd*/) const
+{
+// fill the ESD.
+// by default nothing is done
+
+}
+
+//_____________________________________________________________________________
+void AliReconstructor::FillESD(AliRawReader* /*rawReader*/, 
+                              TTree* clustersTree, AliESD* esd) const
+{
+// fill the ESD in case of raw data input.
+// by default the FillESD method for MC is called
+
+  FillESD((TTree*)NULL, clustersTree, esd);
+}
+
+//_____________________________________________________________________________
+void AliReconstructor::FillESD(AliRunLoader* /*runLoader*/, 
+                              AliESD* /*esd*/) const
+{
+// fill the ESD.
+// by default nothing is done
+
+}
+
+//_____________________________________________________________________________
+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();
+}