PYTHIA  8.303
Public Member Functions | Public Attributes | List of all members
WeightsSimpleShower Class Reference

#include <Weights.h>

Inheritance diagram for WeightsSimpleShower:
WeightsBase

Public Member Functions

void init (bool doMerging)
 Initialize weights (more can be booked at any time) More...
 
void clear ()
 Reset all internal values;. More...
 
void bookVectors (vector< double > weights, vector< string > names)
 Store the current event information.
 
void reweightValueByIndex (int iPos, double val)
 Functions to set values of weights.
 
void reweightValueByName (string name, double val)
 
void replaceWhitespace (vector< string > &namesIn)
 
string getGroupName (int iGN) const
 Return group name (want to integrate this in weightNameVector?) More...
 
double getGroupWeight (int iGW) const
 Return group weight (want to integrate this in weightValueVector?) More...
 
int nVariationGroups () const
 
void initAutomatedVariationGroups (bool=false)
 Initialize the weight group structure. More...
 
vector< string > getUniqueShowerVars ()
 Return list of atomic weight variations to be performed by shower. More...
 
string getInitialName (int iG) const
 
vector< double > getMuRWeightVector ()
 Get vector of muR weight combinations (isr & fsr) needed by merging. More...
 
void collectWeightNames (vector< string > &outputNames)
 Collect shower weight names.
 
void collectWeightValues (vector< double > &outputWeights, double norm=1.)
 Collect shower weight values.
 
- Public Member Functions inherited from WeightsBase
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.
 
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

map< int, double > varPDFplus
 Variations that must be known by TimeShower and Spaceshower.
 
map< int, double > varPDFminus
 
map< int, double > varPDFmember
 
vector< string > externalVariations
 Vectors for weight group handling.
 
vector< vector< string > > externalVarNames
 
vector< string > externalGroupNames
 
vector< string > initialNameSave
 
vector< vector< int > > externalMap
 
int externalVariationsSize {}
 
vector< vector< string > > mergingVarNames
 Vector for merging requested weight handling.
 
- Public Attributes inherited from WeightsBase
vector< double > weightValues
 
vector< string > weightNames
 
InfoinfoPtr
 Pointers necessary for variation initialization.
 

Detailed Description

This is a short example class to collect information on parton shower weights into a container class that can be part of Weight, which in turn is part of InfoHub.

Member Function Documentation

void clear ( )
virtual

Reset all internal values;.

WeightsSimpleShower class.

Reset all internal values

Reimplemented from WeightsBase.

string getGroupName ( int  iGN) const

Return group name (want to integrate this in weightNameVector?)

Return weight group name.

double getGroupWeight ( int  iGW) const

Return group weight (want to integrate this in weightValueVector?)

Return weight group value.

vector< double > getMuRWeightVector ( )

Get vector of muR weight combinations (isr & fsr) needed by merging.

Normalize... even though variations should be relative

vector< string > getUniqueShowerVars ( )

Return list of atomic weight variations to be performed by shower.

Get uncertainty variations from Settings (as list of strings to parse).

Parse each string in uVars to look for recognized keywords.

Convert to lowercase (to be case-insensitive). Also remove extra spaces, so everything is mapped to "key=value"

Also attach weights needed for merging

void init ( bool  doMerging)

Initialize weights (more can be booked at any time)

Initialize shower weights.

Empty weight vector, relevant to avoid double init of ISR variations

Remember the nominal weight, since this might be needed for splitting enhancement hanlding.

Force shower variations if needed by merging but not requested by user

In this case, also empty requested variations, to not do default ones

Assemble shower variation strings needed for merging

void initAutomatedVariationGroups ( bool  isISR = false)

Initialize the weight group structure.

Uncertainty variations initialization.

Remove initial blank spaces

Search for pdf:family keyword for SpaceShower

void replaceWhitespace ( vector< string > &  namesIn)

Replace whitespace with underscore in wieght names, so that the names transferred to HepMC do not contain whitespace.

void reweightValueByName ( string  name,
double  val 
)

Use existing functions: Find index of name, then set by index.


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