]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliEMCALTrackSegment.h
Added new plots
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALTrackSegment.h
1 #ifndef ALIEMCALTRACKSEGMENT_H
2 #define ALIEMCALTRACKSEGMENT_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 EMCAL
10 //  Can be any combination of : 1 PRERecPoint, ECRecPoint and HCRecPoint     
11 //                  
12 //*-- Author:  Dmitri Peressounko (RRC KI & SUBATECH)
13 //             Adapted from PHOS by Y. Schutz (SUBATECH)
14 // --- ROOT system ---
15
16 #include "TObject.h"
17
18 // --- Standard library ---
19
20 // --- AliRoot header files ---
21
22 #include "AliEMCALTowerRecPoint.h"
23
24 class AliEMCALTrackSegment : public TObject  {
25
26 public:
27
28   AliEMCALTrackSegment() {} 
29   AliEMCALTrackSegment(AliEMCALTowerRecPoint * ec, AliEMCALTowerRecPoint * pre, AliEMCALTowerRecPoint * hc) ; 
30   AliEMCALTrackSegment(const AliEMCALTrackSegment & ts) ;  // ctor                   
31   virtual ~AliEMCALTrackSegment() {  } 
32
33   void Copy(TObject & obj) ;  
34
35   Int_t   GetIndexInList() const {  return fIndexInList ; } 
36   Int_t   GetPREIndex()    const {  return fPRERecPoint ; }
37   Int_t   GetECAIndex()    const {  return fECARecPoint; }
38   Int_t   GetHCAIndex()    const {  return fHCARecPoint; }
39
40   virtual void  Print(Option_t * option) const;
41   void SetIndexInList(Int_t val){ fIndexInList = val ;     } 
42   void SetPRERecPoint(AliEMCALRecPoint * pre ) ; 
43   void SetHCARecPoint(AliEMCALRecPoint * hc ) ; 
44
45   typedef TClonesArray TrackSegmentsList ; 
46  
47  private:
48   
49   Int_t fPRERecPoint ; // The PRE reconstructed point index in array stored in TreeR/EMCALPRERP
50   Int_t fECARecPoint ; // The EC reconstructed point index in array stored in TreeR/EMCALECRP
51   Int_t fHCARecPoint ; // The HC reconstructed point index in array stored in TreeR/EMCALHCRP
52   Int_t fIndexInList ; // The index of this TrackSegment in the list stored in TreeR (to be set by analysis)
53   
54   ClassDef(AliEMCALTrackSegment,1)  // Track segment in EMCAL
55
56 };
57
58 #endif // ALIEMCALTRACKSEGMENT_H