#include <GeneratorInput.h>
|
static string | trim (string s) |
|
Definition at line 33 of file GeneratorInput.h.
AlpgenPar::AlpgenPar |
( |
Pythia8::Info * |
infoPtrIn = NULL | ) |
|
|
inline |
void AlpgenPar::extractRunParam |
( |
string |
line | ) |
|
Definition at line 62 of file GeneratorInput.cc.
References customizeTrackingMonitorSeedNumber::idx, and nevent.
66 if (idx == string::npos)
return;
67 string paramName =
trim(
line.substr(idx + 1));
68 string paramVal =
trim(
line.substr(0, idx));
69 istringstream iss(paramVal);
73 if (paramName ==
"hard process code") {
79 }
else if (paramName.find(
"Crosssection") == 0) {
88 }
else if (paramName.find(
"unwtd events") == 0) {
97 }
else if (paramName.find(
",") != string::npos) {
101 istringstream issName(paramName);
102 while (getline(issName, paramNameNow,
',')) {
105 params[paramNameNow] = val;
111 iss >> paramIdx >> val;
map< string, double > params
void warnParamOverwrite(const string ¶mIn, double val)
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
static string trim(string s)
double AlpgenPar::getParam |
( |
const string & |
paramIn | ) |
|
|
inline |
int AlpgenPar::getParamAsInt |
( |
const string & |
paramIn | ) |
|
|
inline |
bool AlpgenPar::haveParam |
( |
const string & |
paramIn | ) |
|
|
inline |
bool AlpgenPar::parse |
( |
const string |
paramStr | ) |
|
void AlpgenPar::printParams |
( |
| ) |
|
Definition at line 121 of file GeneratorInput.cc.
References gather_cfg::cout.
Referenced by AlpgenHooks::initAfterBeams().
124 cout << fixed << setprecision(3) << endl
125 <<
" *------- Alpgen parameters -------*" << endl;
126 for (map < string, double >::iterator it =
params.begin();
128 cout <<
" | " << left << setw(13) << it->first
129 <<
" | " << right << setw(13) << it->second
131 cout <<
" *-----------------------------------*" << endl;
map< string, double > params
string AlpgenPar::trim |
( |
string |
s | ) |
|
|
staticprivate |
Definition at line 152 of file GeneratorInput.cc.
References i, and alignCSCRings::s.
156 if ((i =
s.find_last_not_of(
" \t\r\n")) != string::npos)
157 s =
s.substr(0, i + 1);
158 if ((i =
s.find_first_not_of(
" \t\r\n")) != string::npos)
void AlpgenPar::warnParamOverwrite |
( |
const string & |
paramIn, |
|
|
double |
val |
|
) |
| |
|
private |
Definition at line 138 of file GeneratorInput.cc.
References funct::abs().
144 "warnParamOverwrite: overwriting existing parameter", paramIn);
double getParam(const string ¶mIn)
Abs< T >::type abs(const T &t)
static const double ZEROTHRESHOLD
bool haveParam(const string ¶mIn)
Pythia8::Info* AlpgenPar::infoPtr |
|
private |
map<string,double> AlpgenPar::params |
|
private |
const double AlpgenPar::ZEROTHRESHOLD = 1e-10 |
|
staticprivate |