10 #ifndef Pythia8_SusyWidthFunctions_H
11 #define Pythia8_SusyWidthFunctions_H
13 #include "Pythia8/ParticleData.h"
14 #include "Pythia8/SusyCouplings.h"
20 class WidthFunction :
public FunctionEncapsulator {
26 virtual ~WidthFunction() { };
29 void setPointers( ParticleData* particleDataPtrIn, CoupSUSY* coupSUSYPtrIn,
31 virtual double getWidth(
int,
int) {
return 0.0; };
34 virtual double f(
double xIn);
39 virtual double f(vector<double> x) {
return f(x[0]); }
40 bool integrateGauss(
double& result,
double xLo,
double xHi,
double tol) {
41 vector<double> tmp(1);
42 return FunctionEncapsulator::integrateGauss(result, 0, xLo, xHi, tmp, tol);
45 ParticleData* particleDataPtr;
46 CoupSUSY* coupSUSYPtr;
48 int idRes, idInt, id1, id2, id3, id4;
49 double mRes, mInt, gammaInt, m1, m2 , m3, m4;
65 double getWidth(
int idResIn,
int idIn);
70 void setChannel(
int idResIn,
int idIn);
73 double delm, f0, gf, cons, wparam;
82 #endif // end Pythia8_SusyResonanceWidths_H