Removed global's to comply with Coding Conventions
[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
a73f33f0 23class AliPHOSFastRecParticle : public TParticle {
24
88714635 25 public:
a73f33f0 26
88714635 27 AliPHOSFastRecParticle() {
28 // ctor
29 };
a73f33f0 30 AliPHOSFastRecParticle(const AliPHOSFastRecParticle & rp) ; // ctor
31 AliPHOSFastRecParticle(const TParticle & p) ; // ctor
88714635 32 virtual ~AliPHOSFastRecParticle(){
33 // dtor
34 }
a73f33f0 35 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py) ;
36 virtual void Draw(Option_t *option) ;
b2a60966 37 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) ;
88714635 38 Int_t GetIndexInList() const {
39 // returns the index of this in the list
40 return fIndexInList ;
41 }
b2a60966 42 virtual Int_t * GetPrimaries(Int_t & number) ;
88714635 43 Int_t GetType() {
44 // returns the type of the particle
45 return fType ;
46 }
a73f33f0 47 TString Name() ;
48 virtual void Paint(Option_t * option="");
49 void Print() ;
88714635 50 void SetPrimary(Int_t index) {
51 // 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
9ec91567 63 enum EParticleType { kUNDEFINED=-1, kNEUTRALEM, kNEUTRALHA, kGAMMA , kGAMMAHA ,
64 kABSURDEM, kABSURDHA , kELECTRON, kCHARGEDHA } ;
65
88714635 66 protected:
a73f33f0 67
83974468 68 Int_t fIndexInList ; // the index of this RecParticle in the list stored in TreeR (to be set by analysis)
69 Int_t fPrimary ; // (unique) primary particle index
70 Int_t fType ; // particle type obtained by "virtual" reconstruction
a73f33f0 71
88714635 72 private:
73
74 typedef TClonesArray FastRecParticlesList ;
75
b2a60966 76 ClassDef(AliPHOSFastRecParticle,1) // Reconstructed Particle produced by the fast simulation
a73f33f0 77
78};
79
80#endif // AliPHOSFASTRECPARTICLE_H