cepgen
is hosted by
Hepforge
,
IPPP Durham
CepGen
1.2.5
Central exclusive processes event generator
Loading...
Searching...
No Matches
AlphaSAnalytic.cpp
Go to the documentation of this file.
1
/*
2
* CepGen: a central exclusive processes event generator
3
* Copyright (C) 2023-2024 Laurent Forthomme
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
#include <LHAPDF/LHAPDF.h>
20
21
#include "
CepGen/Modules/CouplingFactory.h
"
22
#include "
CepGen/Physics/Coupling.h
"
23
#include "
CepGen/Physics/PDG.h
"
24
25
#if defined LHAPDF_MAJOR_VERSION && LHAPDF_MAJOR_VERSION == 6
26
27
namespace
cepgen
{
28
namespace
lhapdf
{
30
class
AlphaSAnalytic final :
public
Coupling {
31
public
:
32
explicit
AlphaSAnalytic(
const
ParametersList& params) : Coupling(params), ana_(new LHAPDF::AlphaS_Analytic) {
33
ana_->setOrderQCD(steer<int>(
"order"
));
34
for
(
int
i = 1; i <= 6; ++i)
// set all quarks masses for evolution
35
ana_->setQuarkMass(i, PDG::get().mass(i));
36
// set gradients for evolution
37
size_t
i = 3;
38
for
(
const
auto
& lambda : steer<std::vector<double> >(
"lambdas"
))
39
ana_->setLambda(i++, lambda);
40
}
41
42
static
ParametersDescription description() {
43
auto
desc = Coupling::description();
44
desc.setDescription(
"Analytic LHAPDF perturb.algo."
);
45
desc.add<std::string>(
"pdfSet"
,
"cteq66"
);
46
desc.add<
int
>(
"order"
, 4).setDescription(
"QCD order"
);
47
desc.add<std::vector<double> >(
"lambdas"
, {0.339, 0.296, 0.213});
48
return
desc;
49
}
50
51
double
operator()(
double
q)
const override
{
return
ana_->alphasQ(q); }
52
53
private
:
54
std::unique_ptr<LHAPDF::AlphaS_Analytic> ana_;
55
};
56
}
// namespace lhapdf
57
}
// namespace cepgen
58
using
AlphaSLHAPDFAnalytic = cepgen::lhapdf::AlphaSAnalytic;
59
REGISTER_ALPHAS_MODULE
(
"lhapdfAnalytic"
, AlphaSLHAPDFAnalytic);
60
61
#endif
CouplingFactory.h
REGISTER_ALPHAS_MODULE
#define REGISTER_ALPHAS_MODULE(name, obj)
Add a strong coupling evolution algorithm.
Definition
CouplingFactory.h:35
Coupling.h
PDG.h
cepgen
Common namespace for this Monte Carlo generator.
Definition
CommandLineHandler.cpp:36
output.lhapdf
lhapdf
Definition
output.py:3
CepGenAddOns
LHAPDFWrapper
AlphaSAnalytic.cpp
Generated on Mon Jul 29 2024 for CepGen by
1.9.7