]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSRecParticle.h
Added the position in global coordinate system of the particle in PHOS
[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 //  To become a general class of AliRoot ?        
11 //  why not      
12 //*-- Author: Yves Schutz (SUBATECH)
13
14 // --- ROOT system ---
15
16 // --- Standard library ---
17
18 // --- AliRoot header files ---
19
20 #include "AliPHOSFastRecParticle.h"
21 class TParticle ;
22 #include  "TVector3.h"  
23
24 class AliPHOSRecParticle : public AliPHOSFastRecParticle {
25
26  public:
27   
28   AliPHOSRecParticle() { fPHOSTrackSegment = 0 ; fDebug = kFALSE ; } 
29   AliPHOSRecParticle(const AliPHOSRecParticle & rp) ;  // ctor
30   virtual ~AliPHOSRecParticle(){  }
31
32   Int_t   GetPHOSTSIndex()const {    return fPHOSTrackSegment ;  }
33   virtual const Int_t GetNPrimariesToRecParticles() const ;
34   virtual const Int_t GetNPrimaries() const ;
35   TVector3 GetPos() const { return fPos ; } 
36   virtual const TParticle * GetPrimary(Int_t index) const ;
37   void    SetDebug() { fDebug = kTRUE ; } 
38   void    SetPos(TVector3 pos) { fPos.SetXYZ( pos.X(), pos.Y(), pos.Z() ); } 
39   void    UnsetDebug() { fDebug = kFALSE ; }
40   void    SetTrackSegment(Int_t index){fPHOSTrackSegment = index; }
41
42   typedef TClonesArray RecParticlesList ; 
43   
44  private:
45
46   Int_t fPHOSTrackSegment ; // pointer to the associated track segment in PHOS  
47   Bool_t fDebug ; // to steer debug output
48   TVector3 fPos ; // position in the global alice coordinate system 
49
50   ClassDef(AliPHOSRecParticle,2)  // Reconstructed Particle
51 };
52
53 #endif // AliPHOSRECPARTICLE_H