]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSTrackSegment.h
Clean up to correct for the mess introduced by my eratic branching !
[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 /////////////////////////////////////////////////
7 //  Short description                          //
8 //  Version SUBATECH                           //
9 //  Author Dmitri Peressounko RRC KI           //
10 //      comment: contains pairs (triplets) of  //  
11 //               EMC+PPSD(+PPSD) clusters, and //
12 //               evaluates particle type,      // 
13 //               energy, etc                   //
14 /////////////////////////////////////////////////
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
29
30 class AliPHOSTrackSegment : public TObject  {
31
32 public:
33
34   AliPHOSTrackSegment() {} ; // ctor 
35   AliPHOSTrackSegment(AliPHOSEmcRecPoint * EmcRecPoint , AliPHOSPpsdRecPoint * PpsdUp, 
36                   AliPHOSPpsdRecPoint * PpsdLow  ) ;                    
37   virtual ~AliPHOSTrackSegment() ; // dtor 
38
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   Int_t GetPartType() ;          // Returns 0 - gamma, 1 - e+, e- ;  2 - neutral hadron ; 3 - charged hadron
43   Float_t GetEnergy(){ return fEmcRecPoint->GetTotalEnergy() ;}   // Returs energy in EMC
44   
45   Float_t GetDistanceInPHOSPlane(void) ;    // computes in PHOS plane the relative position between EMC and PPSD clusters 
46   virtual Int_t  GetPHOSMod(void) {return fEmcRecPoint->GetPHOSMod();  }
47   Bool_t GetMomentumDirection( TVector3 & dir ) ;   // True if determined
48   void GetPosition( TVector3 & pos ) ;              // Returns positions of hits
49   virtual  void  Paint(Option_t * option="");
50   void Print() ;
51   void SetDispersionCutOff(Float_t Dcut) {fCutOnDispersion = Dcut ; }    
52   
53   
54 private:
55   
56   AliPHOSEmcRecPoint  * fEmcRecPoint ;
57   AliPHOSPpsdRecPoint * fPpsdLow ;
58   AliPHOSPpsdRecPoint * fPpsdUp ;
59   
60   Float_t fCutOnDispersion ;   
61   
62 public:
63
64   ClassDef(AliPHOSTrackSegment,1)  // description , version 1
65
66 };
67
68 #endif // AliPHOSSUBTRACK_H