64 EvtId parnum, mesnum, lnum, nunum;
66 parnum = getParentId();
71 double mymaxprob =
calcamp->CalcMaxProb(parnum, mesnum,
75 static EvtId EM = EvtPDL::getId(
"e-");
76 static EvtId EP = EvtPDL::getId(
"e+");
77 static EvtId MUM = EvtPDL::getId(
"mu-");
78 static EvtId MUP = EvtPDL::getId(
"mu+");
79 static EvtId TAUM = EvtPDL::getId(
"tau-");
80 static EvtId TAUP = EvtPDL::getId(
"tau+");
82 if (lnum == EP || lnum == EM || lnum == MUP || lnum == MUM) {
83 setProbMax(mymaxprob);
86 if (lnum == TAUP || lnum == TAUM) {
103 checkSpinParent(EvtSpinType::SCALAR);
105 checkSpinDaughter(1, EvtSpinType::DIRAC);
106 checkSpinDaughter(2, EvtSpinType::DIRAC);
108 EvtSpinType::spintype d1type = EvtPDL::getSpinType(getDaug(0));
109 if (d1type == EvtSpinType::SCALAR) {
110 if (getNArg() == 8) {
111 bglffmodel =
new EvtBGLFF(getArg(0), getArg(1), getArg(2), getArg(3), getArg(4), getArg(5), getArg(6), getArg(7));
114 EvtGenReport(EVTGEN_ERROR,
"EvtGen") <<
"HNLBGL (N=3) model for scalar meson daughters needs 8 arguments. Sorry." << endl;
118 }
else if (d1type == EvtSpinType::VECTOR) {
119 if (getNArg() == 6) {
120 bglffmodel =
new EvtBGLFF(getArg(0), getArg(1), getArg(2), getArg(3), getArg(4), getArg(5));
123 EvtGenReport(EVTGEN_ERROR,
"EvtGen") <<
"HNLBGL model for vector meson daughters needs 6 arguments. Sorry." << endl;
127 EvtGenReport(EVTGEN_ERROR,
"EvtGen") <<
"HNLBGL model handles only scalar and vector meson daughters. Sorry." << endl;