PYTHIA  8.312
Public Types | Public Member Functions | Public Attributes | List of all members
WeightsFragmentation Class Reference

#include <Weights.h>

Inheritance diagram for WeightsFragmentation:
WeightsBase

Public Types

enum  FactIndex { Z, Flav, PT }
 Factorization indices.
 

Public Member Functions

void init () override
 Initialize the weights. More...
 
int nWeightGroups () const
 
string getGroupName (int iGN) const
 
double getGroupWeight (int iGW) const
 Return group weight.
 
void collectWeightNames (vector< string > &outputNames) override
 Collect shower weight names. More...
 
void collectWeightValues (vector< double > &outputWeights, double norm=1.) override
 Collect shower weight values.
 
- Public Member Functions inherited from WeightsBase
virtual void init (bool)
 
virtual void clear ()
 Reset all internal values.
 
virtual void bookVectors (vector< double > weights, vector< string > 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.
 

Public Attributes

vector< map< vector< double >, int > > weightParms {}
 Vectors for weight group handling.
 
vector< string > externalGroupNames {}
 
vector< vector< int > > externalMap {}
 

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
 
InfoinfoPtr {}
 Pointers necessary for variation initialization.
 

Detailed Description

This is class to collect information on fragmentation weighting, and is in turn part of Info.

Member Function Documentation

void collectWeightNames ( vector< string > &  outputNames)
overridevirtual

Collect shower weight names.

Functions to return processed weights to weight container, e.g. if weights should be combined before proceeding.

Reimplemented from WeightsBase.

void init ( )
overridevirtual

Initialize the weights.

WeightsFragmentation class.

Fragmentation variations initialization.

Initialize a flavor selector.

Read weight groups into a dictionary.

Define the ordering of the parameters and key mapping.

Create a map from variation keys to standard keys.

Store the baseline parameters.

Loop over the groups and determine the parameter variations.

Set the parameter variations for a group.

Map the group parameters to factorized parameters.

Transform flavor parameters if needed.

Set the standard parameters.

Check if this is a new factorized variation.

Reimplemented from WeightsBase.


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