#include <Herwig6Instance.h>
|
bool | callWithTimeout (unsigned int secs, void(*fn)()) |
|
bool | give (const std::string &line) |
|
| Herwig6Instance (CLHEP::HepRandomEngine *randomEngine=0) |
|
| Herwig6Instance (int dummy) |
|
virtual | ~Herwig6Instance () |
|
void | call (void(&fn)()) |
|
template<typename T > |
T | call (T(&fn)()) |
|
template<typename A > |
void | call (void(&fn)(A), A a) |
|
template<typename T , typename A > |
T | call (T(&fn)(A), A a) |
|
template<typename A1 , typename A2 > |
void | call (void(&fn)(A1, A2), A1 a1, A2 a2) |
|
template<typename T , typename A1 , typename A2 > |
T | call (T(&fn)(A1, A2), A1 a1, A2 a2) |
|
virtual void | enter () |
|
| FortranInstance () |
|
virtual void | leave () |
|
virtual void | upEvnt () |
|
virtual void | upInit () |
|
virtual bool | upVeto () |
|
virtual | ~FortranInstance () |
|
|
virtual bool | hwwarn (const std::string &fn, int code) |
|
|
bool | timeout (unsigned int secs, void(*fn)()) |
|
Definition at line 16 of file Herwig6Instance.h.
Herwig6Instance::Herwig6Instance |
( |
CLHEP::HepRandomEngine * |
randomEngine = 0 | ) |
|
Definition at line 61 of file Herwig6Instance.cc.
CLHEP::HepRandomEngine & getEngineReference()
CLHEP::HepRandomEngine * randomEngine
Herwig6Instance::Herwig6Instance |
( |
int |
dummy | ) |
|
Herwig6Instance::~Herwig6Instance |
( |
| ) |
|
|
virtual |
static void gen::Herwig6Instance::_timeout_sighandler |
( |
int |
signr | ) |
|
|
staticprivate |
bool gen::Herwig6Instance::callWithTimeout |
( |
unsigned int |
secs, |
|
|
void(*)() |
fn |
|
) |
| |
|
inline |
bool Herwig6Instance::give |
( |
const std::string & |
line | ) |
|
Definition at line 175 of file Herwig6Instance.cc.
References i, getHLTprescales::index, VarParsing::mult, AlCaRecoCosmics_cfg::name, evf::evtn::offset(), gen::p, pos, lumiQueryAPI::q, and relativeConstraints::value.
Referenced by Herwig6Hadronizer::initialize(), gen::PomwigHadronizer::initializeForInternalPartons(), Herwig6Hadronizer::upEvnt(), and Herwig6Hadronizer::upInit().
177 typedef std::istringstream::traits_type traits;
179 const char *
p =
line.c_str(), *
q;
180 p += std::strspn(p,
" \t\r\n");
182 for(
q = p; std::isalnum(*
q);
q++);
183 std::string
name(p,
q - p);
185 const ConfigParam *param;
186 for(param = configParams; param->name; param++)
187 if (
name == param->name)
192 p =
q + std::strspn(
q,
" \t\r\n");
195 std::size_t
mult = 1;
196 for(
unsigned int i = 0;
i < 3;
i++) {
197 if (!param->dim[
i].size)
200 if (*p++ != (
i ?
',' :
'('))
203 p += std::strspn(p,
" \t\r\n");
205 for(
q = p; std::isdigit(*
q);
q++);
206 std::istringstream ss(std::string(p,
q - p));
209 if (ss.bad() || ss.peek() != traits::eof())
212 if (index < param->dim[
i].
offset)
214 index -= param->dim[
i].offset;
215 if (index >= param->dim[
i].size)
218 p =
q + std::strspn(
q,
" \t\r\n");
221 mult *= param->dim[
i].size;
224 if (param->dim[0].size) {
227 p += std::strspn(p,
" \t\r\n");
232 p += std::strspn(p,
" \t\r\n");
234 for(
q = p; *
q && (std::isalnum(*
q) || std::strchr(
".-+", *
q));
q++);
235 std::istringstream ss(std::string(p,
q - p));
237 p =
q + std::strspn(
q,
" \t\r\n");
241 switch(param->type) {
245 if (ss.bad() || ss.peek() != traits::eof())
254 if (ss.bad() || ss.peek() != traits::eof())
263 if (ss.bad() || ss.peek() != traits::eof())
266 for(std::string::iterator iter = value_.begin();
267 iter != value_.end(); ++iter)
268 *iter = std::tolower(*iter);
270 if (value_ ==
"yes" || value_ ==
"true" || value_ ==
"1")
272 else if (value_ ==
"no" || value_ ==
"false" || value_ ==
"0")
unsigned int offset(bool)
bool Herwig6Instance::hwwarn |
( |
const std::string & |
fn, |
|
|
int |
code |
|
) |
| |
|
protectedvirtual |
bool Herwig6Instance::timeout |
( |
unsigned int |
secs, |
|
|
void(*)() |
fn |
|
) |
| |
|
private |
CLHEP::HepRandomEngine* gen::Herwig6Instance::randomEngine |
|
private |
void* gen::Herwig6Instance::timeoutPrivate |
|
private |