/* History of cvs commits:
*
* $Log$
+ * Revision 1.43 2007/08/28 12:55:08 policheh
+ * Loaders removed from the reconstruction code (C.Cheshkov)
+ *
+ * Revision 1.42 2007/08/07 14:12:03 kharlov
+ * Quality assurance added (Yves Schutz)
+ *
+ * Revision 1.41 2007/07/11 13:43:30 hristov
+ * New class AliESDEvent, backward compatibility with the old AliESD (Christian)
+ *
+ * Revision 1.40 2006/08/29 11:41:19 kharlov
+ * Missing implementation of ctors and = operator are added
+ *
+ * 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.
+ *
*/
//_________________________________________________________________________
//*-- Author: Dmitri Peressounko (RRC Kurchatov Institute & SUBATECH)
// --- ROOT system ---
-#include "TTask.h"
-#include "AliConfig.h"
-class TFile ;
-
-// --- Standard library ---
-//#include <iostream>
+#include <TObject.h>
+class TTree;
// --- AliRoot header files ---
-
-
-class AliPHOSClusterizer ;
class AliPHOSGeometry ;
-class AliESD ;
+class AliESDEvent ;
-class AliPHOSTrackSegmentMaker : public TTask {
+class AliPHOSTrackSegmentMaker : public TObject {
public:
AliPHOSTrackSegmentMaker();
- AliPHOSTrackSegmentMaker(const TString alirunFileName, const TString eventFolderName = AliConfig::GetDefaultEventFolderName()) ;
- AliPHOSTrackSegmentMaker(const AliPHOSTrackSegmentMaker & tsmaker) : TTask(tsmaker) { ; }
+ AliPHOSTrackSegmentMaker(AliPHOSGeometry *geom);
+ 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 Clusters2TrackSegments(Option_t *option) = 0;
+
+ void SetInput(TTree *clustersTree);
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;
-
+ void SetESD(AliESDEvent *esd) { fESD = esd; }
+
+ AliESDEvent *GetESD() const {return fESD; }
+
+ virtual TClonesArray * GetTrackSegments() const = 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,4) // Algorithm class to make PHOS track segments (Base Class)
+ AliESDEvent * fESD; //! ESD object
+ AliPHOSGeometry *fGeom; //! Pointer to the PHOS geometry
+ TObjArray *fEMCRecPoints; // Array with the EMC clusters
+ TObjArray *fCPVRecPoints; // Array with the CPV clusters
+
+ ClassDef( AliPHOSTrackSegmentMaker,6) // Algorithm class to make PHOS track segments (Base Class)
};
#endif // ALIPHOSTRACKSEGMENTMAKER_H