]> git.uio.no Git - u/mrichter/AliRoot.git/commit
From A.Agocs: Fixed integer overflow in mu calculation. The multiplication nB*orbits...
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 23 Jul 2012 12:49:42 +0000 (12:49 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 23 Jul 2012 12:49:42 +0000 (12:49 +0000)
commitfe406a0c214040ab7894efcdff8a942a14149744
tree98a16974fc077492f6847a85797705beabf0a23b
parenta46996535db507c95121aeb38653932a24515e75
From A.Agocs: Fixed integer overflow in mu calculation. The multiplication nB*orbits in AliTriggerRunScalers::CalculateMu was truncated to 32 bits because the result type of the multiplication is the widest of its operand, which is UInt_t of the orbits variable, a 32 bit unsigned integer.  I found that this is not always enough to contain the result of the multiplication. Run 146805 from period LHC11a overflows the multiplication: nB = 47
orbits = 275952095
nb*orbits = 12969748465 = 3 * 2^32 + 84846577
STEER/STEER/AliTriggerRunScalers.cxx