58 const int kNIntTyp = 3;
66 int nucleon[kNNuc] = {
74 double dQ2 = (Q2max-Q2min)/(kNQ2-1);
98 TTree * gibuu_ffres =
new TTree(
"gibuu_ffres",
"GiBUU resonance form factors");
100 gibuu_ffres -> Branch (
"res", &bResId,
"res/I" );
101 gibuu_ffres -> Branch (
"nuc", &bNucleon,
"nuc/I" );
102 gibuu_ffres -> Branch (
"intyp", &bIntType,
"intyp/I" );
103 gibuu_ffres -> Branch (
"isoX2", &bIsoX2,
"isoX2/I" );
104 gibuu_ffres -> Branch (
"Q2", &bQ2,
"Q2/D" );
105 gibuu_ffres -> Branch (
"C3V", &bC3V,
"C3V/D" );
106 gibuu_ffres -> Branch (
"C4V", &bC4V,
"C4V/D" );
107 gibuu_ffres -> Branch (
"C5V", &bC5V,
"C5V/D" );
108 gibuu_ffres -> Branch (
"C6V", &bC6V,
"C6V/D" );
109 gibuu_ffres -> Branch (
"C3A", &bC3A,
"C3A/D" );
110 gibuu_ffres -> Branch (
"C4A", &bC4A,
"C4A/D" );
111 gibuu_ffres -> Branch (
"C5A", &bC5A,
"C5A/D" );
112 gibuu_ffres -> Branch (
"C6A", &bC6A,
"C6A/D" );
113 gibuu_ffres -> Branch (
"F1V", &bF1V,
"F1V/D" );
114 gibuu_ffres -> Branch (
"F2V", &bF2V,
"F2V/D" );
115 gibuu_ffres -> Branch (
"FA", &bFA,
"FA/D" );
116 gibuu_ffres -> Branch (
"FP", &bFP,
"FP/D" );
122 for(
int r=0;
r<kNRes;
r++) {
123 for(
int i=0; i<kNNuc; i++) {
124 for(
int j=0; j<kNIntTyp; j++) {
126 bResId = (
int) resonance[
r];
127 bNucleon = nucleon[i];
128 bIntType = interaction[j];
131 for(
int iq2=0; iq2<kNQ2; iq2++) {
132 double Q2 = Q2min + iq2 * dQ2;
135 bC3V = ff.
C3V(Q2, resonance[
r], nucleon[i], interaction[j]);
136 bC4V = ff.
C4V(Q2, resonance[r], nucleon[i], interaction[j]);
137 bC5V = ff.
C5V(Q2, resonance[r], nucleon[i], interaction[j]);
138 bC6V = ff.
C6V(Q2, resonance[r], nucleon[i], interaction[j]);
139 bC3A = ff.
C3A(Q2, resonance[r], nucleon[i], interaction[j]);
140 bC4A = ff.
C4A(Q2, resonance[r], nucleon[i], interaction[j]);
141 bC5A = ff.
C5A(Q2, resonance[r], nucleon[i], interaction[j]);
142 bC6A = ff.
C6A(Q2, resonance[r], nucleon[i], interaction[j]);
143 bF1V = ff.
F1V(Q2, resonance[r], nucleon[i], interaction[j]);
144 bF2V = ff.
F2V(Q2, resonance[r], nucleon[i], interaction[j]);
145 bFA = ff.
FA (Q2, resonance[r], nucleon[i], interaction[j]);
146 bFP = ff.
FP (Q2, resonance[r], nucleon[i], interaction[j]);
157 TFile
f(
"./gibuu_data.root",
"recreate");
158 gibuu_ffres->Write();
bool IsDelta(Resonance_t res)
is it a Delta resonance?
double Q2(const Interaction *const i)
enum genie::EResonance Resonance_t
enum genie::EInteractionType InteractionType_t