1 #ifndef ALIPHOSTRACKSEGMENT_H
2 #define ALIPHOSTRACKSEGMENT_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 CPV
13 //*-- Author: Dmitri Peressounko (RRC KI & SUBATECH)
15 // --- ROOT system ---
20 // --- Standard library ---
22 // --- AliRoot header files ---
23 class AliPHOSRecPoint ;
24 class AliPHOSEmcRecPoint ;
25 class AliPHOSCpvRecPoint ;
28 class AliPHOSTrackSegment : public TObject {
32 AliPHOSTrackSegment() {}
33 AliPHOSTrackSegment(AliPHOSEmcRecPoint * EmcRecPoint ,
34 AliPHOSRecPoint * Cpv) ;
35 AliPHOSTrackSegment(AliPHOSEmcRecPoint * EmcRecPoint ,
36 AliPHOSRecPoint * Cpv, Int_t track) ;
37 AliPHOSTrackSegment(const AliPHOSTrackSegment & ts) ; // ctor
38 virtual ~AliPHOSTrackSegment() { }
40 void Copy(TObject & obj) ;
42 Int_t GetIndexInList() const { return fIndexInList ; }
43 Int_t GetEmcIndex() const { return fEmcRecPoint ; }
44 Int_t GetCpvIndex() const { return fCpvRecPoint; }
45 Int_t GetTrackIndex() const { return fTrack; }
47 virtual void Print() const;
48 void SetIndexInList(Int_t val){ fIndexInList = val ; }
49 void SetCpvRecPoint(AliPHOSRecPoint * CpvRecPoint ); //sets CPV Rec Point
51 typedef TClonesArray TrackSegmentsList ;
55 Int_t fEmcRecPoint ; // The EMC reconstructed point index in array stored in TreeR/PHOSEmcRP
56 Int_t fIndexInList ; // the index of this TrackSegment in the list stored in TreeR (to be set by analysis)
57 Int_t fCpvRecPoint ; // The CPV reconstructed point in array stored in TreeR/PHOSCpvRP
58 Int_t fTrack ; // The charged track index (from global tracking) in ESD file
60 ClassDef(AliPHOSTrackSegment,1) // Track segment in PHOS
64 #endif // ALIPHOSTRACKSEGMENT_H