Skip to content
Snippets Groups Projects
Commit 5d6c3a01 authored by Jamil's avatar Jamil
Browse files

Change nplusminus assignment

parent a1403e85
No related branches found
No related tags found
No related merge requests found
...@@ -882,7 +882,7 @@ void THcDriftChamber::LeftRight() ...@@ -882,7 +882,7 @@ void THcDriftChamber::LeftRight()
cout << "THcDriftChamber::LeftRight: numhits-2 = 0" << endl; cout << "THcDriftChamber::LeftRight: numhits-2 = 0" << endl;
} }
Int_t nplaneshit = Count1Bits(bitpat); 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 - // Use bit value of integer word to set + or -
// Loop over all combinations of left right. // Loop over all combinations of left right.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment