]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSTrackSegment.h
Correct path of images and src
[u/mrichter/AliRoot.git] / PHOS / AliPHOSTrackSegment.h
1 #ifndef ALIPHOSSUBTRACK_H
2 #define ALIPHOSSUBTRACK_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 //  Track segment in PHOS
10 //  Can be : 1 EmcRecPoint
11 //           1 EmcRecPoint + 1 PPSD
12 //           1 EmcRecPoint + 1 PPSD + 1 PPSD     
13 //                  
14 //*-- Author:  Dmitri Peressounko (RRC KI & SUBATECH)
15
16 // --- ROOT system ---
17
18 #include "TObject.h"
19 #include "TVector3.h"
20
21 // --- Standard library ---
22
23 // --- AliRoot header files ---
24
25 #include "AliPHOSEmcRecPoint.h"
26 #include "AliPHOSPpsdRecPoint.h"
27
28 class AliPHOSTrackSegment : public TObject  {
29
30 public:
31
32   AliPHOSTrackSegment() {}       // ctor 
33   AliPHOSTrackSegment(AliPHOSEmcRecPoint * EmcRecPoint , AliPHOSPpsdRecPoint * PpsdUp, 
34                       AliPHOSPpsdRecPoint * PpsdLow  ) ; // ctor
35   AliPHOSTrackSegment(const AliPHOSTrackSegment & ts) ;  // ctor                   
36   virtual ~AliPHOSTrackSegment() {} // dtor 
37
38   void Copy(TObject & obj) ;  
39   virtual Int_t  DistancetoPrimitive(Int_t px, Int_t py);
40   virtual void   Draw(Option_t * option="") ;
41   virtual void   ExecuteEvent(Int_t event, Int_t px, Int_t py);
42   Float_t GetEnergy(){ return fEmcRecPoint->GetTotalEnergy() ;}   // Returns energy in EMC
43   
44   Float_t GetDistanceInPHOSPlane(void) ;   // Computes in PHOS plane the relative position between EMC and PPSD clusters 
45   virtual Int_t  GetPHOSMod(void) {return fEmcRecPoint->GetPHOSMod();  }
46   TVector3 GetMomentumDirection() ;        // Returns the momentum direction
47   void GetPosition( TVector3 & pos ) ;     // Returns positions of hit
48   Int_t * GetPrimariesEmc(Int_t & number) ;
49   Int_t * GetPrimariesPpsdLow(Int_t & number) ;
50   Int_t * GetPrimariesPpsdUp(Int_t & number) ;
51   AliPHOSEmcRecPoint * GetEmcRecPoint() const { return fEmcRecPoint ; } 
52   AliPHOSPpsdRecPoint * GetPpsdLow() const { return fPpsdLow ; } 
53   AliPHOSPpsdRecPoint * GetPpsdUp() const { return fPpsdUp ; } 
54   virtual  void  Paint(Option_t * option="");
55   void Print() ;
56   
57   
58 private:
59   
60   AliPHOSEmcRecPoint  * fEmcRecPoint ; //! The EMC reconstructed point
61   AliPHOSPpsdRecPoint * fPpsdLow ;     //! The PPSD reconstructed point from the lower layer
62   AliPHOSPpsdRecPoint * fPpsdUp ;      //! The PPSD reconstructed point from the upper layer
63   Int_t fEmcRecPointId ; // The EMC reconstructed point Id in the list
64   Int_t fPpsdLowId ;     // The PPSD reconstructed point from the lower layer Id in the list
65   Int_t fPpsdUpId ;      // The PPSD reconstructed point from the upper layer Id in the list
66
67   ClassDef(AliPHOSTrackSegment,1)  // Track segment in PHOS
68
69 };
70
71 #endif // AliPHOSSUBTRACK_H