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 */
8 //_________________________________________________________________________
9 // Track segment in PHOS
10 // Can be : 1 EmcRecPoint
11 // 1 EmcRecPoint + 1 PPSD
12 // 1 EmcRecPoint + 1 PPSD + 1 PPSD
14 //*-- Author: Dmitri Peressounko (RRC KI & SUBATECH)
16 // --- ROOT system ---
21 // --- Standard library ---
23 // --- AliRoot header files ---
25 #include "AliPHOSEmcRecPoint.h"
26 #include "AliPHOSPpsdRecPoint.h"
28 class AliPHOSTrackSegment : public TObject {
32 AliPHOSTrackSegment() {} // ctor
33 AliPHOSTrackSegment(AliPHOSEmcRecPoint * EmcRecPoint , AliPHOSPpsdRecPoint * PpsdUp,
34 AliPHOSPpsdRecPoint * PpsdLow ) ; // ctor
35 AliPHOSTrackSegment(const AliPHOSTrackSegment & ts) ; // ctor
36 virtual ~AliPHOSTrackSegment() {} // dtor
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
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="");
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
67 ClassDef(AliPHOSTrackSegment,1) // Track segment in PHOS
71 #endif // AliPHOSSUBTRACK_H