//-------------------------------------------------------------------------- // // Environment: // This software is part of the EvtGen package. If you use all or part // of it, please give an appropriate acknowledgement. // // Copyright Information: See EvtGen/COPYRIGHT // Copyright (C) 2012 University of Warwick, UK // // Module: EvtPythia6CommandConverter // // Description: Function to replace Pythia 6 commands with the // corresponding Pythia 8 commands. // // Modification history: // // Daniel Craik March 2012 Module created // //------------------------------------------------------------------------ #include "EvtGenExternal/EvtPythia6CommandConverter.hh" #include "EvtGenBase/EvtReport.hh" #include #include using std::endl; std::vector convertPythia6Command(Command command) { std::string module = command["MODULE"]; std::string param = command["PARAM"]; std::string value = command["VALUE"]; std::vector commandStrings; if(module == "MSTJ") { switch(atoi(param.c_str())) { //1,2,3 case 11: switch(atoi(value.c_str())) { case 3: commandStrings.push_back("StringZ:usePetersonC = on"); commandStrings.push_back("StringZ:usePetersonB = on"); commandStrings.push_back("StringZ:usePetersonH = on"); break; case 1: case 4: report(ERROR,"EvtGen")<<"Pythia6 parameter: MSTJ(11)="<