]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALTrack.h
reviewing typos, re-writting parts -- Cath
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALTrack.h
old mode 100755 (executable)
new mode 100644 (file)
index beffc24..efe666c
@@ -23,45 +23,53 @@ class AliESDtrack;
 
 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;
-       
-       Double_t GetBz() const;
-       Int_t    GetClusterIndex() const {return fClusterIndex;}
-       Double_t GetClusterDist() const {return fClusterDist;}
-       Double_t GetMass() const {return fMass;}
-       Int_t    GetSeedIndex() const {return fSeedIndex;}
-       Int_t    GetSeedLabel() const {return fSeedLabel;}
+  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);  
+  
+       Int_t       Compare(const TObject *o)        const ;
+       Int_t       GetClusterIndex()                const { return fClusterIndex     ; }
+       Double_t    GetClusterDist()                 const { return fClusterDist      ; }
+       Double_t    GetMass()                        const { return fMass             ; }
+       Int_t       GetSeedIndex()                   const { return fSeedIndex        ; }
+       Int_t       GetSeedLabel()                   const { return fSeedLabel        ; }
+       Bool_t      IsSortable()                     const { return kTRUE             ; }
+                       
+       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 ; }
                
-       Bool_t   IsSortable() const {return kTRUE;}
-       Bool_t   PropagateTo(Double_t xr, Double_t d, 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;}
-               
-       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