From b161da28a91d098abba863107545ca0dd59f4477 Mon Sep 17 00:00:00 2001 From: ivana Date: Fri, 30 Nov 2007 17:25:42 +0000 Subject: [PATCH] Added one parameter to function Fit, to avoid searching objects via gROOT by their name (Sasha) --- MUON/AliMUONClusterSplitterMLEM.cxx | 6 ++---- MUON/AliMUONClusterSplitterMLEM.h | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/MUON/AliMUONClusterSplitterMLEM.cxx b/MUON/AliMUONClusterSplitterMLEM.cxx index 1feee93abd0..544907729a2 100644 --- a/MUON/AliMUONClusterSplitterMLEM.cxx +++ b/MUON/AliMUONClusterSplitterMLEM.cxx @@ -44,7 +44,6 @@ #include #include #include -#include #include #include @@ -248,13 +247,12 @@ AliMUONClusterSplitterMLEM::Fit(const AliMUONCluster& cluster, Int_t iSimple, Int_t nfit, Int_t *clustFit, TObjArray **clusters, Double_t *parOk, - TObjArray& clusterList) + TObjArray& clusterList, TH2 *mlem) { /// Steering function and fitting procedure for the fit of pad charge distribution // AliDebug(2,Form("iSimple=%d nfit=%d",iSimple,nfit)); - TH2D *mlem = (TH2D*) gROOT->FindObject("mlem"); Double_t xmin = mlem->GetXaxis()->GetXmin() - mlem->GetXaxis()->GetBinWidth(1); Double_t xmax = mlem->GetXaxis()->GetXmax() + mlem->GetXaxis()->GetBinWidth(1); Double_t ymin = mlem->GetYaxis()->GetXmin() - mlem->GetYaxis()->GetBinWidth(1); @@ -956,7 +954,7 @@ AliMUONClusterSplitterMLEM::Split(const AliMUONCluster& cluster, else { // Do the fit - nfit = Fit(cluster,0, nForFit, clustFit, clusters, parOk, clusterList); + nfit = Fit(cluster,0, nForFit, clustFit, clusters, parOk, clusterList, mlem); if (nfit == 0) { //cout << " (nfit == 0) " << fNpar << " " << cluster.Multiplicity() << endl; fNpar = 0; // should be 0 by itself but just in case ... diff --git a/MUON/AliMUONClusterSplitterMLEM.h b/MUON/AliMUONClusterSplitterMLEM.h index 3a57635fa48..db06bc25efb 100644 --- a/MUON/AliMUONClusterSplitterMLEM.h +++ b/MUON/AliMUONClusterSplitterMLEM.h @@ -51,7 +51,7 @@ public: Int_t Fit(const AliMUONCluster& cluster, Int_t iSimple, Int_t nfit, Int_t *clustFit, TObjArray **clusters, - Double_t *parOk, TObjArray& clusterList); + Double_t *parOk, TObjArray& clusterList, TH2 *mlem); void Merge(const AliMUONCluster& cluster, Int_t nForFit, Int_t nCoupled, -- 2.43.0