]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSTrackSegment.h
Improve documentation
[u/mrichter/AliRoot.git] / PHOS / AliPHOSTrackSegment.h
CommitLineData
d15a28e7 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
6ad0bfa0 6/* $Id$ */
7
b2a60966 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)
d15a28e7 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
d15a28e7 28class AliPHOSTrackSegment : public TObject {
29
30public:
31
b2a60966 32 AliPHOSTrackSegment() {} // ctor
d15a28e7 33 AliPHOSTrackSegment(AliPHOSEmcRecPoint * EmcRecPoint , AliPHOSPpsdRecPoint * PpsdUp,
6ad0bfa0 34 AliPHOSPpsdRecPoint * PpsdLow ) ; // ctor
35 AliPHOSTrackSegment(const AliPHOSTrackSegment & ts) ; // ctor
b2a60966 36 virtual ~AliPHOSTrackSegment() {} // dtor
d15a28e7 37
6ad0bfa0 38 void Copy(TObject & obj) ;
9f616d61 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);
6ad0bfa0 42 Float_t GetEnergy(){ return fEmcRecPoint->GetTotalEnergy() ;} // Returns energy in EMC
9f616d61 43
6ad0bfa0 44 Float_t GetDistanceInPHOSPlane(void) ; // Computes in PHOS plane the relative position between EMC and PPSD clusters
9f616d61 45 virtual Int_t GetPHOSMod(void) {return fEmcRecPoint->GetPHOSMod(); }
6ad0bfa0 46 TVector3 GetMomentumDirection() ; // Returns the momentum direction
47 void GetPosition( TVector3 & pos ) ; // Returns positions of hit
b2a60966 48 Int_t * GetPrimariesEmc(Int_t & number) ;
49 Int_t * GetPrimariesPpsdLow(Int_t & number) ;
50 Int_t * GetPrimariesPpsdUp(Int_t & number) ;
09fc14a0 51 AliPHOSEmcRecPoint * GetEmcRecPoint() const { return fEmcRecPoint ; }
52 AliPHOSPpsdRecPoint * GetPpsdLow() const { return fPpsdLow ; }
53 AliPHOSPpsdRecPoint * GetPpsdUp() const { return fPpsdUp ; }
9f616d61 54 virtual void Paint(Option_t * option="");
d15a28e7 55 void Print() ;
d15a28e7 56
57
58private:
59
b2a60966 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
d15a28e7 66
b2a60966 67 ClassDef(AliPHOSTrackSegment,1) // Track segment in PHOS
d15a28e7 68
69};
70
71#endif // AliPHOSSUBTRACK_H