]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSTrackSegmentMaker.h
New FillESD() for raw data is added
[u/mrichter/AliRoot.git] / PHOS / AliPHOSTrackSegmentMaker.h
index d6159460b6da3c37cb40963b5eaf803ad3e47a22..8042dbb2f7855bf8ccb744116fd3b6c7c723f581 100644 (file)
@@ -5,9 +5,20 @@
 
 /* $Id$ */
 
+/* History of cvs commits:
+ *
+ * $Log$
+ * Revision 1.39  2006/08/25 16:00:53  kharlov
+ * Compliance with Effective C++AliPHOSHit.cxx
+ *
+ * Revision 1.38  2005/05/28 14:19:05  schutz
+ * Compilation warnings fixed by T.P.
+ *
+ */
+
 //_________________________________________________________________________
 // 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 Kurchatov Institute  & SUBATECH)
 class TFile ; 
 
 // --- Standard library ---
-#include <iostream>
+//#include <iostream>
 
 // --- AliRoot header files ---
 
 
 class AliPHOSClusterizer ;
 class AliPHOSGeometry ;
+class AliESD ;
 
 class  AliPHOSTrackSegmentMaker : public TTask {
 
 public:
 
   AliPHOSTrackSegmentMaker();
-  AliPHOSTrackSegmentMaker(const TString alirunFileName, const TString eventFolderName = AliConfig::fgkDefaultEventFolderName) ;                     
-  AliPHOSTrackSegmentMaker(const AliPHOSTrackSegmentMaker & tsmaker) : TTask(tsmaker) { ; } 
+  AliPHOSTrackSegmentMaker(const TString alirunFileName, const TString eventFolderName = AliConfig::GetDefaultEventFolderName()) ;                     
+  AliPHOSTrackSegmentMaker(const AliPHOSTrackSegmentMaker & tsmaker) ;
   virtual ~ AliPHOSTrackSegmentMaker() ;
+  AliPHOSTrackSegmentMaker & operator = (const AliPHOSTrackSegmentMaker & /*rvalue*/)  {
+    Fatal("operator =", "not implemented") ; return *this ; }
+
+  virtual Int_t GetTrackSegmentsInRun()  const {Warning("GetTrackSegmentsInRun", "Not Defined" ) ; return 0 ; } 
 
-  virtual void    Exec(Option_t * option){Warning("Exec", "Not Defined" ) ; } 
+  virtual void    Print(const Option_t * = "")const {Warning("Print", "Not Defined" ) ; }
 
-  virtual const Int_t GetTrackSegmentsInRun()  const {Warning("GetTrackSegmentsInRun", "Not Defined" ) ; return 0 ; } 
+  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    Print()const {Warning("Print", "Not Defined" ) ; }
-  void   SetEventFolderName(TString name) { fEventFolderName = name ; }
+  TString GetEventFolderName() const {return fEventFolderName;}
+  Int_t   GetFirstEvent()      const {return fFirstEvent;     }
+  Int_t   GetLastEvent()       const {return fLastEvent;      }
+  AliESD *GetESD()             const {return fESD;            }
 
-  virtual void WriteTrackSegments(Int_t event){Warning("WriteTrackSegments", "Not Defined" ) ; } 
+  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,3)    // Algorithm class to make PHOS track segments (Base Class)
+  ClassDef( AliPHOSTrackSegmentMaker,4)  // Algorithm class to make PHOS track segments (Base Class)
 };
 
 #endif // ALIPHOSTRACKSEGMENTMAKER_H