herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
Herwig::Hw7Selector Class Reference

The Hw7Selector class selects the hadrons produced in cluster decay using the Herwig variant of the cluster model. More...

#include <Hw7Selector.h>

Inheritance diagram for Herwig::Hw7Selector:

Public Member Functions

 Hw7Selector ()
 The default constructor.
 
virtual PDPtr makeDiquark (tcPDPtr par1, tcPDPtr par2)
 Return the particle data of the diquark (anti-diquark) made by the two quarks (antiquarks) par1, par2.
 
- Public Member Functions inherited from Herwig::HadronSelector
 HadronSelector (unsigned int)
 The default constructor.
 
virtual tcPDPair chooseHadronPair (const Energy cluMass, tcPDPtr par1, tcPDPtr par2) const
 Method to return a pair of hadrons given the PDG codes of two or three constituents.
 
tcPDPtr chooseSingleHadron (tcPDPtr par1, tcPDPtr par2, Energy mass) const
 Select the single hadron for a cluster decay return null pointer if not a single hadron decay.
 
tcPDPair lightestHadronPair (tcPDPtr ptr1, tcPDPtr ptr2) const
 This returns the lightest pair of hadrons given by the flavours.
 
Energy massLightestHadronPair (tcPDPtr ptr1, tcPDPtr ptr2) const
 Returns the mass of the lightest pair of hadrons with the given particles.
 
tcPDPtr lightestHadron (tcPDPtr ptr1, tcPDPtr ptr2) const
 Returns the lightest hadron formed by the given particles.
 
vector< pair< tcPDPtr, double > > hadronsBelowThreshold (Energy threshold, tcPDPtr ptr1, tcPDPtr ptr2) const
 Returns the hadrons below the constituent mass threshold formed by the given particles, together with their total weight.
 
Energy massLightestHadron (tcPDPtr ptr1, tcPDPtr ptr2) const
 Return the nominal mass of the hadron returned by lightestHadron()
 
double pwt (long pid) const
 Access the parton weights.
 
virtual std::tuple< bool, bool, bool > selectBaryon (const Energy cluMass, tcPDPtr par1, tcPDPtr par2) const
 Force baryon/meson selection.
 
virtual double strangeWeight (const Energy cluMass, tcPDPtr par1, tcPDPtr par2) const
 Strange quark weight.
 
virtual PDPtr makeDiquark (tcPDPtr par1, tcPDPtr par2)
 Return the particle data of the diquark (anti-diquark) made by the two quarks (antiquarks) par1, par2.
 
void persistentOutput (PersistentOStream &os) const
 Function used to write out object persistently.
 
void persistentInput (PersistentIStream &is, int version)
 Function used to read in object persistently.
 
- Public Member Functions inherited from ThePEG::Interfaced
virtual bool defaultInit ()
 
PPtr getParticle (PID) const
 
PDPtr getParticleData (PID) const
 
bool used () const
 
void useMe () const
 
tEGPtr generator () const
 
void persistentOutput (PersistentOStream &os) const
 
void persistentInput (PersistentIStream &is, int version)
 
PPtr getParticle (PID) const
 
PDPtr getParticleData (PID) const
 
bool used () const
 
void useMe () const
 
tEGPtr generator () const
 
- Public Member Functions inherited from ThePEG::InterfacedBase
string fullName () const
 
string name () const
 
string path () const
 
string comment () const
 
void setup (istream &is)
 
void update ()
 
void init ()
 
virtual bool preInitialize () const
 
void initrun ()
 
void finish ()
 
void touch ()
 
void reset ()
 
void clear ()
 
InitState state () const
 
bool locked () const
 
bool touched () const
 
virtual IBPtr fullclone () const
 
void persistentOutput (PersistentOStream &os) const
 
void persistentInput (PersistentIStream &is, int version)
 
virtual void debugme () const
 
void update ()
 
void init ()
 
virtual bool preInitialize () const
 
void initrun ()
 
void finish ()
 
void touch ()
 
void reset ()
 
void clear ()
 
InitState state () const
 
bool locked () const
 
bool touched () const
 
virtual IBPtr fullclone () const
 
- Public Member Functions inherited from ThePEG::Base
void debug () const
 
virtual void debugme () const
 
- Public Member Functions inherited from ThePEG::Pointer::ReferenceCounted
CounterType referenceCount () const
 
- Public Member Functions inherited from ThePEG::Named
 Named (const string &newName=string())
 
 Named (const Named &)=default
 
const string & name () const
 
bool operator== (const Named &other) const
 
bool operator< (const Named &other) const
 

Protected Member Functions

Clone Methods.
virtual IBPtr clone () const
 Make a simple clone of this object.
 
virtual IBPtr fullclone () const
 Make a clone of this object, possibly modifying the cloned object to make it sane.
 
- Protected Member Functions inherited from Herwig::HadronSelector
void insertToHadronTable (tPDPtr &particle, int flav1, int flav2)
 A sub-function of HadronSelector::constructHadronTable().
 
virtual void constructHadronTable ()
 Construct the table of hadron data This is the main method to initialize the hadron data (mainly the weights associated to each hadron, taking into account its spin, eventual isoscalar-octect mixing, singlet-decuplet factor).
 
const HadronTabletable () const
 Access to the table of hadrons.
 
HadronTabletable ()
 Access to the table of hadrons.
 
const vector< PDPtr > & partons () const
 Access to the list of partons.
 
vector< PDPtr > & partons ()
 Access to the list of partons.
 
map< long, double > & pwt ()
 Access the parton weights.
 
double probabilityMixing (const double angleMix, const int order) const
 Methods for the mixing of \(I=0\) mesons.
 
virtual double mixingStateWeight (long id) const
 Returns the weight of given mixing state.
 
double specialWeight (long id) const
 Calculates a special weight specific to a given hadron.
 
virtual double mesonWeight (long id) const
 Weights for mesons.
 
int signHadron (tcPDPtr ptr1, tcPDPtr ptr2, tcPDPtr hadron) const
 This method returns the proper sign ( > 0 hadron; < 0 anti-hadron ) for the input PDG id idHad > 0, suppose to be made by the two constituent particle pointers: ptr1 and ptr2 (both with proper sign).
 
virtual void insertMeson (HadronInfo a, int flav1, int flav2)
 Insert a meson in the table.
 
- Protected Member Functions inherited from ThePEG::Interfaced
void reporeg (IBPtr object, string name) const
 
bool setDefaultReference (PtrT &ptr, string classname, string objectname)
 
 Interfaced (const string &newName)
 
 Interfaced (const Interfaced &i)
 
void setGenerator (tEGPtr generator)
 
- Protected Member Functions inherited from ThePEG::InterfacedBase
virtual void readSetup (istream &is)
 
virtual void doupdate ()
 
virtual void doinit ()
 
virtual void doinitrun ()
 
virtual void dofinish ()
 
virtual IVector getReferences ()
 
virtual void rebind (const TranslationMap &)
 
virtual IBPtr clone () const=0
 
 InterfacedBase (string newName)
 
 InterfacedBase (const InterfacedBase &i)
 
virtual void readSetup (istream &is)
 
virtual void doupdate ()
 
virtual void doinit ()
 
virtual void doinitrun ()
 
virtual void dofinish ()
 
virtual IVector getReferences ()
 
virtual void rebind (const TranslationMap &)
 
- Protected Member Functions inherited from ThePEG::Pointer::ReferenceCounted
 ReferenceCounted (const ReferenceCounted &)
 
ReferenceCountedoperator= (const ReferenceCounted &)
 
- Protected Member Functions inherited from ThePEG::Named
const Namedoperator= (const Named &other)
 
const string & name (const string &newName)
 

Standard Interfaced functions.

double _pwtDquark
 The weights for the different quarks and diquarks.
 
double _pwtUquark
 The probability of producting an up quark.
 
double _pwtSquark
 The probability of producting a strange quark.
 
double _pwtCquark
 The probability of producting a charm quark.
 
double _pwtBquark
 The probability of producting a bottom quark.
 
double _pwtDIquarkS0
 The probability of producting a spin-0 diquark.
 
double _pwtDIquarkS1
 The probability of producting a spin-1 diquark.
 
double _sngWt
 Singlet and Decuplet weights.
 
double _decWt
 The decuplet weight.
 
unsigned int _mode
 Which algorithm to use.
 
int _enhanceSProb
 Flag that switches between no strangeness enhancement, scaling enhancement, and exponential enhancement (in numerical order)
 
Energy _m0Decay
 Parameter that governs the strangeness enhancement scaling.
 
int _massMeasure
 Flag that switches between mass measures used in strangeness enhancement: cluster mass, or the lambda measure - ( m_{clu}^2 - (m_q + m_{qbar})^2 )
 
const double _maxScale = 20.
 Constant variable that stops the scale in strangeness enhancement from becoming too large.
 
double _scHadronWtFactor
 Heavy strange-charm hadron wight coefficient.
 
double _sbHadronWtFactor
 Heavy strange-bottom hadron wight coefficient.
 
map< pair< long, long >, tcPDPairlightestBaryonsS0_
 Caches of lightest pairs for speed.
 
map< pair< long, long >, tcPDPairlightestBaryonsS1_
 
virtual void doinit ()
 Initialize this object after the setup phase before saving an EventGenerator to disk.
 
Hw7Selectoroperator= (const Hw7Selector &)=delete
 The assignment operator is private and must never be called.
 

Functions used by the persistent I/O system.

void persistentOutput (PersistentOStream &os) const
 Function used to write out object persistently.
 
void persistentInput (PersistentIStream &is, int version)
 Function used to read in object persistently.
 
static void Init ()
 The standard Init function used to initialize the interfaces.
 
virtual double baryonWeight (long id) const
 Weights for baryons.
 
std::tuple< bool, bool, bool > selectBaryon (const Energy cluMass, tcPDPtr par1, tcPDPtr par2) const
 Whether to select a meson or a baryon.
 
virtual double strangeWeight (const Energy cluMass, tcPDPtr par1, tcPDPtr par2) const
 Strange quark weight.
 
virtual void insertOneHalf (HadronInfo a, int flav1, int flav2)
 Insert a spin \(\frac12\) baryon in the table.
 
virtual void insertThreeHalf (HadronInfo a, int flav1, int flav2)
 Insert a spin \(\frac32\) baryon in the table.
 
tcPDPair lightestBaryonPair (tcPDPtr ptr1, tcPDPtr ptr2, int pspin) const
 Returns the mass of the lightest pair of baryons.
 

Additional Inherited Members

- Public Types inherited from ThePEG::InterfacedBase
enum  InitState
 
- Public Types inherited from ThePEG::Pointer::ReferenceCounted
typedef unsigned int CounterType
 
- Static Public Member Functions inherited from Herwig::HadronSelector
static void Init ()
 The standard Init function used to initialize the interfaces.
 
- Static Public Member Functions inherited from ThePEG::Interfaced
static void Init ()
 
- Static Public Member Functions inherited from ThePEG::InterfacedBase
static void Init ()
 
- Static Public Member Functions inherited from ThePEG::Base
static void Init ()
 
- Public Attributes inherited from ThePEG::InterfacedBase
 initializing
 
 uninitialized
 
 initialized
 
 runready
 
- Public Attributes inherited from ThePEG::Pointer::ReferenceCounted
const unsigned long uniqueId
 
- Static Protected Member Functions inherited from ThePEG::Interfaced
static void registerRepository (IBPtr)
 
static void registerRepository (IBPtr, string newName)
 

Detailed Description

The Hw7Selector class selects the hadrons produced in cluster decay using the Herwig variant of the cluster model.

See also
The interfaces defined for Hw7Selector.

Definition at line 28 of file Hw7Selector.h.

Constructor & Destructor Documentation

◆ Hw7Selector()

Herwig::Hw7Selector::Hw7Selector ( )
inline

The default constructor.

Definition at line 35 of file Hw7Selector.h.

Member Function Documentation

◆ baryonWeight()

virtual double Herwig::Hw7Selector::baryonWeight ( long  id) const
protectedvirtual

Weights for baryons.

Implements Herwig::HadronSelector.

◆ clone()

virtual IBPtr Herwig::Hw7Selector::clone ( ) const
protectedvirtual

Make a simple clone of this object.

Returns
a pointer to the new object.

Implements ThePEG::InterfacedBase.

◆ doinit()

virtual void Herwig::Hw7Selector::doinit ( )
protectedvirtual

Initialize this object after the setup phase before saving an EventGenerator to disk.

Exceptions
InitExceptionif object could not be initialized properly.

Reimplemented from Herwig::HadronSelector.

◆ fullclone()

virtual IBPtr Herwig::Hw7Selector::fullclone ( ) const
protectedvirtual

Make a clone of this object, possibly modifying the cloned object to make it sane.

Returns
a pointer to the new object.

Reimplemented from ThePEG::InterfacedBase.

◆ Init()

static void Herwig::Hw7Selector::Init ( )
static

The standard Init function used to initialize the interfaces.

Called exactly once for each class by the class description system before the main function starts or when this class is dynamically loaded.

◆ insertOneHalf()

virtual void Herwig::Hw7Selector::insertOneHalf ( HadronInfo  a,
int  flav1,
int  flav2 
)
protectedvirtual

Insert a spin \(\frac12\) baryon in the table.

Reimplemented from Herwig::HadronSelector.

◆ insertThreeHalf()

virtual void Herwig::Hw7Selector::insertThreeHalf ( HadronInfo  a,
int  flav1,
int  flav2 
)
protectedvirtual

Insert a spin \(\frac32\) baryon in the table.

Reimplemented from Herwig::HadronSelector.

◆ lightestBaryonPair()

tcPDPair Herwig::Hw7Selector::lightestBaryonPair ( tcPDPtr  ptr1,
tcPDPtr  ptr2,
int  pspin 
) const
protected

Returns the mass of the lightest pair of baryons.

Parameters
ptr1is the first constituent
ptr2is the second constituent
pspinSpin in (2S+1) of the diquark

◆ makeDiquark()

virtual PDPtr Herwig::Hw7Selector::makeDiquark ( tcPDPtr  par1,
tcPDPtr  par2 
)
virtual

Return the particle data of the diquark (anti-diquark) made by the two quarks (antiquarks) par1, par2.

Parameters
par1(anti-)quark data pointer
par2(anti-)quark data pointer

Reimplemented from Herwig::HadronSelector.

◆ operator=()

Hw7Selector & Herwig::Hw7Selector::operator= ( const Hw7Selector )
privatedelete

The assignment operator is private and must never be called.

In fact, it should not even be implemented.

◆ persistentInput()

void Herwig::Hw7Selector::persistentInput ( PersistentIStream is,
int  version 
)

Function used to read in object persistently.

Parameters
isthe persistent input stream read from.
versionthe version number of the object when written.

◆ persistentOutput()

void Herwig::Hw7Selector::persistentOutput ( PersistentOStream os) const

Function used to write out object persistently.

Parameters
osthe persistent output stream written to.

◆ selectBaryon()

std::tuple< bool, bool, bool > Herwig::Hw7Selector::selectBaryon ( const Energy  cluMass,
tcPDPtr  par1,
tcPDPtr  par2 
) const
protectedvirtual

Whether to select a meson or a baryon.

Reimplemented from Herwig::HadronSelector.

◆ strangeWeight()

virtual double Herwig::Hw7Selector::strangeWeight ( const Energy  cluMass,
tcPDPtr  par1,
tcPDPtr  par2 
) const
protectedvirtual

Strange quark weight.

Reimplemented from Herwig::HadronSelector.

Member Data Documentation

◆ _decWt

double Herwig::Hw7Selector::_decWt
private

The decuplet weight.

Definition at line 203 of file Hw7Selector.h.

◆ _enhanceSProb

int Herwig::Hw7Selector::_enhanceSProb
private

Flag that switches between no strangeness enhancement, scaling enhancement, and exponential enhancement (in numerical order)

Definition at line 217 of file Hw7Selector.h.

◆ _m0Decay

Energy Herwig::Hw7Selector::_m0Decay
private

Parameter that governs the strangeness enhancement scaling.

Definition at line 222 of file Hw7Selector.h.

◆ _massMeasure

int Herwig::Hw7Selector::_massMeasure
private

Flag that switches between mass measures used in strangeness enhancement: cluster mass, or the lambda measure - ( m_{clu}^2 - (m_q + m_{qbar})^2 )

Definition at line 228 of file Hw7Selector.h.

◆ _maxScale

const double Herwig::Hw7Selector::_maxScale = 20.
private

Constant variable that stops the scale in strangeness enhancement from becoming too large.

Definition at line 234 of file Hw7Selector.h.

◆ _mode

unsigned int Herwig::Hw7Selector::_mode
private

Which algorithm to use.

Definition at line 211 of file Hw7Selector.h.

◆ _pwtBquark

double Herwig::Hw7Selector::_pwtBquark
private

The probability of producting a bottom quark.

Definition at line 178 of file Hw7Selector.h.

◆ _pwtCquark

double Herwig::Hw7Selector::_pwtCquark
private

The probability of producting a charm quark.

Definition at line 173 of file Hw7Selector.h.

◆ _pwtDIquarkS0

double Herwig::Hw7Selector::_pwtDIquarkS0
private

The probability of producting a spin-0 diquark.

Definition at line 183 of file Hw7Selector.h.

◆ _pwtDIquarkS1

double Herwig::Hw7Selector::_pwtDIquarkS1
private

The probability of producting a spin-1 diquark.

Definition at line 188 of file Hw7Selector.h.

◆ _pwtDquark

double Herwig::Hw7Selector::_pwtDquark
private

The weights for the different quarks and diquarks.

The probability of producting a down quark.

Definition at line 158 of file Hw7Selector.h.

◆ _pwtSquark

double Herwig::Hw7Selector::_pwtSquark
private

The probability of producting a strange quark.

Definition at line 168 of file Hw7Selector.h.

◆ _pwtUquark

double Herwig::Hw7Selector::_pwtUquark
private

The probability of producting an up quark.

Definition at line 163 of file Hw7Selector.h.

◆ _sbHadronWtFactor

double Herwig::Hw7Selector::_sbHadronWtFactor
private

Heavy strange-bottom hadron wight coefficient.

Definition at line 244 of file Hw7Selector.h.

◆ _scHadronWtFactor

double Herwig::Hw7Selector::_scHadronWtFactor
private

Heavy strange-charm hadron wight coefficient.

Definition at line 239 of file Hw7Selector.h.

◆ _sngWt

double Herwig::Hw7Selector::_sngWt
private

Singlet and Decuplet weights.

The singlet weight

Definition at line 198 of file Hw7Selector.h.

◆ lightestBaryonsS0_

map<pair<long,long>,tcPDPair> Herwig::Hw7Selector::lightestBaryonsS0_
private

Caches of lightest pairs for speed.

Masses of lightest baryon pair

Definition at line 253 of file Hw7Selector.h.

◆ lightestBaryonsS1_

map<pair<long,long>,tcPDPair> Herwig::Hw7Selector::lightestBaryonsS1_
private

Definition at line 253 of file Hw7Selector.h.


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