]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSTrackSegmentMaker.h
coding convention
[u/mrichter/AliRoot.git] / PHOS / AliPHOSTrackSegmentMaker.h
index d1abd03ef69f77c3944807a4305bd33ce51b60aa..02de07a62544197bd9d48e7b83cf95bd1bde024c 100644 (file)
 
 // --- ROOT system ---
 #include "TTask.h"
-
+#include "AliConfig.h"
+class TFile ; 
 
 // --- Standard library ---
+//#include <iostream>
 
 // --- AliRoot header files ---
 
@@ -28,30 +30,24 @@ class  AliPHOSTrackSegmentMaker : public TTask {
 
 public:
 
-  AliPHOSTrackSegmentMaker() ;                     
-  AliPHOSTrackSegmentMaker(const char* headerFile, const char* name) ;                     
-  
-  virtual ~ AliPHOSTrackSegmentMaker(){
-    // dtor 
-  } 
-
-  virtual void    Exec(Option_t * option) = 0 ;
-  virtual char*   GetRecPointsBranch ()const = 0 ;
-  virtual char*   GetTrackSegmentsBranch ()const = 0 ;
-  virtual const Int_t GetTrackSegmentsInRun()  const = 0 ; 
-
-  virtual void    Print(Option_t * option)const = 0;
-  //  virtual void Set...   // method to choose recPoints: along z only, along x ...???
-  //  virtual void SetChoosingAlgirithm() = 0 ;
-  //  virtual void SetMaxEmcCpvDistance(Float_t r) = 0 ; 
-  virtual Bool_t ReadRecPoints(Int_t ievent) = 0 ; 
-  virtual void SetRecPointsBranch(const char * title) = 0 ;
-  virtual void SetTrackSegmentsBranch(const char * title) = 0 ;
-  virtual const char * Version() const = 0 ;   
-  virtual void WriteTrackSegments(Int_t event) = 0 ;
+  AliPHOSTrackSegmentMaker();
+  AliPHOSTrackSegmentMaker(const TString alirunFileName, const TString eventFolderName = AliConfig::fgkDefaultEventFolderName) ;                     
+  AliPHOSTrackSegmentMaker(const AliPHOSTrackSegmentMaker & tsmaker) : TTask(tsmaker) { ; } 
+  virtual ~ AliPHOSTrackSegmentMaker() ;
+
+  virtual void    Exec(Option_t *) = 0;
+
+  virtual const Int_t GetTrackSegmentsInRun()  const {Warning("GetTrackSegmentsInRun", "Not Defined" ) ; return 0 ; } 
+
+  virtual void    Print()const {Warning("Print", "Not Defined" ) ; }
+  void   SetEventFolderName(TString name) { fEventFolderName = name ; }
+
+  virtual void WriteTrackSegments() = 0;
   
-  ClassDef( AliPHOSTrackSegmentMaker,1)    // Algorithm class to make PHOS track segments (Base Class)
+protected:
+  TString fEventFolderName ;  // event folder name
 
+  ClassDef( AliPHOSTrackSegmentMaker,3)    // Algorithm class to make PHOS track segments (Base Class)
 };
 
 #endif // ALIPHOSTRACKSEGMENTMAKER_H