PYTHIA  8.311
Public Member Functions | Public Attributes | Protected Attributes | Friends | List of all members
WeightsLHEF Class Reference

#include <Weights.h>

Inheritance diagram for WeightsLHEF:
WeightsBase

Public Member Functions

void clear () override
 Reset all internal values;. More...
 
void bookVectors (vector< double > weights, vector< string > names) override
 Store the current event information. More...
 
void collectWeightValues (vector< double > &outputWeights, double norm=1.) override
 Function to return processed weights to weight container. More...
 
void collectWeightNames (vector< string > &outputNames) override
 Function to return processed weight names to weight container. More...
 
vector< string > convertNames (vector< string > names)
 
void identifyVariationsFromLHAinit (map< string, LHAweight > *weights)
 
- Public Member Functions inherited from WeightsBase
virtual void init ()
 Initialize the weights.
 
virtual void init (bool)
 
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

double centralWeight
 Central weight, needed for normalization, set from ProcessContainer.cc.
 

Protected Attributes

map< int, double > muRvars
 Renormalization variations.
 
- Protected Attributes inherited from WeightsBase
vector< double > weightValues
 Weight values and names.
 
vector< string > weightNames
 
InfoinfoPtr {}
 Pointers necessary for variation initialization.
 

Friends

class WeightsMerging
 Friends for internal protected members.
 

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

Detailed Description

This is a short example class to collect information on Les Houches Event weights into a container class that can be part of Weight, which in turn is part of Info.

Member Function Documentation

void bookVectors ( vector< double >  weights,
vector< string >  names 
)
overridevirtual

Store the current event information.

Normalize values relative to eventWeightLHEF.

Reimplemented from WeightsBase.

void clear ( )
overridevirtual

Reset all internal values;.

WeightsLHEF class.

Reset all internal values.

Reimplemented from WeightsBase.

void collectWeightNames ( vector< string > &  outputNames)
overridevirtual

Function to return processed weight names to weight container.

Attach the LHEF weights, starting with well-defined MUF and MUR variations, and then followed by any other LHEF weight.

Reimplemented from WeightsBase.

void collectWeightValues ( vector< double > &  outputWeights,
double  norm = 1. 
)
overridevirtual

Function to return processed weights to weight container.

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

Attach the LHEF weights, starting with well-defined MUF and MUR variations, and then followed by any other LHEF weight.

Done.

Reimplemented from WeightsBase.

vector< string > convertNames ( vector< string >  names)

Convert weight names in MadGraph5 convention to the convention outlined in https:///arxiv.org/pdf/1405.1067.pdf, page 162ff.

void identifyVariationsFromLHAinit ( map< string, LHAweight > *  weights)

Identify muR (and muF) variations in LHEF weights. This mapping is needed to later combine with the respective shower and merging weights.

Go through all tags of one weight

Erase leading blanks, skip irrelevant tags

Parse muF and muR

Stop if both muF and muR set

Also stop if end of contents reached

For now, only save muR values for corresponding muF=1.


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