PYTHIA  8.303
Public Member Functions | Friends | List of all members
VinciaWeights Class Reference

Public Member Functions

 VinciaWeights ()
 Constructor.
 
 ~VinciaWeights ()
 Destructor.
 
bool initPtr (Info *infoPtrIn, VinciaCommon *vinComPtrIn)
 Initilize pointers.
 
void init ()
 Initilize. More...
 
bool existsWeight (int iWeightIn=0)
 Check if particular weight exists.
 
double weight (int iWeightIn=0)
 
string weightLabel (int iWeightIn=0)
 Access the weight labels.
 
int nWeights ()
 Functions to access by VINCIA plugin.
 
bool reweightingOccurred ()
 
void resetWeights (int nAccepted)
 Reset the weights, to be called at the beginning of each event. More...
 
void scaleWeightAll (double scaleFacIn)
 Scale all event weights. More...
 
void scaleWeight (double scaleFacIn, int iWeightIn=0)
 Scale a particular event weight.
 
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, int iAntPhys, string type)
 Helper function for keyword evaluation. More...
 
double ant (double antIn, double cNSIn)
 Helper function for antenna function.
 
void doWeighting ()
 Main function to perform the weighting. More...
 

Friends

class VinciaFSR
 Friends for internal private members.
 
class VinciaISR
 

Member Function Documentation

int doVarNow ( string  keyIn,
int  iAntPhys,
string  type 
)

Helper function for keyword evaluation.

Check variation for all branching types.

Check variation for specific branching type.

void doWeighting ( )

Main function to perform the weighting.

Check for non-unity and negative initial weights.

Updated counters.

Always report in debugging mode.

Add weight correction to cumulative sum (!= w0 for systems in series). Take into account Pythia's weight (only != 1 for first time in event).

Contribution of current event

Add one to number of events.

Check for non-unity and negative weights due to MC violations.

Only check if wOld = 0 or if weight changed.

Update counters.

Update counters.

Always report in debugging mode.

Keep track of minimum and maximum weights.

Update the old weight.

Save uncertainty band weights.

Add weight correction to cumulative sum.

Contribution of current event.

Keep track of minimum and maximum weights.

Update old weight.

void init ( )

Initilize.

Initialize.

Check initPtr.

TODO: uncertainty bands are disabled in this version of VINCIA.

List of all keywords.

Convert iAntPhys 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.

Resize weight arrays to the relevant number of elements.

Initialize counters and flags.

Initialize weights to 0 (or 1 respectively).

void resetWeights ( int  nAccepted)

Reset the weights, to be called at the beginning of each event.

Next doWeighting call will be the first one.

No reweighting so far.

Check if Pythia/Vincia vetoed event, restore counters.

void scaleWeightAll ( double  scaleFacIn)

Scale all event weights.

Scaling functions.

void scaleWeightVar ( vector< double >  pAccept,
bool  accept,
bool  isHard 
)

Scale the uncertainty band weights.

Variations only pertain to hard process and resonance decays.

double weight ( int  iWeightIn = 0)
inline

Get weight of current event weight. Normally 1 for set 0 (user settings). Use iWeightIn > 0 to access uncertainty weights.


The documentation for this class was generated from the following files: