7 #ifndef Pythia8_FlavorVariations_H 8 #define Pythia8_FlavorVariations_H 11 #include "Pythia8/Pythia.h" 26 settings.parm(
"StringFlav:ProbQQtoQ"),
27 settings.parm(
"StringFlav:ProbStoUD"),
28 settings.parm(
"StringFlav:ProbSQtoQQ"),
29 settings.parm(
"StringFlav:ProbQQ1toQQ0")) {}
37 pythia.
settings.parm(
"StringFlav:ProbQQtoQ", xi);
38 pythia.
settings.parm(
"StringFlav:ProbStoUD", rho);
39 pythia.
settings.parm(
"StringFlav:ProbSQtoQQ", x);
40 pythia.
settings.parm(
"StringFlav:ProbQQ1toQQ0", y);
41 pythia.
settings.addMVec(key, vector<int>(14, 0),
false,
false, 0, 0);
46 vector<int>
read(
string breaks) {
49 string write(
const vector<int>& breaks) {
51 for (
const int& val : breaks) out +=
toString(val) +
",";
52 return out.substr(0, out.length() - 1) +
"}";}
55 vector<double>
parms(
double xi,
double rho,
double x,
double y) {
56 return pythia.
info.weightContainerPtr
60 double weight(
const vector<double>&
parms,
const vector<int>& breaks) {
61 return pythia.
info.weightContainerPtr
70 string key{
"VariationFrag:breaks"};
FlavorVariations(double xi, double rho, double x, double y)
Constructor, given the default base parameters.
Definition: FlavorVariations.h:32
double flavWeight(const vector< double > &parms)
Calculate a flavor weight.
Definition: Weights.h:390
bool flag(string keyIn)
Give back current value, with check that key exists.
Definition: Settings.cc:1599
vector< int > read(string breaks)
Read and write string break counts.
Definition: FlavorVariations.h:46
WeightsFragmentation weightsFragmentation
Fragmentation weights.
Definition: Weights.h:460
Settings settings
Settings: databases of flags/modes/parms/words to control run.
Definition: Pythia.h:374
bool init()
Initialize.
Definition: Pythia.cc:402
bool readString(string line, bool warn=true, int subrun=SUBRUNDEFAULT)
Read in one update from a single line.
Definition: Settings.cc:384
string toString(bool val)
Convert a boolean to a string.
Definition: PythiaStdlib.h:217
Definition: FlavorVariations.h:20
double weight(const vector< double > &parms, const vector< int > &breaks)
Calculate the weight.
Definition: FlavorVariations.h:60
FlavorVariations(Settings &settings)
Constructor, given an intialized Pythia object.
Definition: FlavorVariations.h:25
vector< double > flavParms(double xi, double rho, double x, double y)
Calculate the derived flavor parameters.
Definition: Weights.cc:849
Header for classes to set beam momentum and interaction vertex spread.
Definition: Analysis.h:20
The Pythia class contains the top-level routines to generate an event.
Definition: Pythia.h:71
const Info & info
Public information and statistic on the generation.
Definition: Pythia.h:368
vector< double > parms(double xi, double rho, double x, double y)
Calculate the derived parameters.
Definition: FlavorVariations.h:55
Definition: Settings.h:196