19 #ifndef _INTERACTION_TYPE_H_ 20 #define _INTERACTION_TYPE_H_ 53 case(
kIntEM) :
return "EM";
break;
56 case(
kIntWeakMix) :
return "Weak[CC+NC+interference]";
break;
57 case(
kIntNDecay) :
return "NucleonDecay";
break;
58 case(
kIntNOsc) :
return "NeutronOsc";
break;
59 default :
return "Unknown";
break;
68 for(
unsigned int i=0;
i<type.size();
i++) type[
i] = toupper(type[
i]);
72 const char *
t = type.c_str();
74 if ( strcmp(t,
"EM") == 0 ||
75 strcmp(t,
"E-M") == 0 ||
76 strcmp(t,
"E/M") == 0 ||
77 strcmp(t,
"ELECTROMAGNETIC") == 0 ||
78 strcmp(t,
"ELECTRO-MAGNETIC") == 0 )
return kIntEM;
80 else if ( strcmp(t,
"WEAK-CC") == 0 ||
81 strcmp(t,
"CHARGED-CURRENT") == 0 ||
82 strcmp(t,
"CHARGED CURRENT") == 0 ||
83 strcmp(t,
"WEAK-CHARGED-CURRENT") == 0 ||
84 strcmp(t,
"WEAK CHARGED CURRENT") == 0 ||
87 else if ( strcmp(t,
"WEAK-NC") == 0 ||
88 strcmp(t,
"NEUTRAL-CURRENT") == 0 ||
89 strcmp(t,
"NEUTRAL CURRENT") == 0 ||
90 strcmp(t,
"WEAK-NEUTRAL-CURRENT") == 0 ||
91 strcmp(t,
"WEAK NEUTRAL CURRENT") == 0 ||
94 else if ( strcmp(t,
"NDECAY") == 0 )
return kIntNDecay;
96 else if ( strcmp(t,
"NOSC") == 0 )
return kIntNOsc;
105 #endif // _INTERACTION_TYPE_H_
#include "Numerical/GSFunc.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