]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSFastRecParticle.h
Adding a SetTreeAddress in AliPHOS and AliPHOSv0 classes for the re-analysis of the...
[u/mrichter/AliRoot.git] / PHOS / AliPHOSFastRecParticle.h
CommitLineData
a73f33f0 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
b2a60966 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)
a73f33f0 13
14// --- ROOT system ---
15
16#include "TParticle.h"
17#include "TVector3.h"
18
19// --- Standard library ---
20
21// --- AliRoot header files ---
22
2aad621e 23const static Int_t kUNDEFINED =-1 ;
88714635 24const static Int_t kNEUTRALEM = 0 ;
25const static Int_t kNEUTRALHA = 1 ;
26const static Int_t kGAMMA = 2 ;
27const static Int_t kGAMMAHA = 3 ;
28const static Int_t kABSURDEM = 4 ;
29const static Int_t kABSURDHA = 5 ;
30const static Int_t kELECTRON = 6 ;
31const static Int_t kCHARGEDHA = 7 ;
a73f33f0 32
33
34class AliPHOSFastRecParticle : public TParticle {
35
88714635 36 public:
a73f33f0 37
88714635 38 AliPHOSFastRecParticle() {
39 // ctor
40 };
a73f33f0 41 AliPHOSFastRecParticle(const AliPHOSFastRecParticle & rp) ; // ctor
42 AliPHOSFastRecParticle(const TParticle & p) ; // ctor
88714635 43 virtual ~AliPHOSFastRecParticle(){
44 // dtor
45 }
a73f33f0 46 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py) ;
47 virtual void Draw(Option_t *option) ;
b2a60966 48 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) ;
88714635 49 Int_t GetIndexInList() const {
50 // returns the index of this in the list
51 return fIndexInList ;
52 }
b2a60966 53 virtual Int_t * GetPrimaries(Int_t & number) ;
88714635 54 Int_t GetType() {
55 // returns the type of the particle
56 return fType ;
57 }
a73f33f0 58 TString Name() ;
59 virtual void Paint(Option_t * option="");
60 void Print() ;
88714635 61 void SetPrimary(Int_t index) {
62 // sets the primary particle index
63 fPrimary = index ;
64 }
65 void SetType(Int_t type) {
66 // sets the particle type
67 fType = type ;
68 }
69 void SetIndexInList(Int_t val) {
70 // sets the value of the index in the list
71 fIndexInList = val ;
72 }
73
74 protected:
a73f33f0 75
83974468 76 Int_t fIndexInList ; // the index of this RecParticle in the list stored in TreeR (to be set by analysis)
77 Int_t fPrimary ; // (unique) primary particle index
78 Int_t fType ; // particle type obtained by "virtual" reconstruction
a73f33f0 79
88714635 80 private:
81
82 typedef TClonesArray FastRecParticlesList ;
83
b2a60966 84 ClassDef(AliPHOSFastRecParticle,1) // Reconstructed Particle produced by the fast simulation
a73f33f0 85
86};
87
88#endif // AliPHOSFASTRECPARTICLE_H