/* $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 Kurchatov Institute & SUBATECH)
// --- ROOT system ---
#include "TTask.h"
-
+#include "AliConfig.h"
+class TFile ;
// --- Standard library ---
+//#include <iostream>
// --- AliRoot header files ---
class AliPHOSClusterizer ;
class AliPHOSGeometry ;
+class AliESD ;
class AliPHOSTrackSegmentMaker : public TTask {
public:
- AliPHOSTrackSegmentMaker() ;
- AliPHOSTrackSegmentMaker(char* headerFile, char* branchTitle) ;
-
- virtual ~ AliPHOSTrackSegmentMaker(){
- // dtor
- }
-
- virtual void Exec(Option_t * option) = 0 ;
- virtual char* GetRecPointsBranch ()const = 0 ;
- virtual char* GetTrackSegmentsBranch ()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() = 0 ;
- virtual void SetRecPointsBranch(const char * title) = 0 ;
- virtual void SetTrackSegmentsBranch(const char * title) = 0 ;
- virtual void WriteTrackSegments() = 0 ;
+ 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 ; }
+
+ 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;
- ClassDef( AliPHOSTrackSegmentMaker,1) // Algorithm class to make PHOS track segments (Base Class)
+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