X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FAliPHOSFastRecParticle.h;h=ce710681976df0d73d789d88b0e6c5b4fbb3a317;hb=88eed77084ec26a9219dbdde7eea6e5f1cf7b066;hp=7ea48297e130628d11a1973181dd10f7cd08497c;hpb=2f04ed65d5949adfed4f99b4cc36732eeca851d9;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSFastRecParticle.h b/PHOS/AliPHOSFastRecParticle.h index 7ea48297e13..ce710681976 100644 --- a/PHOS/AliPHOSFastRecParticle.h +++ b/PHOS/AliPHOSFastRecParticle.h @@ -7,31 +7,31 @@ //_________________________________________________________________________ // 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" // --- 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 +39,62 @@ 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 const Int_t GetNPrimaries() const {return 0 ;} + virtual const TParticle * GetPrimary(Int_t) const {return 0 ;} + const Int_t GetType() const { // returns the type of the particle return fType ; } - TString Name() ; - virtual void Paint(Option_t * option=""); - virtual void Print(const char * opt) ; - 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<