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