// --- ROOT system ---
#include "TTask.h"
+#include "AliConfig.h"
class TFile ;
// --- Standard library ---
-#include <iostream>
+//#include <iostream>
// --- AliRoot header files ---
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 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;
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
+ ClassDef( AliPHOSTrackSegmentMaker,3) // Algorithm class to make PHOS track segments (Base Class)
};
#endif // ALIPHOSTRACKSEGMENTMAKER_H