Changeset cb80e6f in git for external/fastjet/plugins/SISCone/geom_2d.h
- Timestamp:
- Mar 25, 2021, 9:55:59 AM (4 years ago)
- Branches:
- master
- Children:
- 13331dc
- Parents:
- 5eda6767
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/fastjet/plugins/SISCone/geom_2d.h
r5eda6767 rcb80e6f 22 22 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA // 23 23 // // 24 // $Revision:: 268$//25 // $Date:: 20 09-03-12 21:24:16 +0100 (Thu, 12 Mar 2009) $//24 // $Revision:: 422 $// 25 // $Date:: 2020-04-22 11:51:09 +0200 (Wed, 22 Apr 2020) $// 26 26 /////////////////////////////////////////////////////////////////////////////// 27 27 … … 153 153 /// return the cell index corrsponding to an eta value 154 154 inline unsigned int get_eta_cell(double eta){ 155 return (unsigned int) (1 << ((int) (32*((eta-eta_min)/(eta_max-eta_min)))));155 return (unsigned int) (1u << ((int) (32*((eta-eta_min)/(eta_max-eta_min))))); 156 156 } 157 157 158 158 /// return the cell index corrsponding to a phi value 159 159 inline unsigned int get_phi_cell(double phi){ 160 return (unsigned int) (1 << ((int) (32*phi/twopi+16)%32));160 return (unsigned int) (1u << ((int) (32*phi/twopi+16)%32)); 161 161 } 162 162 };
Note:
See TracChangeset
for help on using the changeset viewer.