21 #ifndef _INTERACTION_TYPE_H_
22 #define _INTERACTION_TYPE_H_
58 case(
kIntEM) :
return "EM";
break;
61 case(
kIntWeakMix) :
return "Weak[CC+NC+interference]";
break;
63 case(
kIntNDecay) :
return "NucleonDecay";
break;
64 case(
kIntNOsc) :
return "NeutronOsc";
break;
66 case(
kIntHNL) :
return "HNLDecay";
break;
67 default :
return "Unknown";
break;
76 for(
unsigned int i=0; i<type.size(); i++) type[i] = toupper(type[i]);
80 const char * t = type.c_str();
82 if ( strcmp(t,
"EM") == 0 ||
83 strcmp(t,
"E-M") == 0 ||
84 strcmp(t,
"E/M") == 0 ||
85 strcmp(t,
"ELECTROMAGNETIC") == 0 ||
86 strcmp(t,
"ELECTRO-MAGNETIC") == 0 )
return kIntEM;
88 else if ( strcmp(t,
"WEAK-CC") == 0 ||
89 strcmp(t,
"CHARGED-CURRENT") == 0 ||
90 strcmp(t,
"CHARGED CURRENT") == 0 ||
91 strcmp(t,
"WEAK-CHARGED-CURRENT") == 0 ||
92 strcmp(t,
"WEAK CHARGED CURRENT") == 0 ||
95 else if ( strcmp(t,
"WEAK-NC") == 0 ||
96 strcmp(t,
"NEUTRAL-CURRENT") == 0 ||
97 strcmp(t,
"NEUTRAL CURRENT") == 0 ||
98 strcmp(t,
"WEAK-NEUTRAL-CURRENT") == 0 ||
99 strcmp(t,
"WEAK NEUTRAL CURRENT") == 0 ||
102 else if ( strcmp(t,
"NDECAY") == 0 )
return kIntNDecay;
104 else if ( strcmp(t,
"NOSC") == 0 )
return kIntNOsc;
106 else if ( strcmp(t,
"DARK-NC") == 0 )
return kIntDarkNC;
108 else if ( strcmp(t,
"HNL") == 0 )
return kIntHNL;
117 #endif // _INTERACTION_TYPE_H_
static InteractionType_t FromString(string type)
static string AsString(InteractionType_t type)
Enumeration of interaction types: e/m, weak cc, weak nc.
enum genie::EInteractionType InteractionType_t