X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FAliPHOSFastRecParticle.h;h=faa5ddcd4924b95566f11ea99589fbddd3bd928e;hb=abd808b98ef5be391d6043ecb9dfeee0947c4724;hp=6b8b985d36b9fad98a15eb844077aa23e60eb81f;hpb=c0d5b57d6775a5e180c6b91a615be8c90904f182;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSFastRecParticle.h b/PHOS/AliPHOSFastRecParticle.h index 6b8b985d36b..faa5ddcd492 100644 --- a/PHOS/AliPHOSFastRecParticle.h +++ b/PHOS/AliPHOSFastRecParticle.h @@ -5,33 +5,41 @@ /* $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 +// Defines the particle type // To become a general class of AliRoot ? -// +//-- //*-- Author: Yves Schutz (SUBATECH) // --- ROOT system --- +class TClonesArray; #include "TParticle.h" -#include "TVector3.h" - +#include "AliPID.h" // --- Standard library --- // --- AliRoot header files --- class AliPHOSFastRecParticle : public TParticle { - + public: - AliPHOSFastRecParticle() { - // ctor - }; + AliPHOSFastRecParticle() ; + AliPHOSFastRecParticle(const AliPHOSFastRecParticle & rp) ; // ctor AliPHOSFastRecParticle(const TParticle & p) ; // ctor - virtual ~AliPHOSFastRecParticle(){ - // dtor - } + virtual ~AliPHOSFastRecParticle(){ } //dtor + virtual Int_t DistancetoPrimitive(Int_t px, Int_t py) ; virtual void Draw(Option_t *option) ; virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) ; @@ -39,42 +47,68 @@ class AliPHOSFastRecParticle : public TParticle { // returns the index of this in the list return fIndexInList ; } - virtual Int_t * GetPrimaries(Int_t & number) ; - Int_t GetType() { + 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 ; } - TString Name() ; - virtual void Paint(Option_t * option=""); - void Print() ; - void SetPrimary(Int_t index) { - // sets the primary particle index - fPrimary = index ; - } - void SetType(Int_t type) { - // sets the particle type - fType = type ; + + void SetPIDBit(UInt_t fSet) { + // Set PID bit number fSet + fType |= (1<