]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALTracker.h
Revert unwanted changes concerning PID in HLT
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALTracker.h
index 95f05829f2964143f55f4bd2419ca034c8c35911..87934cb4c4a3763ef147af1244eaf0d9e58c6982 100644 (file)
@@ -27,7 +27,7 @@
 class TList;
 class TTree;
 class TObjArray;
-class AliESD;
+class AliESDEvent;
 class AliESDCaloCluster;
 class AliEMCALTrack;
 class AliEMCALRecPoint;
@@ -44,12 +44,13 @@ public:
        virtual ~AliEMCALTracker() {Clear();}
        
        virtual void        Clear(Option_t *option="ALL");
-       virtual Int_t       Clusters2Tracks(AliESD*) {return -1;}
+       virtual Int_t       Clusters2Tracks(AliESDEvent*) {return -1;}
+               void        InitParameters();
        virtual Int_t       LoadClusters(TTree*);
-               Int_t       LoadClusters(AliESD* esd);
-               Int_t       LoadTracks(AliESD* esd);
-       virtual Int_t       PropagateBack(AliESD* esd);
-       virtual Int_t       RefitInward(AliESD*) {return -1;}
+               Int_t       LoadClusters(AliESDEvent* esd);
+               Int_t       LoadTracks(AliESDEvent* esd);
+       virtual Int_t       PropagateBack(AliESDEvent* esd);
+       virtual Int_t       RefitInward(AliESDEvent*) {return -1;}
        virtual void        UnloadClusters();
        virtual AliCluster* GetCluster(Int_t) const {return NULL;};
        TTree*              SearchTrueMatches();
@@ -61,6 +62,8 @@ public:
        void                SetCutZ(Double_t value) {fCutZ=value;}
        void                SetGeometry(AliEMCALGeometry *geom) {fGeom=geom;}
        void                SetMaxDistance(Double_t value) {fMaxDist=value;}
+       void                SetCutNITS(Double_t value) {fCutNITS=value;}
+       void                SetCutNTPC(Double_t value) {fCutNTPC=value;}
        void                SetNumberOfSteps(Int_t n) {fNPropSteps=n;if(!n)SetTrackCorrectionMode("NONE");}
        void                SetTrackCorrectionMode(Option_t *option);
        
@@ -75,12 +78,12 @@ public:
                AliEMCALMatchCluster(Int_t ID, AliESDCaloCluster *caloCluster);
                virtual ~AliEMCALMatchCluster() { }
                //----------------------------------------------------------------------------
-               Int_t&     Index() {return fIndex;}
-               Int_t&     Label() {return fLabel;}
-               Double_t&  X() {return fX;}
-               Double_t&  Y() {return fY;}
-               Double_t&  Z() {return fZ;}
-               Double_t   Phi() {return TMath::ATan2(fY, fX);}
+               Int_t     Index() const {return fIndex;}
+               Int_t     Label() const {return fLabel;}
+               Double_t  X() const {return fX;}
+               Double_t  Y() const {return fY;} 
+               Double_t  Z() const {return fZ;}
+               Double_t   Phi() const {return TMath::ATan2(fY, fX);}
        private:
                Int_t     fIndex;  // index of cluster in its native container (ESD or TClonesArray)
                Int_t     fLabel;  // track label of assigned cluster
@@ -98,10 +101,10 @@ public:
                //----------------------------------------------------------------------------
                Bool_t&   CanBeSaved() {return fCanBeSaved;}
                Int_t     Compare(const TObject *obj) const;
-               Double_t  GetDistance() {return fDistance;}
-               Double_t  GetPt() {return fPt;}
-               Int_t     GetIndexC() {return fIndexC;}
-               Int_t     GetIndexT() {return fIndexT;}
+               Double_t  GetDistance() const {return fDistance;}
+               Double_t  GetPt() const {return fPt;}
+               Int_t     GetIndexC() const {return fIndexC;}
+               Int_t     GetIndexT() const {return fIndexT;}
                Bool_t    IsSortable() const {return kTRUE;}
                void      SetIndexC(Int_t icl) {fIndexC=icl;}
                void      SetIndexT(Int_t itr) {fIndexT=itr;}
@@ -141,7 +144,9 @@ private:
        Double_t    fCutAlphaMax;     // cut on difference between track 'alpha' and phi
        Double_t    fCutAngle;        // cut on angle between track projection and cluster
        Double_t    fMaxDist;         // maximum allowed total distance between track proj an cluster
-       
+       Double_t fCutNITS;         // mimimum number of track hits in the ITS
+       Double_t fCutNTPC;         // mimimum number of track hits in the TPC
+
        Double_t    fRho;             // energy correction: density
        Double_t    fX0;              // energy correction: radiation length
 
@@ -151,7 +156,7 @@ private:
        
        AliEMCALGeometry *fGeom;      //! EMCAL geometry
        
-       ClassDef(AliEMCALTracker, 1)  // EMCAL "tracker"
+       ClassDef(AliEMCALTracker, 3)  // EMCAL "tracker"
 };
 
 #endif