fixed some double/int inconsistencies

This commit is contained in:
nemu
2012-03-22 14:23:43 +00:00
parent a1cce158f5
commit 3830229ac0
4 changed files with 28 additions and 28 deletions

View File

@ -1317,7 +1317,7 @@ Bool_t PRunDataHandler::ReadRootFile()
dataSet.SetHistoNo(i+1);
dataSet.SetTimeZeroBin(t0[i]);
dataSet.SetTimeZeroBinEstimated(histo->GetMaximumBin());
dataSet.SetFirstGoodBin(t0[i]);
dataSet.SetFirstGoodBin((Int_t)t0[i]);
dataSet.SetLastGoodBin(histo->GetNbinsX()-1);
dataSet.SetData(histoData);
runData.SetDataSet(dataSet);
@ -1352,7 +1352,7 @@ Bool_t PRunDataHandler::ReadRootFile()
dataSet.SetHistoNo(i+1+POST_PILEUP_HISTO_OFFSET);
dataSet.SetTimeZeroBin(t0[i]);
dataSet.SetTimeZeroBinEstimated(histo->GetMaximumBin());
dataSet.SetFirstGoodBin(t0[i]);
dataSet.SetFirstGoodBin((Int_t)t0[i]);
dataSet.SetLastGoodBin(histo->GetNbinsX()-1);
dataSet.SetData(histoData);
runData.SetDataSet(dataSet);
@ -5073,7 +5073,7 @@ Bool_t PRunDataHandler::WritePsiBinFile(TString fln)
length = dataSet->GetData()->size();
histos[i].resize(length);
for (UInt_t j=0; j<length; j++) {
histos[i][j] = dataSet->GetData()->at(j);
histos[i][j] = (Int_t)dataSet->GetData()->at(j);
}
}
} else { // rebin > 1