cepgen is hosted by Hepforge, IPPP Durham
CepGen 1.2.5
Central exclusive processes event generator
Loading...
Searching...
No Matches
CollinearFlux.cpp
Go to the documentation of this file.
1/*
2 * CepGen: a central exclusive processes event generator
3 * Copyright (C) 2023 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
21
22namespace cepgen {
24
26 auto desc = PartonFlux::description();
27 desc.setDescription("Collinear parton flux");
28 return desc;
29 }
30
31 double CollinearFlux::fluxQ2(double x, double q2) const {
32 return fluxMX2(x, utils::mX2(x, q2, mass2()) /*FIXME on-shell assumption: xbj == x*/);
33 }
34
35 double CollinearFlux::fluxMX2(double x, double mx2) const {
36 if (mx2 <= 0.)
37 mx2 = mass2();
38 return fluxQ2(x, utils::q2(x, mass2(), mx2) /*FIXME on-shell assumption: xbj == x*/);
39 }
40} // namespace cepgen
static ParametersDescription description()
virtual double fluxQ2(double x, double q2) const
Compute the collinear flux for this x value and virtuality.
virtual double fluxMX2(double x, double mf2=0.) const
Compute the collinear flux for this x value and remnant mass.
CollinearFlux(const ParametersList &)
A description object for parameters collection.
virtual double mass2() const =0
Initiator particle squared mass (in )
static ParametersDescription description()
double q2(double xbj, double mp2, double mx2)
Compute the virtuality from Bjorken x/diffractive mass.
Definition Utils.cpp:35
double mX2(double xbj, double q2, double mp2)
Compute the diffractive mass from virtuality/Bjorken x.
Definition Utils.cpp:29
Common namespace for this Monte Carlo generator.