Go to the source code of this file.
|
| int | main (int argc, char **argv) |
| |
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
- Examples
- libmode_config.cpp.
Definition at line 18 of file libmode_config.cpp.
24 std::cout <<
"\nusage: " << argv[0] <<
" ModelConf.conf\n" << std::endl;
32 std::string ModelConf = argv[1];
35 std::map<std::string, double> DPars;
51 CO.AddObservable(
"Mw");
52 CO.AddObservable(
"GammaZ");
53 CO.AddObservable(
"AFBbottom");
61 std::map<std::string, std::string> DFlags;
66 std::map<std::string, double> DObs = CO.getObservables();
68 for (
int i = 0; i < 2; i++) {
71 DPars[
"Mz"] = 91.1875 + 0.0001 * i;
72 DPars[
"AlsMz"] = 0.1184 + 0.000001 * i;
75 DObs = CO.compute(DPars);
77 std::cout <<
"\nParameters[" << i + 1 <<
"]:"<< std::endl;
78 for (std::map<std::string, double>::iterator it = DPars.begin(); it != DPars.end(); it++) {
79 std::cout << it->first <<
" = " << it->second << std::endl;
81 std::cout <<
"\nObservables[" << i + 1 <<
"]:" << std::endl;
82 for (std::map<std::string, double>::iterator it = DObs.begin(); it != DObs.end(); it++) {
83 std::cout << it->first <<
" = " << it->second << std::endl;
88 }
catch (
const std::runtime_error& e) {
89 std::cerr << e.what() << std::endl;