cepgen is hosted by Hepforge, IPPP Durham
CepGen 1.2.5
Central exclusive processes event generator
Loading...
Searching...
No Matches
Utils.h
Go to the documentation of this file.
1/*
2 * CepGen: a central exclusive processes event generator
3 * Copyright (C) 2020-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
19#ifndef CepGenAddOns_MadGraphWrapper_Utils_h
20#define CepGenAddOns_MadGraphWrapper_Utils_h
21
23
24namespace cepgen {
25 namespace mg5amc {
26 using ProcessParticles = std::pair<std::vector<std::string>, std::vector<std::string> >;
29 ProcessParticles unpackProcessParticles(const std::string& proc);
33 ParticleProperties describeParticle(const std::string& part_name, const std::string& model = "");
39 std::vector<std::string> runCommand(const std::vector<std::string>& cmds,
40 const std::string& card_path,
41 bool keep_output = false);
44 std::string normalise(const std::string& proc, const std::string& model = "");
45 } // namespace mg5amc
46} // namespace cepgen
47
48#endif
ParticleProperties describeParticle(const std::string &part_name, const std::string &model)
Unpack all particle properties from MadGraph.
Definition Utils.cpp:68
std::pair< std::vector< std::string >, std::vector< std::string > > ProcessParticles
Definition Utils.h:26
ProcessParticles unpackProcessParticles(const std::string &proc)
Unpack the particles' content and role in the process from a string.
Definition Utils.cpp:38
std::string normalise(const std::string &proc_name, const std::string &model)
Normalise a process name to make it computer-readable.
Definition Utils.cpp:172
std::vector< std::string > runCommand(const std::vector< std::string > &cmds, const std::string &card_path, bool keep_output)
Run a mg5_aMC command and return its result.
Definition Utils.cpp:147
Common namespace for this Monte Carlo generator.
A collection of physics constants associated to a single particle.