cepgen is hosted by Hepforge, IPPP Durham
CepGen N/A
Central exclusive processes event generator
Process.h
Go to the documentation of this file.
1/*
2 * CepGen: a central exclusive processes event generator
3 * Copyright (C) 2020-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 CepGenMadGraph_Process_h
20#define CepGenMadGraph_Process_h
21
23
24namespace cepgen {
25 class Momentum;
26} // namespace cepgen
27
28namespace cepgen::mg5amc {
30 class Process : public NamedModule<Process> {
31 public:
32 explicit Process(const ParametersList&);
33 virtual ~Process() = default;
34
36
37 inline const std::vector<int>& intermediatePartons() const { return incoming_pdgids_; }
38 inline const std::vector<int>& centralSystem() const { return central_pdgids_; }
39
40 virtual void initialise(const std::string&) = 0;
41 virtual double eval() = 0;
42 virtual const std::vector<Momentum>& momenta() = 0;
43
44 Process& setMomentum(size_t i, const Momentum& mom);
45
46 protected:
47 const std::vector<int> incoming_pdgids_, central_pdgids_;
48 std::vector<double*> mom_;
49 };
50} // namespace cepgen::mg5amc
51
52#endif
Container for a particle's 4-momentum, along with useful methods to ease the development of any matri...
Definition Momentum.h:30
Base runtime module object.
Definition NamedModule.h:28
A description object for parameters collection.
Wrapper around a generic MadGraph process definition.
Definition Process.h:30
std::vector< double * > mom_
Definition Process.h:48
virtual const std::vector< Momentum > & momenta()=0
Process & setMomentum(size_t i, const Momentum &mom)
static ParametersDescription description()
virtual ~Process()=default
Process(const ParametersList &)
virtual void initialise(const std::string &)=0
const std::vector< int > incoming_pdgids_
Definition Process.h:47
const std::vector< int > central_pdgids_
Definition Process.h:47
virtual double eval()=0
const std::vector< int > & centralSystem() const
Definition Process.h:38
const std::vector< int > & intermediatePartons() const
Definition Process.h:37
Common namespace for this Monte Carlo generator.
Definition Handler.h:26