5#ifndef PYTHIA8_USERHOOKS_USERSETTING_H
6#define PYTHIA8_USERHOOKS_USERSETTING_H
8#include "Pythia8/Settings.h"
21 UserSetting(
const std::string & name,
const T & defaultValue):
35 if(
m_settingsPtr == 0 && settingsPtr == 0)
throw std::runtime_error(
"settingsPtr is not yet initialised!");
64 throw std::runtime_error(
"UserSetting " +
m_paramName +
" does not exist!");
71 throw std::runtime_error(
"UserSetting " +
m_paramName +
" does not exist!");
79 throw std::runtime_error(
"UserSetting " +
m_paramName +
" does not exist!");
88 throw std::runtime_error(
"UserSetting " +
m_paramName +
" does not exist!");
static std::map< std::string, T > & userSettings()
Pythia8::Settings * m_settingsPtr
T operator()(Pythia8::Settings *settingsPtr)
UserSetting(const std::string &name, const T &defaultValue)
Some common functions for determining pTs and navigating event records for the PoWHEG + Pythia user h...