]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSReconstructor.h
Corrected copy constructor and assignment operator, fixed memory leaks (Christian)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSReconstructor.h
index f5b195ba1ed57e4d21250d47749211a5dd600e91..8556584f725c4a268852b9abbd14fdf45c5ffaff 100644 (file)
@@ -5,6 +5,20 @@
 
 /* $Id$ */
 
+/* History of cvs commits:
+ *
+ * $Log$
+ * Revision 1.10  2007/07/11 13:43:30  hristov
+ * New class AliESDEvent, backward compatibility with the old AliESD (Christian)
+ *
+ * Revision 1.9  2006/11/15 16:05:03  kharlov
+ * New FillESD() for raw data is added
+ *
+ * Revision 1.8  2005/05/28 14:19:04  schutz
+ * Compilation warnings fixed by T.P.
+ *
+ */
+
 //_________________________________________________________________________
 //  Wrapping class for reconstruction
 //*--
@@ -21,7 +35,9 @@ class AliPHOSClusterizer ;
 class AliPHOSTrackSegmentMaker ;
 class AliPHOSPID ;
 class AliPHOSSDigitizer ;
-class AliESD ;
+class AliESDEvent ;
+class AliRawReader; 
+class AliPHOSRecoParam;
 
 // --- Standard library ---
 
@@ -37,12 +53,17 @@ public:
     // requested by the Coding Convention
     Fatal("cpy ctor", "not implemented") ;
   }
-   
-  virtual ~AliPHOSReconstructor() {} ;
-
-  Bool_t                     Debug() const { return fDebug ; }
-  virtual void               FillESD(AliRunLoader* runLoader, AliESD* esd) const ;
+  ~AliPHOSReconstructor() ; //dtor            
+  static void                SetDebug()   { fgDebug = kTRUE ; }
+  static void                ResetDebug() { fgDebug = kFALSE ; }
+  static Bool_t              Debug() { return fgDebug ; }
+  AliTracker *CreateTracker(AliRunLoader* runLoader) const;
+  using AliReconstructor::FillESD;
+  virtual void               FillESD(AliRunLoader* runLoader, AliESDEvent* esd) const ;
+  virtual void FillESD(AliRunLoader* runLoader,AliRawReader* rawReader,AliESDEvent* esd) const;
+  using AliReconstructor::Reconstruct;
   virtual void               Reconstruct(AliRunLoader* runLoader) const ;
+  virtual void               Reconstruct(AliRunLoader* runLoader, AliRawReader * rawreader) const ;
 
   AliPHOSReconstructor & operator = (const AliPHOSReconstructor & /*rvalue*/)  {
     // assignement operator requested by coding convention but not needed
@@ -50,9 +71,17 @@ public:
     return *this ; 
   }
   
+  void SetRecoParamEmc(AliPHOSRecoParam * param){ fgkRecoParamEmc = param;}
+  void SetRecoParamCpv(AliPHOSRecoParam * param){ fgkRecoParamCpv = param;}
+
+  static const AliPHOSRecoParam* GetRecoParamEmc(){ return fgkRecoParamEmc;}
+  static const AliPHOSRecoParam* GetRecoParamCpv(){ return fgkRecoParamCpv;}
+
 private:
   
-  Bool_t fDebug; //! verbosity controller
+  static Bool_t fgDebug ; //! verbosity controller
+  static AliPHOSRecoParam*   fgkRecoParamEmc; // reconstruction parameters for EMC
+  static AliPHOSRecoParam*   fgkRecoParamCpv; // reconstruction parameters for EMC
 
   ClassDef(AliPHOSReconstructor,2)  // Reconstruction algorithm class (Base Class)