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