From 7329b31e3756283fa1600e05bba6d99a74c64181 Mon Sep 17 00:00:00 2001
From: Axel Naumann <Axel.Naumann@cern.ch>
Date: Tue, 4 Dec 2012 10:08:45 +0000
Subject: [PATCH] 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
---
 test/stressSpectrum.cxx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/stressSpectrum.cxx b/test/stressSpectrum.cxx
index de39284bf41..f6921fcf994 100644
--- a/test/stressSpectrum.cxx
+++ b/test/stressSpectrum.cxx
@@ -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");
    //Search found peaks
    ngood = 0;
-   Float_t *xpeaks = s->GetPositionX();
+   Double_t *xpeaks = s->GetPositionX();
    for (p=0;p<npeaks;p++) {
       for (Int_t pf=0;pf<nfound;pf++) {
          Double_t dx = TMath::Abs(xpeaks[pf] - par[3*p+3]);
@@ -208,8 +208,8 @@ void stress2(Int_t np2) {
    
    //searching good and ghost peaks (approximation)
    Int_t pf,ngood = 0;
-   Float_t *xpeaks = s->GetPositionX();
-   Float_t *ypeaks = s->GetPositionY();
+   Double_t *xpeaks = s->GetPositionX();
+   Double_t *ypeaks = s->GetPositionY();
    for (p=0;p<npeaks;p++) {
       for (Int_t pf=0;pf<nfound;pf++) {
          Double_t diffx = TMath::Abs(xpeaks[pf] - par[5*p+1]);
-- 
GitLab