]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/PHOS-HTML/AliPHOSFastRecParticle.h
Macro for checking dimuon trigger efficiency (Fabien)
[u/mrichter/AliRoot.git] / PHOS / PHOS-HTML / AliPHOSFastRecParticle.h
CommitLineData
29c81279 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
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)
13
14// --- ROOT system ---
15
16#include "TParticle.h"
17#include "TVector3.h"
18
19// --- Standard library ---
20
21// --- AliRoot header files ---
22
23typedef TClonesArray FastRecParticlesList ;
24
25const static Int_t kUNDEFINED = -1;
26const static Int_t kGAMMA = 0 ;
27const static Int_t kELECTRON = 1 ;
28const static Int_t kNEUTRAL = 2 ;
29const static Int_t kCHARGED = 3 ;
30const static Int_t kCHARGEDHADRON = 4 ;
31const static Int_t kNEUTRALHADRON = 5 ;
32const static Int_t kNEUTRALEM = 6 ;
33const static Int_t kGAMMAHADRON = 7 ;
34
35
36class AliPHOSFastRecParticle : public TParticle {
37
38public:
39
40 AliPHOSFastRecParticle() {}; // ctor
41 AliPHOSFastRecParticle(const AliPHOSFastRecParticle & rp) ; // ctor
42 AliPHOSFastRecParticle(const TParticle & p) ; // ctor
43 virtual ~AliPHOSFastRecParticle(){} // dtor
44
45 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py) ;
46 virtual void Draw(Option_t *option) ;
47 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) ;
48 virtual Int_t * GetPrimaries(Int_t & number) ;
49 Int_t GetType() { return fType ; }
50 TString Name() ;
51 virtual void Paint(Option_t * option="");
52 void Print() ;
53 void SetPrimary(Int_t index) { fPrimary = index ; }
54 void SetType(Int_t type) { fType = type ; }
55
56protected:
57
58 Int_t fType ; // particle type obtained by "virtual" reconstruction
59 Int_t fPrimary ; // (unique) primary particle index
60
61 ClassDef(AliPHOSFastRecParticle,1) // Reconstructed Particle produced by the fast simulation
62
63};
64
65#endif // AliPHOSFASTRECPARTICLE_H