PYTHIA
8.303

#include <Weights.h>
Public Member Functions  
void  init () 
Initialize weights (more can be booked at any time) More...  
void  clear () 
Reset all internal values;. More...  
void  bookWeight (string name, double value, double valueFirst) 
Function to create a new, synchronized, pair of weight name and value.  
void  bookVectors (vector< double > weights, vector< string > names) 
Store the current event information. More...  
void  bookVectors (vector< double > weights, vector< double > weightsFirst, vector< string > names) 
double  getWeightsValue (int iPos) const 
Modified weight getter to include first order weight.  
double  getWeightsValueP (int iPos) const 
Also add getters for UNLOPSP and PC schemes.  
double  getWeightsValuePC (int iPos) const 
void  reweightValueByIndex (int iPos, double val) 
Functions to set values of weights. More...  
void  reweightValueByName (string name, double val) 
void  setValueFirstByIndex (int iPos, double val) 
Functions to set values of first order weights. More...  
void  setValueFirstByName (string name, double val) 
void  setValueVector (vector< double > ValueVector) 
Functions to set values as whole vector. More...  
void  setValueFirstVector (vector< double > ValueFirstVector) 
Set first order weight values as vector.  
vector< double >  getMuRVarFactors () 
Function telling merging which muR variations to perform. More...  
void  setLHEFvariationMapping () 
Set up mapping between LHEF variations and.  
void  collectWeightNames (vector< string > &outputNames) 
Function to collect weight names. More...  
void  collectWeightValues (vector< double > &outputWeights, double norm=1.) 
Function collecting weight values. More...  
Public Member Functions inherited from WeightsBase  
string  getWeightsName (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.  
void  setValueByIndex (int iPos, double val) 
Functions to set values of weights.  
void  setValueByName (string name, double val) 
int  findIndexOfName (string name) 
void  setPtrs (Info *infoPtrIn) 
Public Attributes  
vector< double >  weightValuesFirst 
Data member for first order weight.  
vector< double >  weightValuesP 
Data members for UNLOPSP and PC.  
vector< double >  weightValuesPC 
vector< double >  weightValuesFirstP 
vector< double >  weightValuesFirstPC 
map< int, int >  muRVarLHEFindex 
Corresponding vector with respective LHEF weight indices.  
bool  isNLO 
Boolean to memorize if LHEF weight needs to be applied (only for NLO)  
Public Attributes inherited from WeightsBase  
vector< double >  weightValues 
vector< string >  weightNames 
Info *  infoPtr 
Pointers necessary for variation initialization.  
This class collects information on weights generated in the merging framework. The first weight is always required for CKKWL, UMEPS and NLO merging. The additional weights are required for simultaneous renormalization scale variation in matrix element generation and parton shower.

virtual 
void bookVectors  (  vector< double >  weights, 
vector< double >  weightsFirst,  
vector< string >  names  
) 
Store the current event information, including first order weights for NLO merging.
Reset weight vectors

virtual 
Reset all internal values;.
WeightsMerging class.
Reset all internal values;
Reimplemented from WeightsBase.

virtual 
Function to collect weight names.
Similar function to return processed weight names.
Include scheme variation names if present
Reimplemented from WeightsBase.

virtual 
Function collecting weight values.
Function to return processed weights to weight container.
Combine with corresponding LHE variation
Check if corresponding muR variation is available
Combine with corresponding shower weight
Include scheme variation weights if present
Normalize with UNLOPS1 central merging weight, since that is collected into the nominal weight.
Combine with corresponding LHE variation
Check if corresponding muR variation is available
Combine with corresponding shower weight
Done.
Reimplemented from WeightsBase.
vector< double > getMuRVarFactors  (  ) 
Function telling merging which muR variations to perform.
Function telling merging which muR variations to perform, read from Merging:muRfactors setting.
void init  (  ) 
Initialize weights (more can be booked at any time)
Initialize merging weights.
Reset weight vectors
Initialization of all required variation weights done in MergingHooks.cc
void reweightValueByIndex  (  int  iPos, 
double  val  
) 
Functions to set values of weights.
Functions to set values of weights. Does not apply to first order weights or scheme variation weights.
void reweightValueByName  (  string  name, 
double  val  
) 
Reweigth merging weights by name. Does not apply to first order weights or scheme variation weights.
Use existing functions: Find index of name, then set by index.
void setValueFirstByIndex  (  int  iPos, 
double  val  
) 
Functions to set values of first order weights.
Functions to set values of first order weights. Does not apply to scheme variation weights.
void setValueFirstByName  (  string  name, 
double  val  
) 
Set values of first order weights by name. Does not apply to scheme variation weights.
Use existing functions: Find index of name, then set by index.
void setValueVector  (  vector< double >  ValueVector  ) 
Functions to set values as whole vector.
Set values as whole vector.