Skip to content
Snippets Groups Projects
Commit 7329b31e authored by Axel Naumann's avatar Axel Naumann
Browse files

GetPositionX() returns Double_t*! (How did this work before?)

git-svn-id: http://root.cern.ch/svn/root/trunk@47811 27541ba8-7e3a-0410-8455-c3a389f83636
parent 5b34e57c
No related branches found
No related tags found
No related merge requests found
...@@ -103,7 +103,7 @@ void findPeaks(Int_t pmin, Int_t pmax, Int_t &nfound, Int_t &ngood, Int_t &nghos ...@@ -103,7 +103,7 @@ void findPeaks(Int_t pmin, Int_t pmax, Int_t &nfound, Int_t &ngood, Int_t &nghos
nfound = s->Search(h,2,"goff"); nfound = s->Search(h,2,"goff");
//Search found peaks //Search found peaks
ngood = 0; ngood = 0;
Float_t *xpeaks = s->GetPositionX(); Double_t *xpeaks = s->GetPositionX();
for (p=0;p<npeaks;p++) { for (p=0;p<npeaks;p++) {
for (Int_t pf=0;pf<nfound;pf++) { for (Int_t pf=0;pf<nfound;pf++) {
Double_t dx = TMath::Abs(xpeaks[pf] - par[3*p+3]); Double_t dx = TMath::Abs(xpeaks[pf] - par[3*p+3]);
...@@ -208,8 +208,8 @@ void stress2(Int_t np2) { ...@@ -208,8 +208,8 @@ void stress2(Int_t np2) {
//searching good and ghost peaks (approximation) //searching good and ghost peaks (approximation)
Int_t pf,ngood = 0; Int_t pf,ngood = 0;
Float_t *xpeaks = s->GetPositionX(); Double_t *xpeaks = s->GetPositionX();
Float_t *ypeaks = s->GetPositionY(); Double_t *ypeaks = s->GetPositionY();
for (p=0;p<npeaks;p++) { for (p=0;p<npeaks;p++) {
for (Int_t pf=0;pf<nfound;pf++) { for (Int_t pf=0;pf<nfound;pf++) {
Double_t diffx = TMath::Abs(xpeaks[pf] - par[5*p+1]); Double_t diffx = TMath::Abs(xpeaks[pf] - par[5*p+1]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment