X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=PHOS%2FAliPHOSFastRecParticle.h;h=9d57dc39b92fddcaca9cf90caf8d38fbbf3a98a4;hp=113f39fe35be5304246db8afa8fe4830a839c247;hb=9ec9156782e803b3bac716ca7410a1b4378d6d67;hpb=a73f33f08284d11550deec9af806219953d782cb diff --git a/PHOS/AliPHOSFastRecParticle.h b/PHOS/AliPHOSFastRecParticle.h index 113f39fe35b..9d57dc39b92 100644 --- a/PHOS/AliPHOSFastRecParticle.h +++ b/PHOS/AliPHOSFastRecParticle.h @@ -5,12 +5,11 @@ /* $Id$ */ -//////////////////////////////////////////////// -// A Particle modified by PHOS response // -// Yves Schutz SUBATECH // -// To become a general class of AliRoot ? // -// // -//////////////////////////////////////////////// +//_________________________________________________________________________ +// A Particle modified by PHOS response and produced by AliPHOSvFast +// To become a general class of AliRoot ? +// +//*-- Author: Yves Schutz (SUBATECH) // --- ROOT system --- @@ -21,34 +20,60 @@ // --- AliRoot header files --- -#include "AliPHOSRecParticle.h" - -typedef TClonesArray FastRecParticlesList ; - - class AliPHOSFastRecParticle : public TParticle { -public: + public: - AliPHOSFastRecParticle() {}; // ctor + AliPHOSFastRecParticle() { + // ctor + }; 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 GetType() { return fType ; } + virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) ; + Int_t GetIndexInList() const { + // returns the index of this in the list + return fIndexInList ; + } + virtual Int_t * GetPrimaries(Int_t & number) ; + Int_t GetType() { + // returns the type of the particle + return fType ; + } TString Name() ; virtual void Paint(Option_t * option=""); void Print() ; - void SetType(Int_t type) { fType = type ; } + void SetPrimary(Int_t index) { + // sets the primary particle index + fPrimary = index ; + } + void SetType(Int_t type) { + // sets the particle type + fType = type ; + } + void SetIndexInList(Int_t val) { + // sets the value of the index in the list + fIndexInList = val ; + } + + enum EParticleType { kUNDEFINED=-1, kNEUTRALEM, kNEUTRALHA, kGAMMA , kGAMMAHA , + kABSURDEM, kABSURDHA , kELECTRON, kCHARGEDHA } ; + + protected: + + Int_t fIndexInList ; // the index of this RecParticle in the list stored in TreeR (to be set by analysis) + Int_t fPrimary ; // (unique) primary particle index + Int_t fType ; // particle type obtained by "virtual" reconstruction -private: + private: - Int_t fType ; // identified particle type + typedef TClonesArray FastRecParticlesList ; - ClassDef(AliPHOSFastRecParticle,1) // Reconstructed Particle, version 1 + ClassDef(AliPHOSFastRecParticle,1) // Reconstructed Particle produced by the fast simulation };