cepgen
is hosted by
Hepforge
,
IPPP Durham
CepGen
1.2.5
Central exclusive processes event generator
Loading...
Searching...
No Matches
AlphaSODE.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
AlphaSODE final :
public
Coupling {
31
public
:
32
explicit
AlphaSODE(
const
ParametersList& params) : Coupling(params), ode_(new LHAPDF::AlphaS_ODE) {
33
ode_->setOrderQCD(steer<int>(
"order"
));
34
ode_->setAlphaSMZ(steer<double>(
"alphaSMZ"
));
35
ode_->setMZ(PDG::get().mass(23));
// set Z mass
36
for
(
int
i = 1; i <= 6; ++i)
// set all quarks masses
37
ode_->setQuarkMass(i, PDG::get().mass(i));
38
}
39
40
static
ParametersDescription description() {
41
auto
desc = Coupling::description();
42
desc.setDescription(
"ODE LHAPDF evol.algo."
);
43
desc.add<
int
>(
"order"
, 5).setDescription(
"QCD order"
);
44
desc.add<
double
>(
"alphaSMZ"
, 0.118);
45
return
desc;
46
}
47
48
double
operator()(
double
q)
const override
{
return
ode_->alphasQ(q); }
49
50
private
:
51
std::unique_ptr<LHAPDF::AlphaS_ODE> ode_;
52
};
53
}
// namespace lhapdf
54
}
// namespace cepgen
55
using
AlphaSLHAPDFODE = cepgen::lhapdf::AlphaSODE;
56
REGISTER_ALPHAS_MODULE
(
"lhapdfODE"
, AlphaSLHAPDFODE);
57
58
#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
AlphaSODE.cpp
Generated on Mon Jul 29 2024 for CepGen by
1.9.7