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 */
8 //_________________________________________________________________________
9 // A Particle modified by PHOS response and produced by AliPHOSvFast
10 // To become a general class of AliRoot ?
12 //*-- Author: Yves Schutz (SUBATECH)
14 // --- ROOT system ---
16 #include "TParticle.h"
19 // --- Standard library ---
21 // --- AliRoot header files ---
23 class AliPHOSFastRecParticle : public TParticle {
27 AliPHOSFastRecParticle() {
31 AliPHOSFastRecParticle(const AliPHOSFastRecParticle & rp) ; // ctor
32 AliPHOSFastRecParticle(const TParticle & p) ; // ctor
33 virtual ~AliPHOSFastRecParticle(){
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
43 Int_t GetPrimary(){return fPrimary;}
45 const Int_t GetType() const {
46 // returns the type of the particle
50 void SetPIDBit(UInt_t fSet)
55 Bool_t TestPIDBit(UInt_t fTest){
56 if (fType & (1<<fTest) )
63 virtual void Paint(Option_t * option="");
64 virtual void Print(const char * opt) ;
65 void SetPrimary(Int_t index) { // sets the primary particle index
69 void SetType(Int_t type) {
70 // sets the particle type
74 void SetIndexInList(Int_t val) {
75 // sets the value of the index in the list
79 enum EParticleType { kUNDEFINED=-1,
80 kNEUTRALEMFAST, kNEUTRALHAFAST, kNEUTRALEMSLOW, kNEUTRALHASLOW,
81 kCHARGEDEMFAST, kCHARGEDHAFAST, kCHARGEDEMSLOW, kCHARGEDHASLOW } ;
83 typedef TClonesArray FastRecParticlesList ;
87 Int_t fIndexInList ; // the index of this RecParticle in the list stored in TreeR (to be set by analysis)
88 Int_t fPrimary ; // primary particle index
89 Int_t fType ; // particle type obtained by "virtual" reconstruction
94 ClassDef(AliPHOSFastRecParticle,1) // Reconstructed Particle produced by the fast simulation
98 #endif // AliPHOSFASTRECPARTICLE_H