]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSRecParticle.h
A new particle specie was created: a PHOTON HADRON
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRecParticle.h
1 #ifndef ALIPHOSRECPARTICLE_H
2 #define ALIPHOSRECPARTICLE_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 Reconstructed Particle in PHOS          //
10 //  Yves Schutz SUBATECH                      //
11 //  To become a general class of AliRoot ?    //  
12 //                                            //
13 ////////////////////////////////////////////////
14
15 // --- ROOT system ---
16
17 #include "TParticle.h"
18 #include "TVector3.h"
19
20 // --- Standard library ---
21
22 // --- AliRoot header files ---
23
24 #include "AliPHOSTrackSegment.h"
25
26 const static Int_t kUNDEFINED     = -1; 
27 const static Int_t kGAMMA         = 0 ; 
28 const static Int_t kELECTRON      = 1 ;
29 const static Int_t kNEUTRAL       = 2 ;  
30 const static Int_t kCHARGED       = 3 ;  
31 const static Int_t kCHARGEDHADRON = 4 ;  
32 const static Int_t kNEUTRALHADRON = 5 ;  
33 const static Int_t kNEUTRALEM     = 6 ;  
34 const static Int_t kGAMMAHADRON   = 7 ; 
35
36 class AliPHOSRecParticle : public TParticle {
37
38 public:
39   
40   AliPHOSRecParticle() {};          // ctor
41   AliPHOSRecParticle(AliPHOSTrackSegment * ts) ;  // ctor
42
43   virtual ~AliPHOSRecParticle(){} ; // dtor
44
45   AliPHOSTrackSegment * GetPHOSTrackSegment() { return fPHOSTrackSegment ; } 
46   Int_t GetType() { return fType ; } 
47   TString Name() ; 
48   void Print() ; 
49   void SetType(Int_t type) { fType = type ; } 
50
51 private:
52
53   AliPHOSTrackSegment * fPHOSTrackSegment ; // pointer to the associated track segment in PHOS  
54   Int_t fType ;                             // identified particle type
55
56   ClassDef(AliPHOSRecParticle,1)  // Reconstructed Particle, version 1
57
58 };
59
60 #endif // AliPHOSRECPARTICLE_H