]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSTrackSegmentMaker.h
Fix compiler problems
[u/mrichter/AliRoot.git] / PHOS / AliPHOSTrackSegmentMaker.h
index 367738bdc5a119f7fc6421bbefa05eab2606dc80..3a5aac85130e471e6a7ec382db5090236acc4233 100644 (file)
@@ -5,51 +5,58 @@
 
 /* $Id$ */
 
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
 //_________________________________________________________________________
 // Algorithm Base class to construct PHOS track segments
-// Associates EMC and PPSD clusters
+// Associates EMC and CPV clusters
 // Unfolds the EMC cluster   
 //                  
-//*-- Author: Dmitri Peressounko (RRC Ki & SUBATECH)
+//*-- Author: Dmitri Peressounko (RRC Kurchatov Institute  & SUBATECH)
 
 // --- ROOT system ---
+#include "TTask.h"
+#include "AliConfig.h"
+class TFile ; 
 
 // --- Standard library ---
+//#include <iostream>
 
 // --- AliRoot header files ---
 
-#include "TObjArray.h"
-#include "AliPHOSDigit.h"
-#include "AliPHOSRecPoint.h"
-#include "AliPHOSIndexToObject.h"
-#include "AliPHOSTrackSegment.h"
 
-class  AliPHOSTrackSegmentMaker : public TObject {
+class AliPHOSClusterizer ;
+class AliPHOSGeometry ;
+class AliESD ;
+
+class  AliPHOSTrackSegmentMaker : public TTask {
 
 public:
 
-  AliPHOSTrackSegmentMaker() ;                     
-  
-  virtual ~ AliPHOSTrackSegmentMaker(){
-    // dtor 
-  } 
-
-  virtual void MakeTrackSegments(DigitsList * DL, 
-                                AliPHOSRecPoint::RecPointsList * emcl, 
-                                AliPHOSRecPoint::RecPointsList * ppsdl,
-                                AliPHOSTrackSegment::TrackSegmentsList * trsl ) = 0 ; // does the job
-  virtual void SetMaxEmcPpsdDistance(Float_t r) = 0 ; 
-  virtual void SetUnfoldFlag() = 0 ;
-  virtual void UnsetUnfoldFlag() = 0 ;
-  
- protected:
-  
-  Int_t                  fNTrackSegments ; // number of track segments found 
-  AliPHOSGeometry      * fGeom ;           // pointer to PHOS geometry  
-  AliPHOSIndexToObject * fPlease ;         //
+  AliPHOSTrackSegmentMaker();
+  AliPHOSTrackSegmentMaker(const TString alirunFileName, const TString eventFolderName = AliConfig::GetDefaultEventFolderName()) ;                     
+  AliPHOSTrackSegmentMaker(const AliPHOSTrackSegmentMaker & tsmaker) : TTask(tsmaker) { ; } 
+  virtual ~ AliPHOSTrackSegmentMaker() ;
+
+  virtual Int_t GetTrackSegmentsInRun()  const {Warning("GetTrackSegmentsInRun", "Not Defined" ) ; return 0 ; } 
 
-  ClassDef( AliPHOSTrackSegmentMaker,1)    // Algorithm class to make PHOS track segments (Base Class)
+  virtual void    Print(const Option_t * = "")const {Warning("Print", "Not Defined" ) ; }
+  void SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; }
+  void SetEventFolderName(TString name) { fEventFolderName = name ; }
+  void SetESD(AliESD *esd) { fESD = esd; }
+
+  virtual void WriteTrackSegments() = 0;
+  
+protected:
+  TString fEventFolderName ;  // event folder name
+  Int_t   fFirstEvent;        // first event to process
+  Int_t   fLastEvent;         // last  event to process
+  AliESD * fESD;              //! ESD object
 
+  ClassDef( AliPHOSTrackSegmentMaker,4)  // Algorithm class to make PHOS track segments (Base Class)
 };
 
 #endif // ALIPHOSTRACKSEGMENTMAKER_H