Go to the source code of this file.
|
| int | main (int argc, char *argv[]) |
◆ main()
| int main |
( |
int | argc, |
|
|
char * | argv[] ) |
this can throw a 'std::runtime_error'
Definition at line 10 of file mergeProphecy4f.cxx.
10 {
11
12 if(argc<5){
13 ANA_MSG_INFO(
" Prophecy4fMerger: merge Powheg and Prophecy LHE files! ");
17 ANA_MSG_INFO(
" --inProphecy4e [Prophecy4f lhe file with 4e decays]");
18 ANA_MSG_INFO(
" --inProphecy4mu [Prophecy4f lhe file with 4mu decays]");
19 ANA_MSG_INFO(
" --inProphecy2e2mu [Prophecy4f lhe file with 2e2mu decays]");
24 return 0;
25 }
26 std::string powheg, prophecy4e, prophecy4mu, prophecy2e2mu,
out;
27 unsigned long long seed = 0;
30 if(!strcmp(argv[
a],
"--inPowheg")){
32 }
33 else if(!strcmp(argv[
a],
"--inProphecy4e")){
34 prophecy4e =
argv[
a+1];
35 }
36 else if(!strcmp(argv[
a],
"--inProphecy4mu")){
37 prophecy4mu =
argv[
a+1];
38 }
39 else if(!strcmp(argv[
a],
"--inProphecy2e2mu")){
40 prophecy2e2mu =
argv[
a+1];
41 }
42 else if(!strcmp(argv[
a],
"--outLHE")){
44 }
45 else if(!strcmp(argv[
a],
"--randomSeed")){
46 seed = std::stoull(argv[
a+1]);
47 }
48 else if(!strcmp(argv[
a],
"--debug")){
50 }
51 }
52
54 merger.
setIO(powheg, prophecy4e, prophecy4mu, prophecy2e2mu, out,
debug);
56 try{
58 } catch (const std::runtime_error & e){
59 ANA_MSG_ERROR(
"Prophecy4fMerger: Exception thrown in merger.merge() step: " <<
e.what());
60 return 1;
61 }
62
63 return 0;
64
65}
void setIO(const std::string &powheg, const std::string &prophecy4e, const std::string &prophecy4mu, const std::string &prophecy2e2mu, const std::string &outlhe, bool debug)
void setRandomSeed(unsigned long long seed)