]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSTrackSegmentMaker.h
updating
[u/mrichter/AliRoot.git] / PHOS / AliPHOSTrackSegmentMaker.h
index 03aab1792778ebd169e56ede543746d0f2209ce6..0b1ab5c8882387c7a6217730da5755cf50056583 100644 (file)
 
 // --- ROOT system ---
 #include "TTask.h"
+#include "AliConfig.h"
 class TFile ; 
 
 // --- Standard library ---
-#include <iostream>
+//#include <iostream>
 
 // --- AliRoot header files ---
 
@@ -29,32 +30,25 @@ class  AliPHOSTrackSegmentMaker : public TTask {
 
 public:
 
-  AliPHOSTrackSegmentMaker() ;                     
-  AliPHOSTrackSegmentMaker(const char* headerFile, const char* name) ;                     
-  
+  AliPHOSTrackSegmentMaker();
+  AliPHOSTrackSegmentMaker(const TString alirunFileName, const TString eventFolderName = AliConfig::fgkDefaultEventFolderName) ;                     
+  AliPHOSTrackSegmentMaker(const AliPHOSTrackSegmentMaker & tsmaker) : TTask(tsmaker) { ; } 
   virtual ~ AliPHOSTrackSegmentMaker() ;
 
-  virtual void    Exec(Option_t * option){cout << "Not Defined" << endl ; } 
-  virtual char*   GetRecPointsBranch ()const{cout << "Not Defined" << endl ; return 0 ; } 
-  virtual char*   GetTrackSegmentsBranch ()const{cout << "Not Defined" << endl ; return 0 ; } 
-  virtual const Int_t GetTrackSegmentsInRun()  const {cout << "Not Defined" << endl ; return 0 ; } 
-
-  virtual void    Print(Option_t * option)const {cout << "Not Defined" << endl ; }  
-  //  virtual void Set...   // method to choose recPoints: along z only, along x ...???
-  //  virtual void SetChoosingAlgirithm(){cout << "Not Defined" << endl ; return 0 ; } 
-  //  virtual void SetMaxEmcCpvDistance(Float_t r) {cout << "Not Defined" << endl ; return 0 ; } 
-  virtual void SetRecPointsBranch(const char * title){cout << "Not Defined" << endl ; } 
-  virtual void SetTrackSegmentsBranch(const char * title){cout << "Not Defined" << endl ; } 
-  virtual void SetSplitFile(const TString splitFileName = "PHOS.RecData.root") const ; 
-  virtual const char * Version() const {cout << "Not Defined" << endl ; return 0 ; }   
-  virtual void WriteTrackSegments(Int_t event){cout << "Not Defined" << endl ; } 
+  virtual const Int_t GetTrackSegmentsInRun()  const {Warning("GetTrackSegmentsInRun", "Not Defined" ) ; return 0 ; } 
+
+  virtual void    Print()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 ; }
+
+  virtual void WriteTrackSegments() = 0;
   
 protected:
-  
-  TFile * fSplitFile ;             //! file in which TrackSegments will eventually be stored
-  
-  ClassDef( AliPHOSTrackSegmentMaker,1)    // Algorithm class to make PHOS track segments (Base Class)
+  TString fEventFolderName ;  // event folder name
+  Int_t   fFirstEvent;        // first event to process
+  Int_t   fLastEvent;         // last  event to process
 
+  ClassDef( AliPHOSTrackSegmentMaker,4)  // Algorithm class to make PHOS track segments (Base Class)
 };
 
 #endif // ALIPHOSTRACKSEGMENTMAKER_H