1 #ifndef ALIPHOSRECPARTICLE_H
2 #define ALIPHOSRECPARTICLE_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 //_________________________________________________________________________
9 // A Reconstructed Particle in PHOS
10 // To become a general class of AliRoot ?
12 //*-- Author: Yves Schutz (SUBATECH)
14 // --- ROOT system ---
16 // --- Standard library ---
18 // --- AliRoot header files ---
20 #include "AliPHOSFastRecParticle.h"
21 #include "AliESDtrack.h"
26 class AliPHOSRecParticle : public AliPHOSFastRecParticle {
30 AliPHOSRecParticle() ;
31 AliPHOSRecParticle(const AliPHOSRecParticle & rp) ; // ctor
32 virtual ~AliPHOSRecParticle(){ }
34 Int_t GetPHOSTSIndex()const { return fPHOSTrackSegment ; }
35 virtual const Int_t GetNPrimariesToRecParticles() const ;
36 virtual const Int_t GetNPrimaries() const ;
37 TVector3 GetPos() const { return fPos ; }
38 virtual const TParticle * GetPrimary(Int_t index) const ;
39 virtual const TParticle * GetPrimary() const ;
40 const Double_t *GetPID();
41 void SetDebug() { fDebug = kTRUE ; }
42 void SetPos(TVector3 pos) { fPos.SetXYZ( pos.X(), pos.Y(), pos.Z() ); }
43 void UnsetDebug() { fDebug = kFALSE ; }
44 void SetTrackSegment(Int_t index){fPHOSTrackSegment = index; }
46 typedef TClonesArray RecParticlesList ;
50 Int_t fPHOSTrackSegment ; // pointer to the associated track segment in PHOS
51 Bool_t fDebug ; // to steer debug output
52 TVector3 fPos ; // position in the global alice coordinate system
53 Double_t fPID[AliESDtrack::kSPECIESN] ; // PID probability densities
55 ClassDef(AliPHOSRecParticle,3) // Reconstructed Particle
58 #endif // AliPHOSRECPARTICLE_H