PYTHIA
8.312
|
Class for storing Vincia weights. More...
#include <VinciaWeights.h>
Public Member Functions | |
bool | initPtr (Info *infoPtrIn, VinciaCommon *vinComPtrIn) |
Initilize pointers. | |
void | init (bool doMerging) override |
Initialize. More... | |
void | clear () override |
Reset all internal values;. | |
string | weightLabel (int iWeightIn=0) |
Access the weight labels. | |
void | scaleWeightVar (vector< double > pAccept, bool accept, bool isHard) |
Scale the uncertainty band weights. More... | |
void | scaleWeightVarAccept (vector< double > pAccept) |
Scale the uncertainty band weights if branching is accepted. | |
void | scaleWeightVarReject (vector< double > pAccept) |
Scale the uncertainty band weights if branching is rejected. | |
void | scaleWeightEnhanceAccept (double enhanceFac=1.) |
Enhanced kernels: reweight if branching is accepted. | |
void | scaleWeightEnhanceReject (double pAcceptUnenhanced, double enhanceFac=1.) |
Enhanced kernels: reweight if branching is rejected. | |
int | doVarNow (string keyIn, enum AntFunType antFunTypePhys, bool isFSR) |
Helper function for keyword evaluation. More... | |
double | ant (double antIn, double cNSIn) |
Helper function for antenna function. | |
Public Member Functions inherited from WeightsShower | |
void | init (bool) override |
Initialize weights (more can be booked at any time) | |
virtual void | initWeightGroups (bool=false) |
Weight "groups" (combinations of one or more unique weights). | |
virtual int | nWeightGroups () const |
virtual string | getGroupName (int) const |
virtual double | getGroupWeight (int) const |
Public Member Functions inherited from WeightsBase | |
virtual void | init () |
Initialize the weights. | |
virtual void | bookVectors (vector< double > weights, vector< string > names) |
virtual void | collectWeightValues (vector< double > &outputWeights, double norm=1.) |
WeightsBase class. More... | |
virtual void | collectWeightNames (vector< string > &outputNames) |
Similar function to return processed weight names. | |
string | getWeightsName (int iPos) const |
virtual double | getWeightsValue (int iPos) const |
int | getWeightsSize () const |
void | bookWeight (string name, double defaultValue=1.) |
Function to create a new, synchronized, pair of weight name and value. More... | |
void | setValueByIndex (int iPos, double val) |
Functions to set values of weights. | |
void | setValueByName (string name, double val) |
virtual void | reweightValueByIndex (int iPos, double val) |
Functions to reweight weight values, by index or by name. | |
virtual void | reweightValueByName (string name, double val) |
int | findIndexOfName (string name) |
void | setPtrs (Info *infoPtrIn) |
Set the pointers. | |
Friends | |
class | VinciaFSR |
Friends for internal private members. | |
class | VinciaISR |
Additional Inherited Members | |
Protected Member Functions inherited from WeightsBase | |
void | parse (string wvecKey, map< string, map< string, double > > &dct) |
Parse a WVec of variations into a dictionary. More... | |
Protected Attributes inherited from WeightsBase | |
vector< double > | weightValues |
Weight values and names. | |
vector< string > | weightNames |
Info * | infoPtr {} |
Pointers necessary for variation initialization. | |
Class for storing Vincia weights.
int doVarNow | ( | string | keyIn, |
enum AntFunType | antFunTypePhys, | ||
bool | isFSR | ||
) |
Helper function for keyword evaluation.
Check variation for all branching types.
Check variation for specific branching type.
|
overridevirtual |
Initialize.
Check initPtr.
Merging on/off ?
List of all keywords recognised by Vincia.
Convert antFunTypePhys to keyword.
Clean up the names of requested variations.
Parse names of requested variations and check for keywords.
Safety check for non-sensible input.
Check input keywords against known ones.
If a weight with this name does not yet exist, book one.
Reimplemented from WeightsBase.
void scaleWeightVar | ( | vector< double > | pAccept, |
bool | accept, | ||
bool | isHard | ||
) |
Scale the uncertainty band weights.
Scaling functions. They determine what needs to be done, to which weight(s), and then call the relevant base class method: reweightValueByIndex.
Variations only pertain to hard process and resonance decays.