]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSReconstructioner.h
Changed drwaing routines.
[u/mrichter/AliRoot.git] / PHOS / AliPHOSReconstructioner.h
index bd77a5846db8f957d735b6b0bbe02bd255785d10..7b6c4abeea246d11290f89085134357d54071835 100644 (file)
@@ -6,66 +6,83 @@
 /* $Id$ */
 
 //_________________________________________________________________________
-//  Algorithm class for the reconstruction: clusterizer
-//                                          track segment maker
-//                                          particle identifier   
+//  Wrapping class for reconstruction
 //*--
-//*-- Author: Gines Martinez & Yves Schutz (SUBATECH)
+//*-- Author: Gines Martinez & Yves Schutz (SUBATECH) 
+//*--         Dmitri Peressounko (SUBATECH & Kurchatov Institute)
 
 // --- ROOT system ---
 
-#include "TObject.h"
-#include "AliPHOSClusterizer.h"
-#include "AliPHOSTrackSegmentMaker.h"
-#include "AliPHOSPID.h"
-#include "TClonesArray.h" 
+#include <stdlib.h>
+#include "TTask.h"
+class AliPHOSDigitizer ;
+class AliPHOSClusterizer ;
+class AliPHOSTrackSegmentMaker ;
+class AliPHOSPID ;
+class AliPHOSSDigitizer ;
 
 // --- Standard library ---
 
 // --- AliRoot header files ---
 
-class AliPHOSReconstructioner : public TObject {
+class AliPHOSReconstructioner : public TTask {
 
 public:
 
-  AliPHOSReconstructioner(){} //ctor            
-  AliPHOSReconstructioner(AliPHOSClusterizer * Clusterizer, AliPHOSTrackSegmentMaker * Tracker, 
-                         AliPHOSPID * Identifier); //ctor         
-  AliPHOSReconstructioner(const AliPHOSReconstructioner & phos) {
-    // cpy ctor: no implementation yet
+  AliPHOSReconstructioner() ; //ctor            
+  AliPHOSReconstructioner(const char * headreFile) ;
+  AliPHOSReconstructioner(const AliPHOSReconstructioner & rec) {
+    // cpy ctor: 
     // requested by the Coding Convention
-    assert(0==1) ; 
+    abort() ; 
   }
    
-  ~AliPHOSReconstructioner(){} // dtor
-
-  AliPHOSClusterizer * GetClusterizer() { return fClusterizer ; }
-  void Init(AliPHOSClusterizer * Clusterizer, AliPHOSTrackSegmentMaker * Tracker, 
-                         AliPHOSPID * Identifier) ;  
-  void Make(TClonesArray * DL, 
-           AliPHOSRecPoint::RecPointsList * emccl, 
-           AliPHOSRecPoint::RecPointsList * ppsdl, 
-           AliPHOSTrackSegment::TrackSegmentsList * trsl, 
-           AliPHOSRecParticle::RecParticlesList * rpl)    ; // does the job for EMC+PPSD
-  void Make(TClonesArray * DL, 
-           AliPHOSRecPoint::RecPointsList * emccl, 
-           AliPHOSRecPoint::RecPointsList * ppsdl) ;        // does the job for EMC+CPV
-
-  void SetDebugReconstruction(Bool_t deb) { fDebugReconstruction = deb; }
+  virtual ~AliPHOSReconstructioner() ;
+
+  virtual void Exec(Option_t * option) ;
+
+  AliPHOSDigitizer         * GetDigitizer()  { return fDigitizer   ; }
+  AliPHOSClusterizer       * GetClusterizer(){ return fClusterizer ; }
+  AliPHOSPID               * GetPID()        { return fPID;          }
+  AliPHOSTrackSegmentMaker * GetTSMaker()    { return fTSMaker ;     }
+  AliPHOSSDigitizer        * GetSDigitizer() { return fSDigitizer  ; }
+
+  void Print(Option_t * option)const ;
+  
+  void SetBranchTitle(const char* branch,const char * title) ;
+            // Sets the branch titles to separate different reconstruction flows 
+
+  void StartFrom(char * module = "SDigitizer",char * title = 0) ;
+            // From wich step reconstruction begins, 
+            // title to be set to all reconstructed branches
 
   AliPHOSReconstructioner & operator = (const AliPHOSReconstructioner & rvalue)  {
     // assignement operator requested by coding convention but not needed
-    assert(0==1) ;
+    abort() ;
     return *this ; 
   }
   
 
+private:
+  void Init() ;  
+
 private:
   
-  Bool_t               fDebugReconstruction;      // For debuging of the Reconstruction procedure
-  AliPHOSClusterizer * fClusterizer ;             // Method for clusterization 
-  AliPHOSTrackSegmentMaker * fTrackSegmentMaker ; // Method for track segments finding
-  AliPHOSPID * fPID ;                             // Method for identifying the type of particle
+  TString  fHeaderFileName ;    // File with headers and gAlice
+  TString  fDigitsBranch ;      // Title of digits branch
+  TString  fRecPointBranch ;    // -"-      RecPoints     -"-
+  TString  fTSBranch  ;         // -"-      TrackSegments -"-
+  TString  fRecPartBranch ;     // -"-      RecParticles  -"-
+  TString  fSDigitsBranch ;     // -"-      SDigits       -"-
+
+
+  AliPHOSDigitizer         * fDigitizer ;
+  AliPHOSClusterizer       * fClusterizer ;
+  AliPHOSPID               * fPID ;
+  AliPHOSTrackSegmentMaker * fTSMaker ;
+  AliPHOSSDigitizer        * fSDigitizer ;
+
+  Bool_t   fIsInitialized ;
  
   ClassDef(AliPHOSReconstructioner,1)  // Reconstruction algorithm class (Base Class)