Changes in external/fastjet/plugins/SISCone/geom_2d.h [cb80e6f:35cdc46] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/fastjet/plugins/SISCone/geom_2d.h
rcb80e6f r35cdc46 22 22 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA // 23 23 // // 24 // $Revision:: 422$//25 // $Date:: 20 20-04-22 11:51:09 +0200 (Wed, 22 Apr 2020) $//24 // $Revision:: 268 $// 25 // $Date:: 2009-03-12 21:24:16 +0100 (Thu, 12 Mar 2009) $// 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 u<< ((int) (32*((eta-eta_min)/(eta_max-eta_min)))));155 return (unsigned int) (1 << ((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 u<< ((int) (32*phi/twopi+16)%32));160 return (unsigned int) (1 << ((int) (32*phi/twopi+16)%32)); 161 161 } 162 162 };
Note:
See TracChangeset
for help on using the changeset viewer.