PYTHIA  8.311
Public Member Functions | Public Attributes | List of all members
DireWeightContainer Class Reference

Container for all shower weights, including handling. More...

#include <DireWeightContainer.h>

Public Member Functions

 DireWeightContainer ()
 Constructor.
 
 DireWeightContainer (Settings *settingsPtrIn)
 
void init ()
 Initialize weights.
 
void setup ()
 Container for all shower weights, including handling. More...
 
void initPtrs (BeamParticle *beamAIn, BeamParticle *beamBIn, Settings *settingsPtrIn, Info *infoPtrIn, DireInfo *direInfoPtrIn)
 
void reset ()
 Reset current accept/reject probabilities.
 
void clear ()
 
void bookWeightVar (string varKey, bool checkSettings=true)
 Function to initialize new maps for a new shower variation.
 
ulong key (double a)
 
double dkey (ulong a)
 
void setWeight (string varKey, double value)
 
void resetAcceptWeight (double pT2key, double value, string varKey)
 
void resetRejectWeight (double pT2key, double value, string varKey)
 
void eraseAcceptWeight (double pT2key, string varKey)
 
void eraseRejectWeight (double pT2key, string varKey)
 
double getAcceptWeight (double pT2key, string varKey)
 
double getRejectWeight (double pT2key, string varKey)
 
void insertWeights (map< double, double > aWeight, multimap< double, double > rWeight, string varKey)
 Attach accept/reject probabilities for a proposed shower step. More...
 
void calcWeight (double pT2, bool includeAcceptAtPT2=true, bool includeRejectAtPT2=false)
 Function to calculate the weight of the shower evolution step. More...
 
pair< double, double > getWeight (double pT2, string valKey="base")
 Function to calculate the weight of the shower evolution step. More...
 
double getShowerWeight (string valKey="base")
 Function to return weight of the shower evolution. More...
 
unordered_map< string, double > * getShowerWeights ()
 
double sizeWeights () const
 
string weightName (int i) const
 
double sizeWeightgroups () const
 
string weightgroupName (int i) const
 
double enhanceOverestimate (string name)
 Returns additional user-supplied enhancements factors.
 
double getTrialEnhancement (double pT2key)
 
void clearTrialEnhancements ()
 
void addTrialEnhancement (double pT2key, double value)
 
bool hasME (vector< int > in_pdgs=vector< int >(), vector< int > out_pdgs=vector< int >())
 
bool hasME (const Event &event)
 
double getME (const Event &event)
 

Public Attributes

string card
 MG5 matrix element access.
 
ExternalMEsPtr matrixElements {}
 
bool hasMEs
 

Detailed Description

Container for all shower weights, including handling.

Member Function Documentation

void calcWeight ( double  pT2,
bool  includeAcceptAtPT2 = true,
bool  includeRejectAtPT2 = false 
)

Function to calculate the weight of the shower evolution step.

Loop though weights.

Set accept weight.

Now multiply rejection weights.

Remember weights

double getShowerWeight ( string  valKey = "base")
inline

Function to return weight of the shower evolution.

First try to return an individual shower weight indexed by "valKey".

If not possible, return a product of shower weights indexed by "valKey".

Loop through group of weights and combine all weights into one weight.

Done.

pair< double, double > getWeight ( double  pT2,
string  valKey = "base" 
)

Function to calculate the weight of the shower evolution step.

Set accept weight.

Now multiply rejection weights.

Now multiply rejection weights.

Remember weights

Diagnostic messages.

Done.

void insertWeights ( map< double, double >  aWeight,
multimap< double, double >  rWeight,
string  varKey 
)

Attach accept/reject probabilities for a proposed shower step.

New accept weights.

New reject weights.

ulong key ( double  a)
inline

To avoid rounding problems, maps will be indexed with long keys. Round double inputs to four decimals, as long will should be >10 digits.

void setup ( )

Container for all shower weights, including handling.

Clear everything.

Initialize MG5 MEs interface.

Initialize additional user-defined enhancements of splitting kernel overestimates.

QCD FSR

QCD ISR

QED FSR

QED ISR

EW FSR

New U(1) FSR

New U(1) ISR

Down-variations of renormalization scale.

Up-variations of renormalization scale.

PDF variations.

ME variations.

Remember groups of weights that should be combined into one weight. vector<string> group; group = createvector<string>("Variations:muRfsrUp") ("Variations:muRisrUp"); weightCombineList.insert ( make_pair("scaleUp", group) ); weightCombineListNames.push_back ("scaleUp"); group = createvector<string>("Variations:muRfsrDown") ("Variations:muRisrDown"); weightCombineList.insert ( make_pair("scaleDown", group) ); weightCombineListNames.push_back ("scaleDown");


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