]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliEMCALFastRecParticle.h
Code for Pyhtia comparison
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALFastRecParticle.h
1 #ifndef ALIEMCALFASTRECPARTICLE_H
2 #define ALIEMCALFASTRECPARTICLE_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 EMCAL response and produced by AliEMCALvFast
10 //  To become a general class of AliRoot ?    
11 //               
12 //*-- Author: Yves Schutz (SUBATECH)
13
14 // --- ROOT system ---
15
16 #include "TParticle.h"
17
18 // --- Standard library ---
19
20 // --- AliRoot header files ---
21
22 class AliEMCALFastRecParticle : public TParticle {
23   
24  public:
25   
26   AliEMCALFastRecParticle() ;
27   
28   AliEMCALFastRecParticle(const AliEMCALFastRecParticle & rp) ;  // ctor
29   AliEMCALFastRecParticle(const TParticle & p) ;  // ctor
30   virtual ~AliEMCALFastRecParticle(){
31     // dtor
32   }
33   virtual Int_t DistancetoPrimitive(Int_t px, Int_t py) ; 
34   virtual void Draw(Option_t *option) ;  
35   virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) ;
36   Int_t GetIndexInList() const { 
37     // returns the index of this in the list
38     return fIndexInList ; 
39   } 
40   virtual const Int_t GetNPrimaries() const {return 0 ;}
41   virtual const TParticle * GetPrimary(Int_t /*index=0*/) const  {return 0 ;} 
42   const Int_t GetType() const { 
43     // returns the type of the particle
44     return fType ; 
45   } 
46   
47   TString Name() const ; 
48   virtual void Paint(Option_t * option="");
49   virtual void Print(Option_t * option = "") const ; 
50   
51   void SetType(Int_t type) ;
52   
53   void SetIndexInList(Int_t val) { 
54     // sets the value of the index in the list 
55     fIndexInList = val ; 
56   }
57   //This has to disappear
58   enum EParticleType { kUNDEFINED=-1, 
59                        kNEUTRALEMFAST, kNEUTRALHAFAST,  kNEUTRALEMSLOW, kNEUTRALHASLOW, 
60                        kCHARGEDEMFAST, kCHARGEDHAFAST,  kCHARGEDEMSLOW, kCHARGEDHASLOW } ; 
61   
62   
63   typedef TClonesArray  FastRecParticlesList ; 
64   
65  protected:
66
67   Int_t fIndexInList ; // the index of this RecParticle in the list stored in TreeR (to be set by analysis)
68   Int_t fType ;        // particle type obtained by "virtual" reconstruction
69  private:
70
71
72   ClassDef(AliEMCALFastRecParticle,2)  // Reconstructed Particle produced by the fast simulation 
73
74 };
75
76 #endif // AliEMCALFASTRECPARTICLE_H