]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALTrack.h
Renaming linkdef files for consistency
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALTrack.h
index beffc24f66c9da9a19e1096367bde753029889c4..947339f797a4d5eeb3f4b7c6c2c66419f1bcaef0 100755 (executable)
@@ -26,8 +26,8 @@ class AliEMCALTrack : public AliExternalTrackParam
 public:
 
        AliEMCALTrack();
-       AliEMCALTrack(const AliEMCALTrack& t);
        AliEMCALTrack(const AliESDtrack& t);
+       AliEMCALTrack(const AliEMCALTrack& t);
        AliEMCALTrack& operator=(const AliEMCALTrack &t);
        
        Int_t    Compare(const TObject *o) const;
@@ -38,30 +38,39 @@ public:
        Double_t GetMass() const {return fMass;}
        Int_t    GetSeedIndex() const {return fSeedIndex;}
        Int_t    GetSeedLabel() const {return fSeedLabel;}
-               
+       
        Bool_t   IsSortable() const {return kTRUE;}
-       Bool_t   PropagateTo(Double_t xr, Double_t d, Double_t x0=21.82);
+       Bool_t   PropagateTo(Double_t xr, Double_t d = 0.0, Double_t x0 = 21.82);
+       Double_t StraightPropagateTo(Double_t xk, Double_t &x, Double_t &y, Double_t &z);
+       Bool_t   PropagateToGlobal(Double_t x, Double_t y, Double_t z, Double_t d = 0.0, Double_t x0 = 21.82);
                        
-       void     SetClusterIndex(Int_t idx) {fClusterIndex=idx;}
-       void     SetClusterDist(Double_t dist) {fClusterDist=dist;}
-       void     SetMass(Double_t mass) {fMass=mass;}
-       void     SetSeedIndex(Int_t index) {fSeedIndex=index;}
-       void     SetSeedLabel(Int_t label) {fSeedLabel=label;}
+       void     SetClusterIndex(Int_t idx) {fClusterIndex = idx;}
+       void     SetClusterDist(Double_t dist) {fClusterDist = dist;}
+       void     SetMass(Double_t mass) {fMass = mass;}
+       void     SetSeedIndex(Int_t index) {fSeedIndex = index;}
+       void     SetSeedLabel(Int_t label) {fSeedLabel = label;}
                
-       static void SetUseOuterParams(Bool_t doit=kTRUE) {fgUseOuterParams=doit;}
+       static void SetUseOuterParams(Bool_t doit = kTRUE) {fgUseOuterParams = doit;}
+       static void SetCorrectForEL(Bool_t doit = kTRUE) {fgCorrectForEL = doit;}
+       static void SetSortByPt(Bool_t doit = kTRUE) {fgSortByPt = doit;}
 
 protected:
        
+       Bool_t  SimplePropagation(Double_t xk, Double_t d = 0.0, Double_t x0 = 0.0);
+       
        static  Bool_t    fgUseOuterParams;    // use outer parameters from AliESDtrack?
+       static  Bool_t    fgCorrectForEL;      // apply corrections for energy loss?
+       static  Bool_t    fgSortByPt;          // true --> sort by pt, false --> sort by track-cluster distance
                Int_t     fClusterIndex;       // index of matched cluster (if any)
                Double_t  fClusterDist;        // distance between track propagation and matched cluster
-                       Double_t  fMass;               // mass hypothesis (in GeV/c2)
+               Double_t  fMass;               // mass hypothesis (in GeV/c2)
                Int_t     fSeedIndex;          // index of imported ESD track in its owner AliESD
-               Int_t     fSeedLabel;          // label of imported ESD track
+               Int_t     fSeedLabel;          // GEANT label of imported ESD track
+
 private:
        
        ClassDef(AliEMCALTrack, 0) // track implementation for EMCAL matching
 
-};                     
+};
 
 #endif