- void FindMatches(AliVEvent *event, TObjArray * clusterArr=0x0, AliEMCALGeometry *geom=0x0);
- Int_t FindMatchedCluster(AliESDtrack *track, AliVEvent *event, AliEMCALGeometry *geom);
- Bool_t ExtrapolateTrackToCluster(AliExternalTrackParam *trkParam, AliVCluster *cluster, Float_t &tmpEta, Float_t &tmpPhi);
- void GetMatchedResiduals(Int_t clsIndex, Float_t &dEta, Float_t &dPhi);
- void GetMatchedClusterResiduals(Int_t trkIndex, Float_t &dEta, Float_t &dPhi);
- Int_t GetMatchedTrackIndex(Int_t clsIndex);
- Int_t GetMatchedClusterIndex(Int_t trkIndex);
- Bool_t IsClusterMatched(Int_t clsIndex);
- Bool_t IsTrackMatched(Int_t trkIndex);
- UInt_t FindMatchedPosForCluster(Int_t clsIndex) const;
- UInt_t FindMatchedPosForTrack(Int_t trkIndex) const;
-
- void SwitchOnCutEtaPhiSum() {fCutEtaPhiSum=kTRUE;fCutEtaPhiSeparate=kFALSE;}
- void SwitchOnCutEtaPhiSeparate() {fCutEtaPhiSeparate=kTRUE;fCutEtaPhiSum=kFALSE;}
-
- Float_t GetCutR() const { return fCutR ;}
- Float_t GetCutEta() const { return fCutEta ;}
- Float_t GetCutPhi() const { return fCutPhi ;}
- void SetCutR(Float_t cutR) { fCutR=cutR ;}
- void SetCutEta(Float_t cutEta) { fCutEta=cutEta ;}
- void SetCutPhi(Float_t cutPhi) { fCutPhi=cutPhi ;}
- void SetCutZ(Float_t cutZ) {printf("Obsolete fucntion of cutZ=%1.1f\n",cutZ);} //Obsolete
-
- Double_t GetMass() const { return fMass ;}
- Double_t GetStep() const { return fStep ;}
- void SetMass(Double_t mass){ fMass=mass ;}
- void SetStep(Double_t step){ fStep=step ;}
+ void FindMatches(AliVEvent *event, TObjArray * clusterArr=0x0, const AliEMCALGeometry *geom=0x0);
+ Int_t FindMatchedClusterInEvent(const AliESDtrack *track, const AliVEvent *event,
+ const AliEMCALGeometry *geom, Float_t &dEta, Float_t &dPhi);
+ Int_t FindMatchedClusterInClusterArr(const AliExternalTrackParam *emcalParam,
+ AliExternalTrackParam *trkParam,
+ const TObjArray * clusterArr,
+ Float_t &dEta, Float_t &dPhi);
+
+ static Bool_t ExtrapolateTrackToEMCalSurface(AliExternalTrackParam *trkParam,
+ const Double_t emcalR, const Double_t mass, const Double_t step,
+ Float_t &eta, Float_t &phi);
+ static Bool_t ExtrapolateTrackToPosition(AliExternalTrackParam *trkParam, const Float_t *clsPos,
+ const Double_t mass, const Double_t step,
+ Float_t &tmpEta, Float_t &tmpPhi);
+ static Bool_t ExtrapolateTrackToCluster (AliExternalTrackParam *trkParam, const AliVCluster *cluster,
+ const Double_t mass, const Double_t step,
+ Float_t &tmpEta, Float_t &tmpPhi);
+ Bool_t ExtrapolateTrackToCluster (AliExternalTrackParam *trkParam, const AliVCluster *cluster,
+ Float_t &tmpEta, Float_t &tmpPhi);
+
+ UInt_t FindMatchedPosForCluster(const Int_t clsIndex) const;
+ UInt_t FindMatchedPosForTrack (const Int_t trkIndex) const;
+
+ void GetMatchedResiduals (const Int_t clsIndex, Float_t &dEta, Float_t &dPhi);
+ void GetMatchedClusterResiduals(const Int_t trkIndex, Float_t &dEta, Float_t &dPhi);
+ Int_t GetMatchedTrackIndex(Int_t clsIndex);
+ Int_t GetMatchedClusterIndex(Int_t trkIndex);
+
+ Bool_t IsClusterMatched(const Int_t clsIndex) const;
+ Bool_t IsTrackMatched (const Int_t trkIndex) const;
+
+ void SetClusterMatchedToTrack (const AliESDEvent *event);
+
+ void SetTracksMatchedToCluster(const AliESDEvent *event);
+
+ void SwitchOnCutEtaPhiSum() { fCutEtaPhiSum = kTRUE ;
+ fCutEtaPhiSeparate = kFALSE ; }
+ void SwitchOnCutEtaPhiSeparate() { fCutEtaPhiSeparate = kTRUE ;
+ fCutEtaPhiSum = kFALSE ; }
+
+ Float_t GetCutR() const { return fCutR ; }
+ Float_t GetCutEta() const { return fCutEta ; }
+ Float_t GetCutPhi() const { return fCutPhi ; }
+ Double_t GetClusterWindow() const { return fClusterWindow ; }
+ void SetCutR(Float_t cutR) { fCutR = cutR ; }
+ void SetCutEta(Float_t cutEta) { fCutEta = cutEta ; }
+ void SetCutPhi(Float_t cutPhi) { fCutPhi = cutPhi ; }
+ void SetClusterWindow(Double_t window) { fClusterWindow = window ; }
+ void SetCutZ(Float_t cutZ) { printf("Obsolete fucntion of cutZ=%1.1f\n",cutZ) ; } //Obsolete
+
+ Double_t GetMass() const { return fMass ; }
+ Double_t GetStep() const { return fStepCluster ; }
+ Double_t GetStepSurface() const { return fStepSurface ; }
+ void SetMass(Double_t mass) { fMass = mass ; }
+ void SetStep(Double_t step) { fStepSurface = step ; }
+ void SetStepCluster(Double_t step) { fStepCluster = step ; }