11 std::map<std::string, const ICreator*>::const_iterator it =
s_creators().find(name);
13 throw std::runtime_error(
"Pythia 8 UserHooksFactory: cannot create user hook " + name);
15 return it->second->create();
20 static std::map<std::string, const UserHooksFactory::ICreator*> creators;
26 static std::map<std::string, double> settings;
32 static std::map<std::string, int> settings;
38 static std::map<std::string, bool> settings;
45 static std::map<std::string, std::string> settings;
51 static std::map<std::string, double> params;
56 static std::map<std::string, bool> flags;
62 static std::map<std::string, int> modes;
67 static std::map<std::string, std::string> words;
static std::map< std::string, T > & userSettings()
static UserHooks * create(const std::string &hookName)
static std::map< std::string, const ICreator * > & s_creators()
static function to instantiate map of string name Vs. creator object on first use
Some common functions for determining pTs and navigating event records for the PoWHEG + Pythia user h...
std::map< std::string, bool > & userFlags()
std::map< std::string, std::string > & userWords()
std::map< std::string, int > & userModes()
std::map< std::string, double > & userParams()