fix of wrong 'fixed background feeding'. Removed signed/unsigned warning by proper casting

This commit is contained in:
nemu 2010-03-08 07:41:15 +00:00
parent a63319fc70
commit 643dd1fa9d

View File

@ -1271,7 +1271,7 @@ void PMsrHandler::SetMsrAddT0Entry(UInt_t runNo, UInt_t addRunIdx, UInt_t histoI
cerr << endl; cerr << endl;
} }
if (histoIdx > fRuns[runNo].GetAddT0Size(addRunIdx)) { // error if (static_cast<Int_t>(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 << ">> PMsrHandler::SetMsrAddT0Entry: **WARNING** histoIdx = " << histoIdx << ", is out of valid range 0.." << fRuns[runNo].GetAddT0Size(addRunIdx);
cerr << endl << ">> Will add it anyway."; cerr << endl << ">> Will add it anyway.";
cerr << endl; cerr << endl;
@ -2009,7 +2009,7 @@ Bool_t PMsrHandler::HandleRunEntry(PMsrLines &lines)
ostr = dynamic_cast<TObjString*>(tokens->At(i)); ostr = dynamic_cast<TObjString*>(tokens->At(i));
str = ostr->GetString(); str = ostr->GetString();
if (str.IsFloat()) if (str.IsFloat())
param.SetBkgFix(str.Atof()); param.SetBkgFix(str.Atof(), i-1);
else else
error = true; error = true;
} }