diff --git a/src/THcDriftChamber.cxx b/src/THcDriftChamber.cxx index 59312b75dd42c826c949ed2d2169f33224831529..f82632cdf091735a41182841ed19a8c03f2a90f7 100644 --- a/src/THcDriftChamber.cxx +++ b/src/THcDriftChamber.cxx @@ -882,7 +882,7 @@ void THcDriftChamber::LeftRight() cout << "THcDriftChamber::LeftRight: numhits-2 = 0" << endl; } Int_t nplaneshit = Count1Bits(bitpat); - Int_t nplusminus = pow(2,nhits-2); + Int_t nplusminus = 1<<(nhits-2); // Use bit value of integer word to set + or - // Loop over all combinations of left right.