Version: SMASH-3.1
library.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2022
4  * SMASH Team
5  *
6  * GNU General Public License (GPLv3 or later)
7  *
8  */
9 
10 #include <string>
11 #include <vector>
12 
13 #include "configuration.h"
14 
15 #ifndef SRC_INCLUDE_SMASH_LIBRARY_H_
16 #define SRC_INCLUDE_SMASH_LIBRARY_H_
17 
18 namespace smash {
19 
20 /* Free functions to interface with smash as a library,
21  * also used in smash main function. */
22 
37 Configuration setup_config_and_logging(
38  const std::string &config_file, const std::string &particles_file = {},
39  const std::string &decaymodes_file = {},
40  const std::vector<std::string> &extra_config = {});
41 
52  Configuration &configuration, const std::string &version,
53  const std::string &tabulations_dir = {});
54 
55 } // namespace smash
56 
57 #endif // SRC_INCLUDE_SMASH_LIBRARY_H_
Definition: action.h:24
void initialize_particles_decays_and_tabulations(Configuration &configuration, const std::string &version, const std::string &tabulations_dir={})
Initialize the particles and decays from the given configuration, plus tabulate the resonance integra...
Definition: library.cc:45
Configuration setup_config_and_logging(const std::string &config_file, const std::string &particles_file={}, const std::string &decaymodes_file={}, const std::vector< std::string > &extra_config={})
Set up configuration and logging from input files and extra config.
Definition: library.cc:33