From 643dd1fa9db955459c36065f257eba04213e4fe5 Mon Sep 17 00:00:00 2001 From: nemu Date: Mon, 8 Mar 2010 07:41:15 +0000 Subject: [PATCH] fix of wrong 'fixed background feeding'. Removed signed/unsigned warning by proper casting --- src/classes/PMsrHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/classes/PMsrHandler.cpp b/src/classes/PMsrHandler.cpp index f804ebc8..ee5aa70c 100644 --- a/src/classes/PMsrHandler.cpp +++ b/src/classes/PMsrHandler.cpp @@ -1271,7 +1271,7 @@ void PMsrHandler::SetMsrAddT0Entry(UInt_t runNo, UInt_t addRunIdx, UInt_t histoI cerr << endl; } - if (histoIdx > fRuns[runNo].GetAddT0Size(addRunIdx)) { // error + if (static_cast(histoIdx) > fRuns[runNo].GetAddT0Size(addRunIdx)) { // error cerr << endl << ">> PMsrHandler::SetMsrAddT0Entry: **WARNING** histoIdx = " << histoIdx << ", is out of valid range 0.." << fRuns[runNo].GetAddT0Size(addRunIdx); cerr << endl << ">> Will add it anyway."; cerr << endl; @@ -2009,7 +2009,7 @@ Bool_t PMsrHandler::HandleRunEntry(PMsrLines &lines) ostr = dynamic_cast(tokens->At(i)); str = ostr->GetString(); if (str.IsFloat()) - param.SetBkgFix(str.Atof()); + param.SetBkgFix(str.Atof(), i-1); else error = true; }