2-2, decay 1-2, output to pythia8 program, the program is wrong
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MadGraph5_aMC@NLO |
Fix Released
|
Medium
|
Johan Alwall |
Bug Description
Last time, I reported a bug in the same headline. I just downloaded madgraph v5.1.8, it seems that you didn't fix this problem radically. Now, the function turns to such:
void Sigma_vectorlik
{
if(id1 == -4 && id2 == 21)
{
// Pick one of the flavor combinations
int flavors[1][3] = {{-6001, 1000011}};
vector<double> probs;
double sum = matrix_element[1];
probs.
int choice = rndmPtr-
id3 = flavors[choice][0];
id4 = flavors[choice][1];
id5 = flavors[choice][2];
}
else if(id1 == 21 && id2 == -4)
{
// Pick one of the flavor combinations (-6001, 3, -2)
int flavors[1][3] = {{-6001, 3, -2}};
vector<double> probs;
double sum =;
probs.
int choice = rndmPtr-
id3 = flavors[choice][0];
id4 = flavors[choice][1];
id5 = flavors[choice][2];
}
setId(id1, id2, id3, id4, id5);
// Pick color flow
int ncolor[1] = {1};
if(id1 == 21 && id2 == -4 && id3 == -6001 && id4 == 3 && id5 == -2)
{
vector<double> probs;
double sum = jamp2[0][0];
for(int i = 0; i < ncolor[0]; i++ )
probs.
int ic = rndmPtr-
static int colors[1][10] = {{1, 3, 0, 1, 0, 3, 2, 0, 0, 2}};
setColAcol(
}
else if(id1 == -4 && id2 == 21 && id3 == -6001 && id4 == 1000011)
{
vector<double> probs;
double sum = jamp2[0][0];
for(int i = 0; i < ncolor[0]; i++ )
probs.
int ic = rndmPtr-
static int colors[1][10] = {{0, 1, 1, 3, 0, 3, 2, 0, 0, 2}};
setColAcol(
}
}
The codes under the first "if" is unsuitable since I think it should be the same with the codes under "else if", which should be int flavors[1][3] = {{-6001, 3, -2}} instead of int flavors[1][3] = {{-6001, 1000011}}. However, new bugs are arosed since strange syntax
double sum =;
probs.
appeared and I think it should be
double sum = matrix_element[1];
probs.
Related branches
- Olivier Mattelaer: Approve
- Johan Alwall (community): Needs Information
- Pierre Artoisenet (community): Approve
-
Diff: 9165 lines (+6396/-922)56 files modifiedTemplate/README.lhapdf (+1/-3)
Template/Source/PDF/makefile (+2/-0)
Template/SubProcesses/idenparts.f (+9/-2)
Template/SubProcesses/makefile (+3/-0)
Template/bin/generate_events (+55/-2)
Template/bin/newprocess_mg5 (+13/-1)
UpdateNotes.txt (+41/-0)
aloha/aloha_object.py (+21/-26)
aloha/aloha_writers.py (+73/-20)
aloha/create_aloha.py (+112/-52)
aloha/template_files/wavefunctions.py (+34/-35)
input/.mg5_configuration_default.txt (+1/-1)
madgraph/VERSION (+2/-2)
madgraph/core/base_objects.py (+8/-4)
madgraph/core/diagram_generation.py (+148/-17)
madgraph/core/helas_objects.py (+272/-305)
madgraph/interface/madevent_interface.py (+27/-10)
madgraph/interface/madgraph_interface.py (+16/-3)
madgraph/iolibs/export_cpp.py (+47/-57)
madgraph/iolibs/export_v4.py (+16/-7)
madgraph/iolibs/file_writers.py (+12/-2)
madgraph/iolibs/group_subprocs.py (+15/-20)
madgraph/iolibs/helas_call_writers.py (+5/-6)
madgraph/iolibs/template_files/check_sa.cpp (+1/-1)
madgraph/iolibs/template_files/madevent_makefile_source (+5/-0)
madgraph/iolibs/template_files/madevent_symmetry.f (+10/-8)
madgraph/iolibs/template_files/super_auto_dsig_group_v4.inc (+4/-0)
madgraph/various/banner.py (+39/-8)
madgraph/various/cluster.py (+108/-2)
madgraph/various/diagram_symmetry.py (+13/-29)
models/import_ufo.py (+16/-4)
tests/acceptance_tests/test_cmd.py (+214/-4)
tests/acceptance_tests/test_cmd_madevent.py (+16/-5)
tests/acceptance_tests/test_model_equivalence.py (+5/-0)
tests/input_files/sm_with_custom_propa/__init__.py (+31/-0)
tests/input_files/sm_with_custom_propa/build_restrict.py (+69/-0)
tests/input_files/sm_with_custom_propa/coupling_orders.py (+16/-0)
tests/input_files/sm_with_custom_propa/couplings.py (+443/-0)
tests/input_files/sm_with_custom_propa/decays.py (+81/-0)
tests/input_files/sm_with_custom_propa/function_library.py (+55/-0)
tests/input_files/sm_with_custom_propa/lorentz.py (+102/-0)
tests/input_files/sm_with_custom_propa/object_library.py (+284/-0)
tests/input_files/sm_with_custom_propa/parameters.py (+497/-0)
tests/input_files/sm_with_custom_propa/particles.py (+387/-0)
tests/input_files/sm_with_custom_propa/propagator.py (+38/-0)
tests/input_files/sm_with_custom_propa/propagators.py (+35/-0)
tests/input_files/sm_with_custom_propa/restrict_default.dat (+53/-0)
tests/input_files/sm_with_custom_propa/vertices.py (+929/-0)
tests/input_files/sm_with_custom_propa/write_param_card.py (+181/-0)
tests/unit_tests/core/test_base_objects.py (+3/-1)
tests/unit_tests/core/test_diagram_generation.py (+36/-0)
tests/unit_tests/core/test_helas_objects.py (+5/-4)
tests/unit_tests/iolibs/test_export_cpp.py (+1202/-93)
tests/unit_tests/iolibs/test_export_v4.py (+446/-88)
tests/unit_tests/iolibs/test_helas_call_writers.py (+66/-66)
tests/unit_tests/various/test_aloha.py (+73/-34)
Changed in madgraph5: | |
status: | Fix Committed → Fix Released |
void Sigma_vectorlik e_gc_d4erp_ erp_vlep: :setIdColAcol( )
matrix_ element[ 15] + matrix_element[16] + matrix_element[17]; push_back( matrix_ element[ 12] + matrix_element[13] +
matrix_ element[ 14] + matrix_element[15] + matrix_element[16] +
matrix_ element[ 17]/sum) ; >pick(probs) ;
matrix_ element[ 21] + matrix_element[22] + matrix_element[23]; push_back( matrix_ element[ 18] + matrix_element[19] +
matrix_ element[ 20] + matrix_element[21] + matrix_element[22] +
matrix_ element[ 23]/sum) ; >pick(probs) ; push_back( /sum); push_back( /sum); push_back( /sum); push_back( /sum); push_back( /sum); push_back( /sum); >pick(probs) ; push_back( /sum); push_back( /sum); push_back( /sum); push_back( /sum); push_back( /sum); push_back( /sum); >pick(probs) ; push_back( jamp2[0] [i]/sum) ; >pick(probs) ; colors[ ic][0], colors[ic][1], colors[ic][2], colors[ic][3],
colors[ ic][4], colors[ic][5], colors[ic][6], colors[ic][7],
colors[ ic][8], colors[ic][9]);
{
if(id1 == 4 && id2 == 21)
{
// Pick one of the flavor combinations
int flavors[1][3] = {{7, -2000011}};
vector<double> probs;
double sum = matrix_element[12] + matrix_element[13] + matrix_element[14] +
probs.
int choice = rndmPtr-
id3 = flavors[choice][0];
id4 = flavors[choice][1];
id5 = flavors[choice][2];
}
else if(id1 == -4 && id2 == 21)
{
// Pick one of the flavor combinations
int flavors[1][3] = {{-7, 2000011}};
vector<double> probs;
double sum = matrix_element[18] + matrix_element[19] + matrix_element[20] +
probs.
int choice = rndmPtr-
id3 = flavors[choice][0];
id4 = flavors[choice][1];
id5 = flavors[choice][2];
}
else if(id1 == 21 && id2 == 4)
{
// Pick one of the flavor combinations (7, 12, -11), (7, -16, -11), (7,
// -12, -11), (7, 16, -11), (7, 14, -11), (7, -14, -11)
int flavors[6][3] = {{7, 12, -11}, {7, -16, -11}, {7, -12, -11}, {7, 16,
-11}, {7, 14, -11}, {7, -14, -11}};
vector<double> probs;
double sum = +++ ++;
probs.
probs.
probs.
probs.
probs.
probs.
int choice = rndmPtr-
id3 = flavors[choice][0];
id4 = flavors[choice][1];
id5 = flavors[choice][2];
}
else if(id1 == 21 && id2 == -4)
{
// Pick one of the flavor combinations (-7, 12, 11), (-7, -16, 11), (-7,
// -12, 11), (-7, 16, 11), (-7, 14, 11), (-7, -14, 11)
int flavors[6][3] = {{-7, 12, 11}, {-7, -16, 11}, {-7, -12, 11}, {-7, 16,
11}, {-7, 14, 11}, {-7, -14, 11}};
vector<double> probs;
double sum = +++ ++;
probs.
probs.
probs.
probs.
probs.
probs.
int choice = rndmPtr-
id3 = flavors[choice][0];
id4 = flavors[choice][1];
id5 = flavors[choice][2];
}
setId(id1, id2, id3, id4, id5);
// Pick color flow
int ncolor[12] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
if(id1 == 21 && id2 == 4 && id3 == 7 && id4 == 12 && id5 == -11)
{
vector<double> probs;
double sum = jamp2[0][0];
for(int i = 0; i < ncolor[0]; i++ )
probs.
int ic = rndmPtr-
static int colors[1][10] = {{1, 2, 2, 0, 1, 0, 0, 0, 0, 0}};
setColAcol(
}
else if(id1 == 21 && i...