explict casting needed because of a picky compiler
This commit is contained in:
@ -754,8 +754,8 @@ Bool_t PRunAsymmetryRRF::SubtractEstimatedBkg()
|
|||||||
beamPeriod = 0.0;
|
beamPeriod = 0.0;
|
||||||
|
|
||||||
// check if start and end are in proper order
|
// check if start and end are in proper order
|
||||||
UInt_t start[2] = {fRunInfo->GetBkgRange(0), fRunInfo->GetBkgRange(2)};
|
UInt_t start[2] = {(UInt_t)fRunInfo->GetBkgRange(0), (UInt_t)fRunInfo->GetBkgRange(2)};
|
||||||
UInt_t end[2] = {fRunInfo->GetBkgRange(1), fRunInfo->GetBkgRange(3)};
|
UInt_t end[2] = {(UInt_t)fRunInfo->GetBkgRange(1), (UInt_t)fRunInfo->GetBkgRange(3)};
|
||||||
for (UInt_t i=0; i<2; i++) {
|
for (UInt_t i=0; i<2; i++) {
|
||||||
if (end[i] < start[i]) {
|
if (end[i] < start[i]) {
|
||||||
cout << endl << "PRunAsymmetryRRF::SubtractEstimatedBkg(): end = " << end[i] << " > start = " << start[i] << "! Will swap them!";
|
cout << endl << "PRunAsymmetryRRF::SubtractEstimatedBkg(): end = " << end[i] << " > start = " << start[i] << "! Will swap them!";
|
||||||
|
Reference in New Issue
Block a user