richstu / nano2pico

Code to produce analysis ntuples (pico) from the CMS NanoAOD.
2 stars 4 forks source link

All comparisons with floats now use float literals (except 0) #41

Closed jdgrassi closed 7 months ago

jdgrassi commented 7 months ago

Searched through code for every instance of if comparison between nanoAOD single precision floats and literals (i.e. "0.2") and changed literals to be float literals ("0.2f"). This was inconsistently implemented before.

Exceptions: Comparisons with 0, and comparisons not involving an if statement. Should still be more consistent, more changes can be made in future if needed.