8 #ifndef Vincia_VinciaWeights_H 9 #define Vincia_VinciaWeights_H 11 #include "Pythia8/Info.h" 12 #include "Pythia8/Settings.h" 13 #include "Pythia8/VinciaCommon.h" 14 #include "Pythia8/Weights.h" 34 void init(
bool doMerging )
override;
42 return iWeightIn == 0 ?
"Vincia" : varLabels[iWeightIn-1];}
45 void scaleWeightVar(vector<double> pAccept,
bool accept,
bool isHard);
58 double enhanceFac = 1.);
64 double ant(
double antIn,
double cNSIn) {
return (antIn+cNSIn);}
76 bool isInitPtr{
false};
79 static const double TINYANT, PACCEPTVARMAX, MINVARWEIGHT;
82 bool uncertaintyBands{
false};
83 vector<string> varLabels;
84 vector<vector<string> > varKeys;
85 vector<vector<double> > varVals;
88 vector<string> allKeywords;
89 map<enum AntFunType, string> antFunTypeToKeyFSR, antFunTypeToKeyISR;
90 bool doMerging{
false}, doAlphaSvar{
false}, doFiniteVar{
false};
Purely virtual base class for shower weights.
Definition: Weights.h:144
void scaleWeightVar(vector< double > pAccept, bool accept, bool isHard)
Scale the uncertainty band weights.
Definition: VinciaWeights.cc:175
void scaleWeightEnhanceReject(double pAcceptUnenhanced, double enhanceFac=1.)
Enhanced kernels: reweight if branching is rejected.
Definition: VinciaWeights.cc:208
void scaleWeightVarReject(vector< double > pAccept)
Scale the uncertainty band weights if branching is rejected.
Definition: VinciaWeights.cc:193
void scaleWeightVarAccept(vector< double > pAccept)
Scale the uncertainty band weights if branching is accepted.
Definition: VinciaWeights.cc:185
AntFunType
Enumerator for antenna function types, with "void" member NoFun.
Definition: VinciaCommon.h:66
Definition: VinciaFSR.h:582
Definition: VinciaCommon.h:494
Definition: VinciaISR.h:1060
void scaleWeightEnhanceAccept(double enhanceFac=1.)
Enhanced kernels: reweight if branching is accepted.
Definition: VinciaWeights.cc:203
Class for storing Vincia weights.
Definition: VinciaWeights.h:22
bool initPtr(Info *infoPtrIn, VinciaCommon *vinComPtrIn)
Initilize pointers.
Definition: VinciaWeights.cc:29
virtual void init()
Initialize the weights.
Definition: Weights.h:44
double ant(double antIn, double cNSIn)
Helper function for antenna function.
Definition: VinciaWeights.h:64
vector< double > weightValues
Weight values and names.
Definition: Weights.h:132
void clear() override
Reset all internal values;.
Definition: VinciaWeights.h:37
string weightLabel(int iWeightIn=0)
Access the weight labels.
Definition: VinciaWeights.h:41
Header for classes to set beam momentum and interaction vertex spread.
Definition: Analysis.h:20
int doVarNow(string keyIn, enum AntFunType antFunTypePhys, bool isFSR)
Helper function for keyword evaluation.
Definition: VinciaWeights.cc:226
Definition: Settings.h:195