]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSTrackSegment.h
Full PID delegated to AliPHOSPID
[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 //  Short description                          //
10 //  Version SUBATECH                           //
11 //  Author Dmitri Peressounko RRC KI           //
12 //      comment: contains pairs (triplets) of  //  
13 //               EMC+PPSD(+PPSD) clusters, and //
14 //               evaluates particle type,      // 
15 //               energy, etc                   //
16 /////////////////////////////////////////////////
17
18 // --- ROOT system ---
19
20 #include "TObject.h"
21 #include "TVector3.h"
22
23 // --- Standard library ---
24
25 // --- AliRoot header files ---
26
27 #include "AliPHOSEmcRecPoint.h"
28 #include "AliPHOSPpsdRecPoint.h"
29
30 class AliPHOSTrackSegment : public TObject  {
31
32 public:
33
34   AliPHOSTrackSegment() {} ;       // ctor 
35   AliPHOSTrackSegment(AliPHOSEmcRecPoint * EmcRecPoint , AliPHOSPpsdRecPoint * PpsdUp, 
36                       AliPHOSPpsdRecPoint * PpsdLow  ) ; // ctor
37   AliPHOSTrackSegment(const AliPHOSTrackSegment & ts) ;  // ctor                   
38   virtual ~AliPHOSTrackSegment() ; // dtor 
39
40   void Copy(TObject & obj) ;  
41   virtual Int_t  DistancetoPrimitive(Int_t px, Int_t py);
42   virtual void   Draw(Option_t * option="") ;
43   virtual void   ExecuteEvent(Int_t event, Int_t px, Int_t py);
44   Float_t GetEnergy(){ return fEmcRecPoint->GetTotalEnergy() ;}   // Returns energy in EMC
45   
46   Float_t GetDistanceInPHOSPlane(void) ;   // Computes in PHOS plane the relative position between EMC and PPSD clusters 
47   virtual Int_t  GetPHOSMod(void) {return fEmcRecPoint->GetPHOSMod();  }
48   TVector3 GetMomentumDirection() ;        // Returns the momentum direction
49   void GetPosition( TVector3 & pos ) ;     // Returns positions of hit
50   AliPHOSEmcRecPoint * GetEmcRecPoint() const { return fEmcRecPoint ; } 
51   AliPHOSPpsdRecPoint * GetPpsdLow() const { return fPpsdLow ; } 
52   AliPHOSPpsdRecPoint * GetPpsdUp() const { return fPpsdUp ; } 
53   virtual  void  Paint(Option_t * option="");
54   void Print() ;
55   
56   
57 private:
58   
59   AliPHOSEmcRecPoint  * fEmcRecPoint ;
60   AliPHOSPpsdRecPoint * fPpsdLow ;
61   AliPHOSPpsdRecPoint * fPpsdUp ;
62   
63
64   ClassDef(AliPHOSTrackSegment,1)  // description , version 1
65
66 };
67
68 #endif // AliPHOSSUBTRACK_H