cepgen is hosted by Hepforge, IPPP Durham
CepGen N/A
Central exclusive processes event generator
Utils.h
Go to the documentation of this file.
1/*
2 * CepGen: a central exclusive processes event generator
3 * Copyright (C) 2020-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 CepGenMadGraph_Utils_h
20#define CepGenMadGraph_Utils_h
21
23
24namespace cepgen::mg5amc {
25 using ProcessParticles = std::pair<std::vector<std::string>, std::vector<std::string> >;
28 ProcessParticles unpackProcessParticles(const std::string& process_name);
32 ParticleProperties describeParticle(const std::string& particle_name, const std::string& physics_model = "");
38 std::vector<std::string> runCommand(const std::vector<std::string>& commands_list,
39 const std::string& card_path,
40 bool keep_output = false);
43 std::string normalise(const std::string& process_name, const std::string& physics_model = "");
44} // namespace cepgen::mg5amc
45
46#endif
ProcessParticles unpackProcessParticles(const std::string &process_name)
Unpack the particles' content and role in the process from a string.
std::string normalise(const std::string &process_name, const std::string &physics_model="")
Normalise a process name to make it computer-readable.
std::pair< std::vector< std::string >, std::vector< std::string > > ProcessParticles
Definition Utils.h:25
std::vector< std::string > runCommand(const std::vector< std::string > &commands_list, const std::string &card_path, bool keep_output=false)
Run a mg5_aMC command and return its result.
ParticleProperties describeParticle(const std::string &particle_name, const std::string &physics_model="")
Unpack all particle properties from MadGraph.