-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from N3PDF/x-space
[CLEAN UP]: x-space resummed expressions
- Loading branch information
Showing
10 changed files
with
426 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,48 @@ | ||
/* | ||
* ===================================================================================== | ||
* | ||
* Filename: | ||
* | ||
* Description: | ||
* | ||
* Version: 1.0 | ||
* Created: | ||
* Revision: none | ||
* Compiler: gcc | ||
* | ||
* Author: | ||
* Organization: N3PDF | ||
* | ||
* ===================================================================================== | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <math.h> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
|
||
#include <cmath> | ||
#include <iostream> | ||
#include <string> | ||
#include <vector> | ||
|
||
#include "./ComplexDefs.h" | ||
#include "./Integration.h" | ||
#include "./ThresXspace.h" | ||
|
||
class MellinTrans { | ||
public: | ||
MellinTrans(int order, int channel, std::string pdfname, void *params); | ||
virtual ~MellinTrans(); | ||
|
||
double ExtractThresMom(double x, double N, double pt); | ||
std::complex<long double> xSpaceThres(std::complex<long double> N, | ||
long double pt); | ||
|
||
private: | ||
int NF, ORD, CHANNEL; | ||
double MH2, MUR2, MUF2; | ||
|
||
ThresXspace xThres; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,38 @@ | ||
/* | ||
* ===================================================================================== | ||
* | ||
* Filename: | ||
* | ||
* Description: | ||
* | ||
* Version: 1.0 | ||
* Created: | ||
* Revision: none | ||
* Compiler: gcc | ||
* | ||
* Author: | ||
* Organization: N3PDF | ||
* | ||
* ===================================================================================== | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <math.h> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
|
||
#include <cmath> | ||
#include <iostream> | ||
#include <string> | ||
#include <vector> | ||
|
||
#include "./ComplexDefs.h" | ||
#include "./SmallptExp.h" | ||
#include "./ThresExp.h" | ||
#include "higgs-fo/integration.h" | ||
|
||
namespace ExtrIntegration { | ||
double IntegrateOverx(int method, double(Func)(double, void *), void *pp, | ||
double *error); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,58 @@ | ||
/* | ||
* ===================================================================================== | ||
* | ||
* Filename: | ||
* | ||
* Description: | ||
* | ||
* Version: 1.0 | ||
* Created: | ||
* Revision: none | ||
* Compiler: gcc | ||
* | ||
* Author: | ||
* Organization: N3PDF | ||
* | ||
* ===================================================================================== | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <gsl/gsl_math.h> | ||
#include <gsl/gsl_sf_psi.h> | ||
#include <math.h> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
|
||
#include <cmath> | ||
#include <iostream> | ||
#include <string> | ||
#include <vector> | ||
|
||
#include "higgs-fo/params.h" | ||
|
||
class ThresXspace { | ||
public: | ||
ThresXspace(int order, int channel, void *params); | ||
virtual ~ThresXspace(); | ||
|
||
double ThresXspaceExpr(double x, double N, double pt); | ||
|
||
// LO pt-distribution | ||
double LOgggH(double x, double pt); | ||
double LOgqqH(double x, double pt); | ||
double LOqqgH(double x, double pt); | ||
|
||
private: | ||
int NC, NF, CA, ORD, CHANNEL; | ||
double LF, LR, LQ; | ||
double MH2, MUF2, MUR2, SROOT; | ||
double CF, aass, SIGMA0; | ||
|
||
double Beta0; | ||
|
||
// Polygamma functions | ||
double psi0one = gsl_sf_psi_n(0, 1); | ||
double psi0half = gsl_sf_psi_n(0, 0.5); | ||
double psi1half = gsl_sf_psi_n(1, 0.5); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,73 @@ | ||
/* | ||
* ===================================================================================== | ||
* | ||
* Filename: | ||
* | ||
* Description: | ||
* | ||
* Version: 1.0 | ||
* Created: | ||
* Revision: none | ||
* Compiler: gcc | ||
* | ||
* Author: | ||
* Organization: N3PDF | ||
* | ||
* ===================================================================================== | ||
*/ | ||
|
||
#include "../include/IntMellin.h" | ||
|
||
#include <higgs-fo/params.h> | ||
|
||
MellinTrans::MellinTrans(int order, int channel, std::string pdfname, | ||
void *params) | ||
: xThres(order, channel, params) { | ||
PhysParams param = *reinterpret_cast<PhysParams *>(params); | ||
|
||
MH2 = static_cast<long double>(std::pow(param.mh, 2)); | ||
MUR2 = static_cast<long double>(std::pow(param.mur, 2)); | ||
MUF2 = static_cast<long double>(std::pow(param.muf, 2)); | ||
} | ||
|
||
|
||
MellinTrans::~MellinTrans() {} | ||
|
||
|
||
struct IntStruct { | ||
MellinTrans *TransMellin; | ||
double N; | ||
double pt; | ||
}; | ||
|
||
|
||
double MellinTrans::ExtractThresMom(double x, double N, double pt) { | ||
return xThres.ThresXspaceExpr(x, N, pt); | ||
} | ||
|
||
|
||
double xThresIntegrand(double x, void *p) { | ||
IntStruct par = *reinterpret_cast<IntStruct *>(p); | ||
return par.TransMellin->ExtractThresMom(x, par.N, par.pt); | ||
} | ||
|
||
|
||
std::complex<long double> MellinTrans::xSpaceThres( | ||
std::complex<long double> N, long double pt) { | ||
int method = 0; | ||
double reslt, error; | ||
double nn = static_cast<double>(N.real()); | ||
|
||
// pass parameters | ||
IntStruct finalparams; | ||
finalparams.N = nn; | ||
finalparams.pt = static_cast<double>(pt); | ||
finalparams.TransMellin = this; | ||
|
||
// Integration | ||
reslt = ExtrIntegration::IntegrateOverx(method, xThresIntegrand, &finalparams, | ||
&error); | ||
|
||
std::complex<long double> finreslt(static_cast<long double>(reslt), 0.); | ||
return finreslt; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,59 @@ | ||
/* | ||
* ===================================================================================== | ||
* | ||
* Filename: | ||
* | ||
* Description: | ||
* | ||
* Version: 1.0 | ||
* Created: | ||
* Revision: none | ||
* Compiler: gcc | ||
* | ||
* Author: | ||
* Organization: N3PDF | ||
* | ||
* ===================================================================================== | ||
*/ | ||
|
||
#include "../include/Integration.h" | ||
|
||
struct IntData { | ||
std::function<double(double, void *)> fun; | ||
void *param; | ||
}; | ||
|
||
|
||
int xIntegrand(int *ndim, double *x, int *ncomp, double *y, void *p) { | ||
IntData inparam = *reinterpret_cast<IntData *>(p); | ||
y[0] = inparam.fun(x[0], inparam.param); | ||
return 0; | ||
} | ||
|
||
|
||
double ExtrIntegration::IntegrateOverx(int method, double(Func)(double, void *), | ||
void *pp, double *error) { | ||
int fail; | ||
double prec = 1e-8; | ||
double *res = NULL; | ||
double *err = NULL; | ||
double *prb = NULL; | ||
|
||
res = new double[1]; | ||
err = new double[1]; | ||
prb = new double[1]; | ||
|
||
int ndim = 2; | ||
int ncomp = 1; | ||
int verbose = 0; | ||
|
||
IntData UserData; | ||
UserData.fun = Func; | ||
UserData.param = pp; | ||
|
||
integration::CubaIntegrator(method, xIntegrand, ndim, ncomp, prec, &res, | ||
&fail, &err, &prb, &UserData, verbose); | ||
|
||
*error = err[0]; | ||
return res[0]; | ||
} |
Oops, something went wrong.