/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ * Revision 1.38 2007/04/01 15:40:15 kharlov
+ * Correction for actual vertex position implemented
+ *
+ * Revision 1.37 2006/08/29 11:41:19 kharlov
+ * Missing implementation of ctors and = operator are added
+ *
+ * Revision 1.36 2006/08/25 16:00:53 kharlov
+ * Compliance with Effective C++AliPHOSHit.cxx
+ *
+ * Revision 1.35 2005/05/28 14:19:04 schutz
+ * Compilation warnings fixed by T.P.
+ *
+ */
+
//_________________________________________________________________________
// Algorithm class for the identification of particles detected in PHOS
// base class
-//
+// of identified particles
//*-- Author: Yves Schutz (SUBATECH)
// --- ROOT system ---
-#include "TObject.h"
-#include "TClonesArray.h"
+#include "TTask.h"
+#include "AliConfig.h"
+
+class TFormula ;
+class TClonesArray ;
// --- Standard library ---
// --- AliRoot header files ---
+class AliESDEvent ;
+class AliPHOSGeometry ;
+class AliPHOSClusterizer ;
+class AliPHOSTrackSegmentMaker ;
-#include "AliPHOSTrackSegment.h"
-#include "AliPHOSRecParticle.h"
-#include "AliPHOSGeometry.h"
+class AliPHOSPID : public TTask {
+ public:
+ AliPHOSPID() ; // ctor
+ AliPHOSPID (const TString alirunFileName, const TString eventFolderName = AliConfig::GetDefaultEventFolderName()) ;
+ AliPHOSPID(const AliPHOSPID & pid) ;
+ virtual ~AliPHOSPID() ; // dtor
+ AliPHOSPID & operator = (const AliPHOSPID & /*rvalue*/) {
+ Fatal("operator =", "not implemented") ; return *this ; }
-class AliPHOSPID : public TObject {
+ virtual Int_t GetRecParticlesInRun() const { Warning("GetRecParticlesInRun", "not defined" ) ; return 0 ;}
+ virtual void Print(const Option_t * = "") const { Warning("Print", "not defined" ) ;}
-public:
+ void SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; }
+ void SetEventFolderName(TString name) { fEventFolderName = name ; }
- AliPHOSPID(){} ; // ctor
- virtual ~AliPHOSPID() ; // dtor
+ TString GetEventFolderName() const {return fEventFolderName;}
+ Int_t GetFirstEvent() const {return fFirstEvent; }
+ Int_t GetLastEvent() const {return fLastEvent; }
- virtual void MakeParticles(AliPHOSTrackSegment::TrackSegmentsList * trsl,
- AliPHOSRecParticle::RecParticlesList * rpl) {} ;
- virtual void Print(const char *){} ;
- virtual void SetShowerProfileCuts(Float_t, Float_t, Float_t, Float_t) {} ;
- virtual void SetDispersionCutOff(Float_t ) {} ;
- virtual void SetRelativeDistanceCut(Float_t ) {};
+ void SetESD(AliESDEvent *esd) { fESD = esd; }
- protected:
-
- AliPHOSGeometry * fGeom ; // pointer to PHOS geometry
+ virtual const char * Version() const { Warning("Version", "not defined" ) ; return 0 ; }
+ virtual void WriteRecParticles() = 0;
+protected:
+ TString fEventFolderName ; // event folder name
+ Int_t fFirstEvent; // first event to process
+ Int_t fLastEvent; // last event to process
+ AliESDEvent * fESD; //! ESD object
+private:
+ virtual void Init() { Warning("Init", "not defined" ) ; }
- ClassDef(AliPHOSPID,1) // Particle Identifier algorithm (base class)
+ ClassDef(AliPHOSPID,5) // Particle Identifier algorithm (base class)
} ;