X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FAliPHOSFastRecParticle.h;h=faa5ddcd4924b95566f11ea99589fbddd3bd928e;hb=e3c6ae4cf31c1d1029e5aa0f15a2f69b4c32c5e4;hp=578bb3067977c7920c85f62db2d6867b154c6c50;hpb=2aad621e9d4bd4bc1ae8497f92404c06a6100fd9;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSFastRecParticle.h b/PHOS/AliPHOSFastRecParticle.h index 578bb306797..faa5ddcd492 100644 --- a/PHOS/AliPHOSFastRecParticle.h +++ b/PHOS/AliPHOSFastRecParticle.h @@ -5,63 +5,110 @@ /* $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 --- -typedef TClonesArray FastRecParticlesList ; - -const static Int_t kUNDEFINED =-1 ; -const static Int_t kNEUTRAL_EM = 0 ; -const static Int_t kNEUTRAL_HA = 1 ; -const static Int_t kGAMMA = 2 ; -const static Int_t kGAMMA_HA = 3 ; -const static Int_t kABSURD_EM = 4 ; -const static Int_t kABSURD_HA = 5 ; -const static Int_t kELECTRON = 6 ; -const static Int_t kCHARGED_HA = 7 ; - - class AliPHOSFastRecParticle : public TParticle { - -public: - AliPHOSFastRecParticle() {}; // ctor + public: + + 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) ; - Int_t GetIndexInList() const { return fIndexInList ; } - virtual Int_t * GetPrimaries(Int_t & number) ; - Int_t GetType() { return fType ; } - TString Name() ; + Int_t GetIndexInList() const { + // returns the index of this in the list + return fIndexInList ; + } + 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 ; + } + + void SetPIDBit(UInt_t fSet) { + // Set PID bit number fSet + fType |= (1<