cepgen is hosted by Hepforge, IPPP Durham
CepGen 1.2.5
Central exclusive processes event generator
Loading...
Searching...
No Matches
Parameterisation.h
Go to the documentation of this file.
1/*
2 * CepGen: a central exclusive processes event generator
3 * Copyright (C) 2013-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#ifndef CepGen_FormFactors_Parameterisation_h
20#define CepGen_FormFactors_Parameterisation_h
21
25
26namespace cepgen {
27 namespace formfac {
29 class Parameterisation : public NamedModule<Parameterisation> {
30 public:
31 explicit Parameterisation(const ParametersList&);
32
34
35 friend std::ostream& operator<<(std::ostream&, const Parameterisation&);
36
37 double tau(double q2) const;
38
39 virtual const FormFactors& operator()(double /*q2*/);
40 virtual bool fragmenting() const { return false; }
41
42 protected:
43 static constexpr double MU = 2.792847337;
44
45 virtual void eval() = 0;
46
47 void setFEFM(double fe, double fm);
48 void setGEGM(double ge, double gm);
49
51 const double mass2_;
52 const double mp_;
53 const double mp2_;
54
55 double q2_{-1.};
57 };
58 std::ostream& operator<<(std::ostream&, const FormFactors&);
59 } // namespace formfac
60} // namespace cepgen
61
62#endif
Base runtime module object.
Definition NamedModule.h:28
A description object for parameters collection.
Nucleon electromagnetic form factors parameterisation.
virtual bool fragmenting() const
Is the nucleon surviving the exchange?
friend std::ostream & operator<<(std::ostream &, const Parameterisation &)
Friendly printout operator.
double tau(double q2) const
variable definition
static constexpr double MU
Proton magnetic moment.
const double mp2_
Squared proton mass, in GeV /c .
virtual const FormFactors & operator()(double)
Compute all form factors for a given value.
void setFEFM(double fe, double fm)
Set the electromagnetic form factors.
void setGEGM(double ge, double gm)
Set the Sachs form factors.
const pdgid_t pdg_id_
Incoming beam.
virtual void eval()=0
Local form factors evaluation method.
FormFactors ff_
Last form factors computed.
static ParametersDescription description()
const double mass2_
Incoming beam squared mass.
const double mp_
Proton mass, in GeV/c .
double q2_
Virtuality at which the form factors are evaluated.
std::ostream & operator<<(std::ostream &os, const Parameterisation &ff)
Form factors values.
Definition FormFactors.h:26
Common namespace for this Monte Carlo generator.
unsigned long long pdgid_t
Alias for the integer-like particle PDG id.