X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FAliPHOSPID.h;h=7588907c77001d133d2b760476c366b3721f8fd9;hb=c0313f5cd3817702a411937eeb5a6417ca68f6b6;hp=71826fdba16e5f826dd148ae29b74b1681091b30;hpb=e957fea89c462908a01dcfa4f611e99a98080071;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSPID.h b/PHOS/AliPHOSPID.h index 71826fdba16..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,44 +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 void Exec(Option_t *) = 0; - virtual const Int_t GetRecParticlesInRun() const { Warning("GetRecParticlesInRun", "not defined" ) ; return 0 ;} - virtual void Print() const { Warning("Print", "not defined" ) ;} - void SetEventFolderName(TString name) { fEventFolderName = name ; } - virtual const 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 + 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,3) // Particle Identifier algorithm (base class) + ClassDef(AliPHOSPID,8) // Particle Identifier algorithm (base class) } ;