#include <GeneratorInput.h>
Definition at line 134 of file GeneratorInput.h.
AlpgenHooks::AlpgenHooks |
( |
Pythia8::Pythia & |
pythia | ) |
|
Definition at line 853 of file GeneratorInput.cc.
References LHAagPtr.
856 string agFile = pythia.settings.word(
"Alpgen:file");
857 if (agFile !=
"void") {
859 pythia.settings.mode(
"Beams:frameType", 5);
AlpgenHooks::~AlpgenHooks |
( |
| ) |
|
|
inline |
bool AlpgenHooks::initAfterBeams |
( |
| ) |
|
Definition at line 872 of file GeneratorInput.cc.
References AlpgenPar::getParam(), AlpgenPar::getParamAsInt(), AlpgenPar::haveParam(), max(), AlpgenPar::parse(), and AlpgenPar::printParams().
Referenced by JetMatchingAlpgenInputAlpgen::initAfterBeams(), and JetMatchingMadgraphInputAlpgen::initAfterBeams().
875 bool setMasses = settingsPtr->flag(
"Alpgen:setMasses");
876 bool setNjet = settingsPtr->flag(
"Alpgen:setNjet");
877 bool setMLM = settingsPtr->flag(
"Alpgen:setMLM");
881 string parStr = infoPtr->header(
"AlpgenPar");
882 if (!parStr.empty()) {
889 if (par.haveParam(
"mc")) particleDataPtr->m0(4, par.getParam(
"mc"));
890 if (par.haveParam(
"mb")) particleDataPtr->m0(5, par.getParam(
"mb"));
891 if (par.haveParam(
"mt")) particleDataPtr->m0(6, par.getParam(
"mt"));
892 if (par.haveParam(
"mz")) particleDataPtr->m0(23, par.getParam(
"mz"));
893 if (par.haveParam(
"mw")) particleDataPtr->m0(24, par.getParam(
"mw"));
894 if (par.haveParam(
"mh")) particleDataPtr->m0(25, par.getParam(
"mh"));
899 if (par.haveParam(
"njets"))
900 settingsPtr->mode(
"JetMatching:nJet", par.getParamAsInt(
"njets"));
902 infoPtr->errorMsg(
"Warning in AlpgenHooks:init: "
903 "no ALPGEN nJet parameter found");
908 if (par.haveParam(
"ptjmin") && par.haveParam(
"drjmin") &&
909 par.haveParam(
"etajmax")) {
910 double ptjmin = par.getParam(
"ptjmin");
911 ptjmin =
max(ptjmin + 5., 1.2 * ptjmin);
912 settingsPtr->parm(
"JetMatching:eTjetMin", ptjmin);
913 settingsPtr->parm(
"JetMatching:coneRadius", par.getParam(
"drjmin"));
914 settingsPtr->parm(
"JetMatching:etaJetMax", par.getParam(
"etajmax"));
918 infoPtr->errorMsg(
"Warning in AlpgenHooks:init: "
919 "no ALPGEN merging parameters found");
const T & max(const T &a, const T &b)