Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-08-06 09:24:19

0001 #ifndef HERWIG_RPV_HELPER_H
0002 #define HERWIG_RPV_HELPER_H
0003 
0004 namespace Herwig {
0005 
0006 namespace RPV_helper {
0007 
0008   unsigned int neutralinoIndex(long id) {
0009     if(id> 1000000) {
0010       return id<1000025 ? id-1000022 : (id-1000005)/10;
0011     }
0012     else if(abs(id)<=16) {
0013       return (abs(id)-4)/2;
0014     }
0015     else {
0016       return id-13;
0017     }
0018   }
0019   
0020   unsigned int charginoIndex(long id) {
0021     return abs(id)>1000000 ? (abs(id)-1000024)/13 : (abs(id)-7)/2;
0022   }
0023 
0024 }
0025 
0026 }
0027 
0028 #endif