AliRoot Core  ee782a0 (ee782a0)
AliEMCALTrack.h
Go to the documentation of this file.
1 #ifndef AliEMCALTRACK_H
2 #define AliEMCALTRACK_H
3 
4 //========================================================================
5 // Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved.
6 // See cxx source for full Copyright notice
7 //========================================================================
25 //=========================================================================
26 
27 #include "AliExternalTrackParam.h"
28 
29 class AliESDtrack;
30 
32 {
33 
34 public:
35 
36  AliEMCALTrack();
37  AliEMCALTrack(const AliESDtrack& t);
38  AliEMCALTrack(const AliEMCALTrack& t);
40 
41  Bool_t PropagateTo(Double_t xr, Double_t d = 0.0, Double_t x0 = 21.82);
42  Double_t StraightPropagateTo(Double_t xk, Double_t &x, Double_t &y, Double_t &z);
43  Bool_t PropagateToGlobal(Double_t x, Double_t y, Double_t z, Double_t d = 0.0, Double_t x0 = 21.82);
44 
45  Int_t Compare(const TObject *o) const ;
46  Int_t GetClusterIndex() const { return fClusterIndex ; }
47  Double_t GetClusterDist() const { return fClusterDist ; }
48  Double_t GetMass() const { return fMass ; }
49  Int_t GetSeedIndex() const { return fSeedIndex ; }
50  Int_t GetSeedLabel() const { return fSeedLabel ; }
51  Bool_t IsSortable() const { return kTRUE ; }
52 
53  void SetClusterIndex(Int_t idx) { fClusterIndex = idx ; }
54  void SetClusterDist(Double_t dist) { fClusterDist = dist ; }
55  void SetMass(Double_t mass) { fMass = mass ; }
56  void SetSeedIndex(Int_t index) { fSeedIndex = index ; }
57  void SetSeedLabel(Int_t label) { fSeedLabel = label ; }
58 
59  static void SetUseOuterParams(Bool_t doit = kTRUE) { fgUseOuterParams = doit ; }
60  static void SetCorrectForEL (Bool_t doit = kTRUE) { fgCorrectForEL = doit ; }
61  static void SetSortByPt (Bool_t doit = kTRUE) { fgSortByPt = doit ; }
62 
63 protected:
64 
65  Bool_t SimplePropagation(Double_t xk, Double_t d = 0.0, Double_t x0 = 0.0);
66 
67  static Bool_t fgUseOuterParams;
68  static Bool_t fgCorrectForEL;
69  static Bool_t fgSortByPt;
70  Int_t fClusterIndex;
71  Double_t fClusterDist;
72  Double_t fMass;
73  Int_t fSeedIndex;
74  Int_t fSeedLabel;
75 
76 private:
77 
79  ClassDef(AliEMCALTrack, 0) ;
81 
82 };
83 
84 #endif //AliEMCALTRACK_H
Int_t Compare(const TObject *o) const
void SetClusterIndex(Int_t idx)
Definition: AliEMCALTrack.h:53
Bool_t IsSortable() const
Definition: AliEMCALTrack.h:51
Double_t fMass
Mass hypothesis (in GeV/c2)
Definition: AliEMCALTrack.h:72
Bool_t PropagateToGlobal(Double_t x, Double_t y, Double_t z, Double_t d=0.0, Double_t x0=21.82)
Int_t fSeedLabel
GEANT label of imported ESD track.
Definition: AliEMCALTrack.h:74
Bool_t PropagateTo(Double_t xr, Double_t d=0.0, Double_t x0=21.82)
Double_t fClusterDist
Distance between track propagation and matched cluster.
Definition: AliEMCALTrack.h:71
Int_t GetSeedLabel() const
Definition: AliEMCALTrack.h:50
Int_t fSeedIndex
Index of imported ESD track in its owner AliESD.
Definition: AliEMCALTrack.h:73
static void SetSortByPt(Bool_t doit=kTRUE)
Definition: AliEMCALTrack.h:61
static void SetCorrectForEL(Bool_t doit=kTRUE)
Definition: AliEMCALTrack.h:60
void SetMass(Double_t mass)
Definition: AliEMCALTrack.h:55
Double_t GetClusterDist() const
Definition: AliEMCALTrack.h:47
AliEMCALTrack & operator=(const AliEMCALTrack &t)
void SetSeedLabel(Int_t label)
Definition: AliEMCALTrack.h:57
Matched track to cluster handling.
Definition: AliEMCALTrack.h:31
void SetSeedIndex(Int_t index)
Definition: AliEMCALTrack.h:56
Int_t GetSeedIndex() const
Definition: AliEMCALTrack.h:49
Int_t GetClusterIndex() const
Definition: AliEMCALTrack.h:46
Int_t fClusterIndex
Index of matched cluster (if any)
Definition: AliEMCALTrack.h:70
void SetClusterDist(Double_t dist)
Definition: AliEMCALTrack.h:54
static Bool_t fgSortByPt
true –> sort by pt, false –> sort by track-cluster distance
Definition: AliEMCALTrack.h:69
static void SetUseOuterParams(Bool_t doit=kTRUE)
Definition: AliEMCALTrack.h:59
static Bool_t fgUseOuterParams
Use outer parameters from AliESDtrack?
Definition: AliEMCALTrack.h:67
Double_t StraightPropagateTo(Double_t xk, Double_t &x, Double_t &y, Double_t &z)
Double_t GetMass() const
Definition: AliEMCALTrack.h:48
static Bool_t fgCorrectForEL
Apply corrections for energy loss?
Definition: AliEMCALTrack.h:68
Bool_t SimplePropagation(Double_t xk, Double_t d=0.0, Double_t x0=0.0)