kinematic_variable Namespace Reference

Functions

const char * as_string (kinematic_variable_t kid)
kinematic_variable_t get_kin_var_id_from_code (int code)

Function Documentation

const char* kinematic_variable::as_string ( kinematic_variable_t  kid  )  [inline]

Definition at line 36 of file kinematic_variable.h.

References e_qqs, e_undefined_kinematic_variable, e_w, e_x, and e_y.

00037      {
00038        switch(kid) {
00039          case e_qqs:  return "qqs";  break;
00040          case e_w:    return "W";    break;
00041          case e_x:    return "x";    break;
00042          case e_y:    return "y";    break;
00043 
00044          case e_undefined_kinematic_variable:
00045          default:            
00046                       return "unknown kinematic variable"; break;
00047        }
00048        return "bad kinematic variable";
00049      }

kinematic_variable_t kinematic_variable::get_kin_var_id_from_code ( int  code  )  [inline]

Definition at line 51 of file kinematic_variable.h.

References e_logqqs, e_nokv, e_qqs, e_undefined_kinematic_variable, e_w, e_x, and e_y.

Referenced by neugen_inputs::get_cuts().

00052      {
00053         if      (code == 0) return e_nokv;
00054         else if (code == 1) return e_qqs;
00055         else if (code == 2) return e_w;
00056         else if (code == 3) return e_x;
00057         else if (code == 4) return e_y;
00058         else if (code == 5) return e_logqqs;
00059         else                return e_undefined_kinematic_variable;
00060      }


Generated on 15 Jul 2018 for loon by  doxygen 1.6.1