#include <Herwig6Instance.h>
|
bool | callWithTimeout (unsigned int secs, void(*fn)()) |
|
bool | give (const std::string &line) |
|
| Herwig6Instance (CLHEP::HepRandomEngine *randomEngine=0) |
|
| Herwig6Instance (int dummy) |
|
void | openParticleSpecFile (const std::string fileName) |
|
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 76 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 190 of file Herwig6Instance.cc.
References i, getHLTprescales::index, VarParsing::mult, mergeVDriftHistosByStation::name, evf::evtn::offset(), gen::p, pos, lumiQueryAPI::q, and relativeConstraints::value.
Referenced by Herwig6Hadronizer::initialize(), gen::PomwigHadronizer::readSettings(), Herwig6Hadronizer::readSettings(), Herwig6Hadronizer::upEvnt(), and Herwig6Hadronizer::upInit().
192 typedef std::istringstream::traits_type traits;
194 const char *
p =
line.c_str(), *
q;
195 p += std::strspn(p,
" \t\r\n");
197 for(
q = p; std::isalnum(*
q);
q++);
198 std::string
name(p,
q - p);
200 const ConfigParam *param;
201 for(param = configParams; param->name; param++)
202 if (
name == param->name)
207 p =
q + std::strspn(
q,
" \t\r\n");
210 std::size_t
mult = 1;
211 for(
unsigned int i = 0;
i < 3;
i++) {
212 if (!param->dim[
i].size)
215 if (*p++ != (
i ?
',' :
'('))
218 p += std::strspn(p,
" \t\r\n");
220 for(
q = p; std::isdigit(*
q);
q++);
221 std::istringstream ss(std::string(p,
q - p));
224 if (ss.bad() || ss.peek() != traits::eof())
227 if (index < param->dim[
i].
offset)
229 index -= param->dim[
i].offset;
230 if (index >= param->dim[
i].size)
233 p =
q + std::strspn(
q,
" \t\r\n");
236 mult *= param->dim[
i].size;
239 if (param->dim[0].size) {
242 p += std::strspn(p,
" \t\r\n");
247 p += std::strspn(p,
" \t\r\n");
249 for(
q = p; *
q && (std::isalnum(*
q) || std::strchr(
".-+", *
q));
q++);
250 std::istringstream ss(std::string(p,
q - p));
252 p =
q + std::strspn(
q,
" \t\r\n");
256 switch(param->type) {
260 if (ss.bad() || ss.peek() != traits::eof())
269 if (ss.bad() || ss.peek() != traits::eof())
278 if (ss.bad() || ss.peek() != traits::eof())
281 for(std::string::iterator iter = value_.begin();
282 iter != value_.end(); ++iter)
283 *iter = std::tolower(*iter);
285 if (value_ ==
"yes" || value_ ==
"true" || value_ ==
"1")
287 else if (value_ ==
"no" || value_ ==
"false" || value_ ==
"0")
unsigned int offset(bool)
bool Herwig6Instance::hwwarn |
( |
const std::string & |
fn, |
|
|
int |
code |
|
) |
| |
|
protectedvirtual |
void Herwig6Instance::openParticleSpecFile |
( |
const std::string |
fileName | ) |
|
bool Herwig6Instance::timeout |
( |
unsigned int |
secs, |
|
|
void(*)() |
fn |
|
) |
| |
|
private |
CLHEP::HepRandomEngine* gen::Herwig6Instance::randomEngine |
|
private |
void* gen::Herwig6Instance::timeoutPrivate |
|
private |