8using namespace asg::msgUserCode;
10int main(
int argc,
char*argv[]){
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]");
26 std::string powheg, prophecy4e, prophecy4mu, prophecy2e2mu, out;
27 unsigned long long seed = 0;
29 for(
int a=1;
a<argc;
a++){
30 if(!strcmp(argv[
a],
"--inPowheg")){
33 else if(!strcmp(argv[
a],
"--inProphecy4e")){
34 prophecy4e = argv[
a+1];
36 else if(!strcmp(argv[
a],
"--inProphecy4mu")){
37 prophecy4mu = argv[
a+1];
39 else if(!strcmp(argv[
a],
"--inProphecy2e2mu")){
40 prophecy2e2mu = argv[
a+1];
42 else if(!strcmp(argv[
a],
"--outLHE")){
45 else if(!strcmp(argv[
a],
"--randomSeed")){
46 seed = std::stoull(argv[
a+1]);
48 else if(!strcmp(argv[
a],
"--debug")){
54 merger.
setIO(powheg, prophecy4e, prophecy4mu, prophecy2e2mu, out,
debug);
58 }
catch (
const std::runtime_error & e){
59 ANA_MSG_ERROR(
"Prophecy4fMerger: Exception thrown in merger.merge() step: " << e.what());
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)