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

#include <Weights.h>

Inheritance diagram for WeightsLHEF:
WeightsBase

Public Member Functions

void clear ()
 Reset all internal values;. More...
 
void bookVectors (vector< double > weights_detailed_vecIn, vector< string > weights_detailed_name_vecIn)
 Store the current event information. More...
 
void collectWeightValues (vector< double > &outputWeights, double norm=1.)
 Function to return processed weights to weight container. More...
 
void collectWeightNames (vector< string > &outputNames)
 Function to return processed weight names to weight container. More...
 
vector< string > weightnames_lhef2hepmc (vector< string > weights_detailed_name_vecIn)
 
void identifyVariationsFromLHAinit (map< string, LHAweight > *init_weightsIn)
 
- 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

double centralWeight
 Central weight, needed for normalization, set from ProcessContainer.cc.
 
map< int, double > muRvars
 
- 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 Les Houches Event weights into a container class that can be part of Weight, which in turn is part of InfoHub.

Member Function Documentation

void bookVectors ( vector< double >  weights_detailed_vecIn,
vector< string >  weights_detailed_name_vecIn 
)
virtual

Store the current event information.

Normalize values relative to eventWeightLHEF

Reimplemented from WeightsBase.

void clear ( )
virtual

Reset all internal values;.

WeightsLHEF class.

Reset all internal values;

Reimplemented from WeightsBase.

void collectWeightNames ( vector< string > &  outputNames)
virtual

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.

Done.

Reimplemented from WeightsBase.

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

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.

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

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.

vector< string > weightnames_lhef2hepmc ( vector< string >  weights_detailed_name_vecIn)

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


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