cepgen is hosted by Hepforge, IPPP Durham
CepGen N/A
Central exclusive processes event generator
PhaseSpaceGenerator.h
Go to the documentation of this file.
1/*
2 * CepGen: a central exclusive processes event generator
3 * Copyright (C) 2024-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_Process_PhaseSpaceGenerator_h
20#define CepGen_Process_PhaseSpaceGenerator_h
21
24
25namespace cepgen::proc {
26 class FactorisedProcess;
27}
28namespace cepgen::cuts {
29 struct Central;
30}
31
32namespace cepgen {
36 class PhaseSpaceGenerator : public NamedModule<PhaseSpaceGenerator> {
37 public:
38 explicit PhaseSpaceGenerator(const ParametersList& params) : NamedModule(params) {}
39
40 inline virtual bool ktFactorised() const { return false; }
41
42 inline virtual void setCentralCuts(const cuts::Central&) {}
44
45 virtual bool generate() = 0;
46 virtual double weight() const = 0;
47
48 virtual pdgids_t partons() const = 0;
49 virtual void setCentral(const std::vector<int>&) = 0;
50 virtual std::vector<int> central() const = 0;
51
52 // Mandelstam variables
53 virtual double that() const = 0;
54 virtual double uhat() const = 0;
55 };
56} // namespace cepgen
57
58#endif
Base runtime module object.
Definition NamedModule.h:28
Class template to define any phase space helper process.
virtual double weight() const =0
Return the event weight for a kinematics combination.
virtual std::vector< int > central() const =0
List of outgoing central particles in kinematics.
virtual double uhat() const =0
virtual void initialise(proc::FactorisedProcess *)=0
Set all process parameters.
PhaseSpaceGenerator(const ParametersList &params)
virtual double that() const =0
virtual void setCentralCuts(const cuts::Central &)
Set cuts on central particles.
virtual bool ktFactorised() const
virtual void setCentral(const std::vector< int > &)=0
Override the central particles list.
virtual pdgids_t partons() const =0
List of incoming partons in kinematics.
virtual bool generate()=0
Generate a kinematics combination, and return a success flag.
Generic parton emission-factorised process.
A namespace for all kinematic cuts.
Definition Cuts.h:30
Location for all physics processes to be generated.
Common namespace for this Monte Carlo generator.
Definition Handler.h:26
std::vector< pdgid_t > pdgids_t
Alias for a collection of particles PDG ids.
Centrally produced particles phase space cuts.
Definition Cuts.h:32