evtgen is hosted by Hepforge, IPPP Durham
EvtGen  2.0.0
Monte Carlo generator of particle decays, in particular the weak decays of heavy flavour particles such as B mesons.
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"
24 #include "EvtGenBase/EvtPatches.hh"
25 #include "EvtGenBase/EvtReport.hh"
26 
27 #include <math.h>
28 #include <stdlib.h>
29 #include <string>
30 
31 EvtKKLambdaCFF::EvtKKLambdaCFF( int numarg, double* arglist )
32 {
33  _nargs = numarg;
34  for ( int i = 0; i < numarg; i++ ) {
35  _args[i] = arglist[i];
36  }
37 
38  return;
39 }
40 
41 void EvtKKLambdaCFF::getbaryonff( EvtId /*parent*/, EvtId /*daught*/, double t,
42  double /*mass*/, double* f1v, double* f1a,
43  double* f2v, double* f2a )
44 {
45  *f1v = ( _args[0] ) / ( 1.0 - ( t / ( _args[1] * _args[1] ) ) );
46 
47  *f2v = 0.;
48  *f2a = 0.;
49  *f1a = -1.0 * ( *f1v );
50 }
51 
52 void EvtKKLambdaCFF::getscalarff( EvtId, EvtId, double, double, double*, double* )
53 {
54  EvtGenReport( EVTGEN_ERROR, "EvtGen" )
55  << "Not implemented :getscalarff in EvtKKLambdaCFF.\n";
56  ::abort();
57 }
58 
59 void EvtKKLambdaCFF::getvectorff( EvtId, EvtId, double, double, double*,
60  double*, double*, double* )
61 {
62  EvtGenReport( EVTGEN_ERROR, "EvtGen" )
63  << "Not implemented :getvectorff in EvtKKLambdaCFF.\n";
64  ::abort();
65 }
66 
67 void EvtKKLambdaCFF::gettensorff( EvtId, EvtId, double, double, double*,
68  double*, double*, double* )
69 {
70  EvtGenReport( EVTGEN_ERROR, "EvtGen" )
71  << "Not implemented :gettensorff in EvtKKLambdaCFF.\n";
72  ::abort();
73 }
74 
75 void EvtKKLambdaCFF::getdiracff( EvtId, EvtId, double, double, double*, double*,
76  double*, double*, double*, double* )
77 {
78  EvtGenReport( EVTGEN_ERROR, "EvtGen" )
79  << "Not implemented :getdiracff in EvtKKLambdaCFF.\n";
80  ::abort();
81 }
82 
83 void EvtKKLambdaCFF::getraritaff( EvtId, EvtId, double, double, double*,
84  double*, double*, double*, double*, double*,
85  double*, double* )
86 {
87  EvtGenReport( EVTGEN_ERROR, "EvtGen" )
88  << "Not implemented :getraritaff in EvtKKLambdaCFF.\n";
89  ::abort();
90 }
void getraritaff(EvtId, EvtId, double, double, double *, double *, double *, double *, double *, double *, double *, double *) override
void gettensorff(EvtId, EvtId, double, double, double *, double *, double *, double *) override
void getdiracff(EvtId, EvtId, double, double, double *, double *, double *, double *, double *, double *) override
void getvectorff(EvtId, EvtId, double, double, double *, double *, double *, double *) override
std::ostream & EvtGenReport(EvtGenSeverity severity, const char *facility=0)
Definition: EvtReport.cpp:33
void getbaryonff(EvtId parent, EvtId daught, double t, double mass, double *f1v, double *f1a, double *f2v, double *f2a) override
Definition: EvtId.hh:27
void getscalarff(EvtId parent, EvtId daught, double t, double mass, double *f0p, double *f0m) override
EvtKKLambdaCFF(int numarg, double *arglist)