X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FAliPHOSFastRecParticle.h;h=faa5ddcd4924b95566f11ea99589fbddd3bd928e;hb=e974c09766dbabb2a196640b68364324c2e1d838;hp=ce710681976df0d73d789d88b0e6c5b4fbb3a317;hpb=948a4b24a36854469ae0eaa36bd0d7a8c9500c90;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSFastRecParticle.h b/PHOS/AliPHOSFastRecParticle.h index ce710681976..faa5ddcd492 100644 --- a/PHOS/AliPHOSFastRecParticle.h +++ b/PHOS/AliPHOSFastRecParticle.h @@ -5,6 +5,14 @@ /* $Id$ */ +/* History of cvs commits: + * + * $Log$ + * Revision 1.36 2005/05/28 14:19:04 schutz + * Compilation warnings fixed by T.P. + * + */ + //_________________________________________________________________________ // A Particle modified by PHOS response and produced by AliPHOSvFast // This is also a base class for AliPHOSRecParticle produced by AliPHOSPIDv1 @@ -17,7 +25,7 @@ class TClonesArray; #include "TParticle.h" - +#include "AliPID.h" // --- Standard library --- // --- AliRoot header files --- @@ -39,9 +47,9 @@ class AliPHOSFastRecParticle : public TParticle { // returns the index of this in the list return fIndexInList ; } - virtual const Int_t GetNPrimaries() const {return 0 ;} + virtual Int_t GetNPrimaries() const {return 0 ;} virtual const TParticle * GetPrimary(Int_t) const {return 0 ;} - const Int_t GetType() const { + Int_t GetType() const { // returns the type of the particle return fType ; } @@ -73,8 +81,10 @@ class AliPHOSFastRecParticle : public TParticle { TString Name() const ; virtual void Paint(Option_t * option=""); - virtual void Print() const ; + virtual void Print(const Option_t * = "") const ; + void SetTof(Float_t tof) { fTof = tof ; } + Float_t ToF() const { return fTof ; } void SetType(Int_t type) ; void SetIndexInList(Int_t val) { @@ -82,7 +92,8 @@ class AliPHOSFastRecParticle : public TParticle { fIndexInList = val ; } //This has to disappear - enum EParticleType { kUNDEFINED=-1, + enum EParticleType { kTYPE = 8, + kUNDEFINED=-1, kNEUTRALEMFAST, kNEUTRALHAFAST, kNEUTRALEMSLOW, kNEUTRALHASLOW, kCHARGEDEMFAST, kCHARGEDHAFAST, kCHARGEDEMSLOW, kCHARGEDHASLOW } ; @@ -91,7 +102,10 @@ class AliPHOSFastRecParticle : public TParticle { protected: Int_t fIndexInList ; // the index of this RecParticle in the list stored in TreeR (to be set by analysis) + Float_t fTof ; // time of fliht Int_t fType ; // particle type obtained by "virtual" reconstruction + Float_t fPID[AliPID::kSPECIESN] ; // PID probability densities + private: ClassDef(AliPHOSFastRecParticle,2) // Reconstructed Particle produced by the fast simulation