X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=PHOS%2FAliPHOSPID.h;h=7588907c77001d133d2b760476c366b3721f8fd9;hp=47b5aa39333327f07021d29bd190f585d74b9968;hb=e3d9d3690b76e67227fe96c9b3f77a61540bcf62;hpb=fc7e2f436398e9b9b8875125b25f6cb4f7e97591 diff --git a/PHOS/AliPHOSPID.h b/PHOS/AliPHOSPID.h index 47b5aa39333..7588907c770 100644 --- a/PHOS/AliPHOSPID.h +++ b/PHOS/AliPHOSPID.h @@ -5,6 +5,32 @@ /* $Id$ */ +/* History of cvs commits: + * + * $Log$ + * Revision 1.41 2007/08/28 12:55:08 policheh + * Loaders removed from the reconstruction code (C.Cheshkov) + * + * Revision 1.40 2007/08/07 14:12:03 kharlov + * Quality assurance added (Yves Schutz) + * + * Revision 1.39 2007/07/11 13:43:30 hristov + * New class AliESDEvent, backward compatibility with the old AliESD (Christian) + * + * 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 @@ -12,46 +38,53 @@ //*-- Author: Yves Schutz (SUBATECH) // --- ROOT system --- - -#include "TTask.h" -#include "AliConfig.h" - -class TFormula ; -class TClonesArray ; +#include "TObject.h" +class TTree; // --- Standard library --- // --- AliRoot header files --- - +class AliESDEvent ; class AliPHOSGeometry ; class AliPHOSClusterizer ; class AliPHOSTrackSegmentMaker ; -class AliPHOSPID : public TTask { +class AliPHOSPID : public TObject { public: AliPHOSPID() ; // ctor - AliPHOSPID (const TString alirunFileName, const TString eventFolderName = AliConfig::fgkDefaultEventFolderName) ; - AliPHOSPID(const AliPHOSPID & pid) : TTask(pid) {;} + AliPHOSPID (AliPHOSGeometry *geom); + AliPHOSPID(const AliPHOSPID & pid) ; virtual ~AliPHOSPID() ; // dtor + AliPHOSPID & operator = (const AliPHOSPID & /*rvalue*/) { + Fatal("operator =", "not implemented") ; return *this ; } + + virtual void TrackSegments2RecParticles(Option_t * option) = 0; - virtual Int_t GetRecParticlesInRun() const { Warning("GetRecParticlesInRun", "not defined" ) ; return 0 ;} - virtual void Print() 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 ; } - virtual char * Version() const { Warning("Version", "not defined" ) ; return 0 ; } - virtual void WriteRecParticles() = 0; + void SetInput(TTree *clustersTree, TClonesArray *trackSegments); + TClonesArray* GetRecParticles() const { return fRecParticles; } + + virtual void Print(const Option_t * = "") const = 0; + + void SetESD(AliESDEvent *esd) { fESD = esd; } + + virtual const char * Version() const = 0; protected: - TString fEventFolderName ; // event folder name - Int_t fFirstEvent; // first event to process - Int_t fLastEvent; // last event to process + AliPHOSGeometry * fGeom; //! Pointer to PHOS Geometry + AliESDEvent * fESD; //! ESD object + + TObjArray *fEMCRecPoints; //!Array with EMC clusters + TObjArray *fCPVRecPoints; //!Array with CPV clusters + + TClonesArray *fTrackSegments; //!Array with found track segments + TClonesArray *fRecParticles; //!Array with reconstructed particles (PID) + private: - virtual void Init() { Warning("Init", "not defined" ) ; } - ClassDef(AliPHOSPID,4) // Particle Identifier algorithm (base class) + ClassDef(AliPHOSPID,8) // Particle Identifier algorithm (base class) } ;