EvtGen 2.2.0
Monte Carlo generator of particle decays, in particular the weak decays of heavy flavour particles such as B mesons.
Loading...
Searching...
No Matches
EvtKKLambdaCFF.cpp
Go to the documentation of this file.
1
2/***********************************************************************
3* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
4* *
5* This file is part of EvtGen. *
6* *
7* EvtGen is free software: you can redistribute it and/or modify *
8* it under the terms of the GNU General Public License as published by *
9* the Free Software Foundation, either version 3 of the License, or *
10* (at your option) any later version. *
11* *
12* EvtGen is distributed in the hope that it will be useful, *
13* but WITHOUT ANY WARRANTY; without even the implied warranty of *
14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15* GNU General Public License for more details. *
16* *
17* You should have received a copy of the GNU General Public License *
18* along with EvtGen. If not, see <https://www.gnu.org/licenses/>. *
19***********************************************************************/
20
22
23#include "EvtGenBase/EvtPDL.hh"
25
26#include <math.h>
27#include <stdlib.h>
28#include <string>
29
30EvtKKLambdaCFF::EvtKKLambdaCFF( int numarg, double* arglist )
31{
32 m_nargs = numarg;
33 for ( int i = 0; i < numarg; i++ ) {
34 m_args[i] = arglist[i];
35 }
36
37 return;
38}
39
40void EvtKKLambdaCFF::getbaryonff( EvtId /*parent*/, EvtId /*daught*/, double t,
41 double /*mass*/, double* f1v, double* f1a,
42 double* f2v, double* f2a )
43{
44 *f1v = ( m_args[0] ) / ( 1.0 - ( t / ( m_args[1] * m_args[1] ) ) );
45
46 *f2v = 0.;
47 *f2a = 0.;
48 *f1a = -1.0 * ( *f1v );
49}
50
51void EvtKKLambdaCFF::getscalarff( EvtId, EvtId, double, double, double*, double* )
52{
53 EvtGenReport( EVTGEN_ERROR, "EvtGen" )
54 << "Not implemented :getscalarff in EvtKKLambdaCFF.\n";
55 ::abort();
56}
57
58void EvtKKLambdaCFF::getvectorff( EvtId, EvtId, double, double, double*,
59 double*, double*, double* )
60{
61 EvtGenReport( EVTGEN_ERROR, "EvtGen" )
62 << "Not implemented :getvectorff in EvtKKLambdaCFF.\n";
63 ::abort();
64}
65
66void EvtKKLambdaCFF::gettensorff( EvtId, EvtId, double, double, double*,
67 double*, double*, double* )
68{
69 EvtGenReport( EVTGEN_ERROR, "EvtGen" )
70 << "Not implemented :gettensorff in EvtKKLambdaCFF.\n";
71 ::abort();
72}
73
74void EvtKKLambdaCFF::getdiracff( EvtId, EvtId, double, double, double*, double*,
75 double*, double*, double*, double* )
76{
77 EvtGenReport( EVTGEN_ERROR, "EvtGen" )
78 << "Not implemented :getdiracff in EvtKKLambdaCFF.\n";
79 ::abort();
80}
81
82void EvtKKLambdaCFF::getraritaff( EvtId, EvtId, double, double, double*,
83 double*, double*, double*, double*, double*,
84 double*, double* )
85{
86 EvtGenReport( EVTGEN_ERROR, "EvtGen" )
87 << "Not implemented :getraritaff in EvtKKLambdaCFF.\n";
88 ::abort();
89}
std::ostream & EvtGenReport(EvtGenSeverity severity, const char *facility=nullptr)
Definition EvtReport.cpp:32
@ EVTGEN_ERROR
Definition EvtReport.hh:49
Definition EvtId.hh:27
void getvectorff(EvtId, EvtId, double, double, double *, double *, double *, double *) override
void getscalarff(EvtId parent, EvtId daught, double t, double mass, double *f0p, double *f0m) override
void getbaryonff(EvtId parent, EvtId daught, double t, double mass, double *f1v, double *f1a, double *f2v, double *f2a) override
void getdiracff(EvtId, EvtId, double, double, double *, double *, double *, double *, double *, double *) override
void gettensorff(EvtId, EvtId, double, double, double *, double *, double *, double *) override
EvtKKLambdaCFF(int numarg, double *arglist)
void getraritaff(EvtId, EvtId, double, double, double *, double *, double *, double *, double *, double *, double *, double *) override