Go to the source code of this file.
|
| int | main (int argc, char **argv) |
| |
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
- Examples
- EventGeneration.cpp, libmode_config.cpp, libmode_header.cpp, MCMC.cpp, and myModel_MCMC.cpp.
Definition at line 22 of file Doxygen/examples-src/EventGeneration/EventGeneration.cpp.
27 MPI_Init(&argc, &argv);
29 MPI_Comm_rank(MPI_COMM_WORLD, &rank);
39 if (rank == 0) std::cout <<
"\nusage: " << argv[0] <<
" ModelConf.conf nEvents [OutputFolder]\n" << std::endl;
49 std::string ModelConf = argv[1];
52 int nIterations = atoi(argv[2]);
55 std::string outputFolder =
"";
56 if(argc == 4) outputFolder = argv[3];
65 std::string JobTag =
"";
78 GenerateEvent GE(ModelF, ThObsF, ModelConf, outputFolder, JobTag);
81 GE.generate(nIterations, seed, weight);
89 }
catch (
const std::runtime_error& e) {
90 std::cerr << e.what() << std::endl;