X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;ds=sidebyside;f=PHOS%2FAliPHOSFastRecParticle.h;h=faa5ddcd4924b95566f11ea99589fbddd3bd928e;hb=4f8d3cfb17b6226ce07df2b82d9bbaaa4aec97a6;hp=dd2c1ea6b4beed893bd90e0fc55d3b464ac71540;hpb=e3817e5f4ce8d76720d023a93be3b17b5d5a8fa5;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSFastRecParticle.h b/PHOS/AliPHOSFastRecParticle.h index dd2c1ea6b4b..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 @@ -15,8 +23,9 @@ // --- ROOT system --- +class TClonesArray; #include "TParticle.h" - +#include "AliPID.h" // --- Standard library --- // --- AliRoot header files --- @@ -38,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 const TParticle * GetPrimary(Int_t index=0) const {return 0 ;} - const Int_t GetType() const { + virtual Int_t GetNPrimaries() const {return 0 ;} + virtual const TParticle * GetPrimary(Int_t) const {return 0 ;} + Int_t GetType() const { // returns the type of the particle return fType ; } @@ -68,11 +77,14 @@ class AliPHOSFastRecParticle : public TParticle { Bool_t IsSlowChargedHadron() const; Bool_t IsFastNeutralHadron() const; Bool_t IsSlowNeutralHadron() const; + Bool_t IsEleCon(TString purity = "low") const; TString Name() const ; virtual void Paint(Option_t * option=""); - virtual void Print(Option_t * option="") 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) { @@ -80,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 } ; @@ -89,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