]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSTrackSegment.h
PHOS test suite including merging
[u/mrichter/AliRoot.git] / PHOS / AliPHOSTrackSegment.h
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                               */
5
6 /* $Id$ */
7
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)
15
16 // --- ROOT system ---
17
18 #include "TObject.h"
19 class TClonesArray ; 
20
21 // --- Standard library ---
22
23 // --- AliRoot header files ---
24 class AliPHOSRecPoint ; 
25 class AliPHOSEmcRecPoint ; 
26 class AliPHOSCpvRecPoint ; 
27
28 class AliPHOSTrackSegment : public TObject  {
29
30 public:
31
32   AliPHOSTrackSegment() {} 
33   AliPHOSTrackSegment(AliPHOSEmcRecPoint * EmcRecPoint , 
34                       AliPHOSRecPoint * PpsdUp) ;
35   AliPHOSTrackSegment(const AliPHOSTrackSegment & ts) ;  // ctor                   
36   virtual ~AliPHOSTrackSegment() {  } 
37
38   void Copy(TObject & obj) ;  
39
40   Int_t   GetIndexInList() const {  return fIndexInList ;   } 
41   Int_t   GetEmcIndex()    const {  return fEmcRecPoint ;   }
42   Int_t   GetCpvIndex()    const {  return fPpsdUpRecPoint; }
43
44   virtual void  Print() const;
45   void    SetIndexInList(Int_t val){ fIndexInList = val ;     } 
46   void    SetCpvRecPoint(AliPHOSRecPoint * PpsdUpRecPoint ); //sets PPSD up Rec Point
47
48   typedef TClonesArray TrackSegmentsList ; 
49  
50  private:
51   
52   Int_t fEmcRecPoint ;     // The EMC reconstructed point index in array stored in TreeR/PHOSEmcRP
53   Int_t fIndexInList ;     // the index of this TrackSegment in the list stored in TreeR (to be set by analysis)
54   Int_t fPpsdUpRecPoint ;  // The CPV reconstructed point from the upper layer index in array stored in TreeR/PHOSPpsdRP
55   
56   ClassDef(AliPHOSTrackSegment,1)  // Track segment in PHOS
57
58 };
59
60 #endif // ALIPHOSTRACKSEGMENT_H