cepgen is hosted by Hepforge, IPPP Durham
CepGen N/A
Central exclusive processes event generator
GluonGrid.h
Go to the documentation of this file.
1/*
2 * CepGen: a central exclusive processes event generator
3 * Copyright (C) 2018-2025 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#ifndef CepGen_Physics_GluonGrid_h
20#define CepGen_Physics_GluonGrid_h
21
24
26namespace kmr {
28 class GluonGrid : cepgen::GridHandler<3, 1>, public cepgen::SteeredObject<GluonGrid> {
29 public:
30 static GluonGrid& get(const cepgen::ParametersList& params = {});
31 GluonGrid(const GluonGrid&) = delete;
32 void operator=(const GridHandler&) = delete;
33
35
36 const std::string& path() const { return grid_path_; }
37 double operator()(double x, double kt2, double mu2) const;
38
39 private:
40 static constexpr const char* DEFAULT_KMR_GRID_PATH = "gluon_mmht2014nlo_Watt.dat";
41 explicit GluonGrid(const cepgen::ParametersList&);
43 const std::string grid_path_;
44 };
45} // namespace kmr
46
47#endif
A generic class for grid interpolation.
Definition GridHandler.h:43
GridHandler(const GridType &grid_type)
Build a grid interpolator from a grid type.
A description object for parameters collection.
Base user-steerable object.
A KMR un-integrated gluon densities grid interpolator.
Definition GluonGrid.h:28
GluonGrid(const GluonGrid &)=delete
double operator()(double x, double kt2, double mu2) const
Compute the gluon flux.
void operator=(const GridHandler &)=delete
const std::string & path() const
Retrieve the path to the interpolation grid values.
Definition GluonGrid.h:36
static cepgen::ParametersDescription description()
static GluonGrid & get(const cepgen::ParametersList &params={})
Retrieve the grid interpolator singleton.
Kimber-Martin-Ryskin un-integrated gluon densities.
Definition GluonGrid.h:26