X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=EMCAL%2FAliEMCALReconstructor.h;h=ab7320c324dd109d56b0da3ebfd7205b742ee77a;hb=01b4609893fba0ccc67b985a5f904f3ca35d1283;hp=e34902c2fc51c049bde07b08c98b8b0d7543cdfb;hpb=29c9d15fbac36000aa7ef9d9a5f385a5a1984fd0;p=u%2Fmrichter%2FAliRoot.git diff --git a/EMCAL/AliEMCALReconstructor.h b/EMCAL/AliEMCALReconstructor.h index e34902c2fc5..ab7320c324d 100644 --- a/EMCAL/AliEMCALReconstructor.h +++ b/EMCAL/AliEMCALReconstructor.h @@ -66,6 +66,33 @@ class AliEMCALReconstructor : public AliReconstructor { static TClonesArray* GetDigitsArr() {return fgDigitsArr;} void FillMisalMatrixes(AliESDEvent* esd)const ; + + //New class used to sort the matched tracks + class AliEMCALMatch : public TObject + { + public: + AliEMCALMatch(); + AliEMCALMatch(const AliEMCALMatch& copy); + AliEMCALMatch& operator = (const AliEMCALMatch& source) ; + virtual ~AliEMCALMatch() { } + //---------------------------------------------------------------------------- + Int_t Compare(const TObject *obj) const; + Bool_t IsSortable() const {return kTRUE;} + Double_t GetDistance() const {return fDistance;} + Double_t GetdEta() const {return fdEta;} + Double_t GetdPhi() const {return fdPhi;} + Int_t GetIndexT() const {return fIndexT;} + void SetIndexT(Int_t itr) {fIndexT=itr;} + void SetDistance(Double_t dist) {fDistance=dist;} + void SetdEta(Double_t dEta) {fdEta=dEta;} + void SetdPhi(Double_t dPhi) {fdPhi=dPhi;} + private: + Int_t fIndexT; // track index in 'fTracks' array + Double_t fDistance; // track - cluster distance + Double_t fdEta; // track - cluster residual in eta + Double_t fdPhi; // track - cluster residual in phi + }; + Bool_t CalculateResidual(AliESDtrack *track, AliESDCaloCluster *cluster, Float_t &dEta, Float_t &dPhi) const; private: @@ -89,10 +116,12 @@ class AliEMCALReconstructor : public AliReconstructor { //Trigger specific static AliEMCALTriggerElectronics* fgTriggerProcessor; // Trigger preprocessor AliEMCALTriggerData * fTriggerData; // Trigger parameters data container + + //Track matching + TList * fMatches; //! collection of matches between tracks and clusters - ClassDef(AliEMCALReconstructor,11) // Reconstruction algorithm class (Base Class) - - }; + ClassDef(AliEMCALReconstructor,12) // Reconstruction algorithm class (Base Class) +}; #endif // ALIEMCALRECONSTRUCTOR_H