cepgen
is hosted by
Hepforge
,
IPPP Durham
CepGen
1.2.5
Central exclusive processes event generator
Loading...
Searching...
No Matches
AlphaEM.cpp
Go to the documentation of this file.
1
/*
2
* CepGen: a central exclusive processes event generator
3
* Copyright (C) 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 <Pythia8/Pythia.h>
20
#include <Pythia8/StandardModel.h>
21
22
#include "
CepGen/Modules/CouplingFactory.h
"
23
#include "
CepGen/Physics/Constants.h
"
24
#include "
CepGen/Physics/Coupling.h
"
25
26
namespace
cepgen
{
27
namespace
pythia8 {
28
class
AlphaEM
final :
public
Coupling
{
29
public
:
30
explicit
AlphaEM
(
const
ParametersList
& params)
31
:
Coupling
(params), pythia_(new
Pythia8
::Pythia), alphaem_(new
Pythia8
::
AlphaEM
) {
32
pythia_->settings.parm(
"StandardModel:alphaEM0"
, steer<double>(
"alphaEM0"
));
33
pythia_->settings.parm(
"StandardModel:alphaEMmZ"
, steer<double>(
"alphaEMmZ"
));
34
alphaem_->init(steer<int>(
"order"
), &pythia_->settings);
35
}
36
37
inline
static
ParametersDescription
description
() {
38
auto
desc =
cepgen::Coupling::description
();
39
desc.setDescription(
"Pythia8 modelling of alpha(EM) running"
);
40
desc.add<
int
>(
"order"
, 1);
41
desc.add<
double
>(
"alphaEM0"
, 0.00729735);
42
desc.add<
double
>(
"alphaEMmZ"
, 0.00781751);
43
return
desc;
44
}
45
46
inline
double
operator()
(
double
q)
const override
{
return
alphaem_->alphaEM(q * q); }
47
48
private
:
49
const
std::unique_ptr<Pythia8::Pythia> pythia_;
50
const
std::unique_ptr<Pythia8::AlphaEM> alphaem_;
51
};
52
}
// namespace pythia8
53
}
// namespace cepgen
54
using
PythiaAlphaEM
=
cepgen::pythia8::AlphaEM
;
55
REGISTER_ALPHAEM_MODULE
(
"pythia8"
,
PythiaAlphaEM
);
Constants.h
CouplingFactory.h
REGISTER_ALPHAEM_MODULE
#define REGISTER_ALPHAEM_MODULE(name, obj)
Add an electromagnetic coupling evolution algorithm.
Definition
CouplingFactory.h:25
Coupling.h
cepgen::Coupling
A generic evaluation algorithm.
Definition
Coupling.h:26
cepgen::ParametersDescription
A description object for parameters collection.
Definition
ParametersDescription.h:26
cepgen::ParametersList
Definition
ParametersList.h:52
cepgen::Steerable::description
static ParametersDescription description()
Description of all object parameters.
Definition
Steerable.cpp:42
cepgen::pythia8::AlphaEM
Definition
AlphaEM.cpp:28
cepgen::pythia8::AlphaEM::operator()
double operator()(double q) const override
Compute for a given .
Definition
AlphaEM.cpp:46
cepgen::pythia8::AlphaEM::AlphaEM
AlphaEM(const ParametersList ¶ms)
Definition
AlphaEM.cpp:30
cepgen::pythia8::AlphaEM::description
static ParametersDescription description()
Definition
AlphaEM.cpp:37
Pythia8
Definition
PythiaEventInterface.cpp:26
cepgen
Common namespace for this Monte Carlo generator.
Definition
CommandLineHandler.cpp:36
CepGenAddOns
Pythia8Wrapper
AlphaEM.cpp
Generated on Mon Jul 29 2024 for CepGen by
1.9.7