]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSFastRecParticle.h
Minor improvements on the code
[u/mrichter/AliRoot.git] / PHOS / AliPHOSFastRecParticle.h
1 #ifndef ALIPHOSFASTRECPARTICLE_H
2 #define ALIPHOSFASTRECPARTICLE_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 //_________________________________________________________________________
9 //  A  Particle modified by PHOS response and produced by AliPHOSvFast
10 //  To become a general class of AliRoot ?    
11 //               
12 //*-- Author: Yves Schutz (SUBATECH)
13
14 // --- ROOT system ---
15
16 #include "TParticle.h"
17 #include "TVector3.h"
18
19 // --- Standard library ---
20
21 // --- AliRoot header files ---
22
23 class AliPHOSFastRecParticle : public TParticle {
24
25  public:
26   
27   AliPHOSFastRecParticle() {
28     // ctor 
29   };         
30
31   AliPHOSFastRecParticle(const AliPHOSFastRecParticle & rp) ;  // ctor
32   AliPHOSFastRecParticle(const TParticle & p) ;  // ctor
33   virtual ~AliPHOSFastRecParticle(){
34     // dtor
35   }
36   virtual Int_t DistancetoPrimitive(Int_t px, Int_t py) ; 
37   virtual void Draw(Option_t *option) ;  
38   virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) ;
39   Int_t GetIndexInList() const { 
40     // returns the index of this in the list
41     return fIndexInList ; 
42   } 
43   Int_t GetPrimary(){return fPrimary;}
44   const Int_t GetType() const { 
45     // returns the type of the particle
46     return fType ; 
47   } 
48   TString Name() ; 
49   virtual void Paint(Option_t * option="");
50   virtual void Print(const char * opt) ; 
51   void SetPrimary(Int_t index) { // sets the primary particle index
52     fPrimary = index ; 
53   }
54   void SetType(Int_t type) { 
55     // sets the particle type 
56     fType = type ; 
57   } 
58   void SetIndexInList(Int_t val) { 
59     // sets the value of the index in the list 
60     fIndexInList = val ; 
61   } 
62
63   enum EParticleType { kUNDEFINED=-1, 
64                        kNEUTRALEMFAST, kNEUTRALHAFAST,  kNEUTRALEMSLOW, kNEUTRALHASLOW, 
65                        kCHARGEDEMFAST, kCHARGEDHAFAST,  kCHARGEDEMSLOW, kCHARGEDHASLOW } ; 
66
67   typedef TClonesArray  FastRecParticlesList ; 
68
69  protected:
70
71   Int_t fIndexInList ; // the index of this RecParticle in the list stored in TreeR (to be set by analysis)
72   Int_t fPrimary ;  //  primary particle index 
73   Int_t fType ;        // particle type obtained by "virtual" reconstruction
74
75  private:
76
77
78   ClassDef(AliPHOSFastRecParticle,1)  // Reconstructed Particle produced by the fast simulation 
79
80 };
81
82 #endif // AliPHOSFASTRECPARTICLE_H