herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
Herwig::WeakCurrent Class Referenceabstract

The WeakCurrent class is the base class for the hadronic currents produced in weak decays. More...

#include <WeakCurrent.h>

Inheritance diagram for Herwig::WeakCurrent:

Public Member Functions

 WeakCurrent ()
 Default constructor.
 
Methods for the construction of the phase space integrator.
virtual bool createMode (int icharge, tcPDPtr resonance, FlavourInfo flavour, unsigned int imode, PhaseSpaceModePtr mode, unsigned int iloc, int ires, PhaseSpaceChannel phase, Energy upp)=0
 Complete the construction of the decay mode for integration.classes inheriting from this one.
 
virtual tPDVector particles (int icharge, unsigned int imode, int iq, int ia)=0
 The particles produced by the current.
 
unsigned int numberOfModes () const
 Return the number of modes handled by this current.
 
virtual vector< LorentzPolarizationVectorEcurrent (tcPDPtr resonance, FlavourInfo flavour, const int imode, const int ichan, Energy &scale, const tPDVector &outgoing, const vector< Lorentz5Momentum > &momenta, DecayIntegrator::MEOption meopt) const =0
 Hadronic current.
 
virtual void constructSpinInfo (ParticleVector decay) const
 Construct the SpinInfo for the decay products.
 
virtual bool accept (vector< int > id)=0
 Accept the decay.
 
virtual unsigned int decayMode (vector< int > id)=0
 Return the decay mode number for a given set of particles in the current.
 
void decayModeInfo (unsigned int imode, int &iq, int &ia) const
 Information on a decay mode.
 
virtual void dataBaseOutput (ofstream &os, bool header, bool create) const
 Output the setup information for the particle database.
 
- 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
 

Functions used by the persistent I/O system.

vector< int > quark_
 The PDG codes for the quarks contained in the current.
 
vector< int > antiquark_
 The PDG codes for the antiquarks contained in the current.
 
unsigned int numberModes_
 The initial number of modes.
 
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 ()
 Standard Init function used to initialize the interfaces.
 
void addDecayMode (int iq, int ia)
 Add a decay mode to the list.
 
void setInitialModes (unsigned int nmodes)
 Set initial number of modes.
 
WeakCurrentoperator= (const WeakCurrent &)=delete
 Private and non-existent assignment operator.
 

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 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
 
- 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)
 
- Static Protected Member Functions inherited from ThePEG::Interfaced
static void registerRepository (IBPtr)
 
static void registerRepository (IBPtr, string newName)
 

Detailed Description

The WeakCurrent class is the base class for the hadronic currents produced in weak decays.

This is designed so it can be used in any weak decay. In general the currents which are implemented are either simple one meson production or taken from tau decay.

In classes inheriting from this one a number of member functions must be implemented

  • createMode which takes a vector of partially completed PhaseSpaceChannel and adds the extra information required for the current. This method should assume that the particles from the current are the last ones specified in the PhaseSpaceMode. This method will then construct the PhaseSpaceMode for the decay.
  • particles() which returns the external particles produced by the current.
  • current() which given the decay products calculates the decay current
  • accept() which uses the PDG codes for the particles in the current to decide if a given mode is allowed.
  • decayMode() which uses the PDG codes for the particles in the current to workout which modes is being performed.
  • dataBaseOutput() which should output the information on all the Interfaces so that the WeakCurrent can be reconstructed by the Herwig particle properties database.
See also
Interfaced.

Definition at line 59 of file WeakCurrent.h.

Constructor & Destructor Documentation

◆ WeakCurrent()

Herwig::WeakCurrent::WeakCurrent ( )
inline

Default constructor.

Definition at line 66 of file WeakCurrent.h.

Member Function Documentation

◆ accept()

◆ addDecayMode()

void Herwig::WeakCurrent::addDecayMode ( int  iq,
int  ia 
)
inlineprotected

Add a decay mode to the list.

Parameters
iqThe PDG code for the quark.
iaThe PDG code for the antiquark.

Definition at line 211 of file WeakCurrent.h.

References antiquark_, and quark_.

Referenced by Herwig::LeptonNeutrinoCurrent::LeptonNeutrinoCurrent().

◆ constructSpinInfo()

◆ createMode()

virtual bool Herwig::WeakCurrent::createMode ( int  icharge,
tcPDPtr  resonance,
FlavourInfo  flavour,
unsigned int  imode,
PhaseSpaceModePtr  mode,
unsigned int  iloc,
int  ires,
PhaseSpaceChannel  phase,
Energy  upp 
)
pure virtual

Complete the construction of the decay mode for integration.classes inheriting from this one.

This method is purely virtual and must be implemented in the classes inheriting from WeakCurrent.

Parameters
ichargeThe total charge of the outgoing particles in the current.
resonanceIf specified only include terms with this particle
flavourInformation on the required flavours of the quarks
imodeThe mode in the current being asked for.
modeThe phase space mode for the integration
ilocThe location of the of the first particle from the current in the list of outgoing particles.
iresThe location of the first intermediate for the current.
phaseThe prototype phase space channel for the integration.
uppThe maximum possible mass the particles in the current are allowed to have.
Returns
Whether the current was sucessfully constructed.

Implemented in Herwig::EtaOmegaCurrent, Herwig::EtaPhiCurrent, Herwig::EtaPhotonCurrent, Herwig::EtaPiPiCurrent, Herwig::EtaPiPiDefaultCurrent, Herwig::EtaPrimePiPiCurrent, Herwig::FivePionCurrent, Herwig::FourPionCzyzCurrent, Herwig::FourPionNovosibirskCurrent, Herwig::KKPiCurrent, Herwig::KPiCurrent, Herwig::KPiKStarCurrent, Herwig::LeptonNeutrinoCurrent, Herwig::OmegaPionSNDCurrent, Herwig::OmegaPiPiCurrent, Herwig::OneKaonTwoPionCurrent, Herwig::OneKaonTwoPionDefaultCurrent, Herwig::PhiPiCurrent, Herwig::PionPhotonCurrent, Herwig::ScalarMesonCurrent, Herwig::ThreePionCLEOCurrent, Herwig::ThreePionCzyzCurrent, Herwig::ThreePionDefaultCurrent, Herwig::TwoKaonCzyzCurrent, Herwig::TwoKaonOnePionCurrent, Herwig::TwoKaonOnePionDefaultCurrent, Herwig::TwoPionCzyzCurrent, Herwig::TwoPionPhotonCurrent, Herwig::TwoPionPhotonSNDCurrent, Herwig::TwoPionRhoCurrent, Herwig::VectorMesonCurrent, and Herwig::WeakBaryonCurrent.

◆ current()

virtual vector< LorentzPolarizationVectorE > Herwig::WeakCurrent::current ( tcPDPtr  resonance,
FlavourInfo  flavour,
const int  imode,
const int  ichan,
Energy &  scale,
const tPDVector outgoing,
const vector< Lorentz5Momentum > &  momenta,
DecayIntegrator::MEOption  meopt 
) const
pure virtual

Hadronic current.

This method is purely virtual and must be implemented in all classes inheriting from this one.

Parameters
resonanceIf specified only include terms with this particle
flavourInformation on the required flavours of the quarks
imodeThe mode
ichanThe phase-space channel the current is needed for.
scaleThe invariant mass of the particles in the current.
outgoingThe particles produced in the decay
momentaThe momenta of the particles produced in the decay
meoptOption for the calculation of the matrix element
Returns
The current.

Implemented in Herwig::EtaOmegaCurrent, Herwig::EtaPhiCurrent, Herwig::EtaPhotonCurrent, Herwig::EtaPiPiCurrent, Herwig::EtaPiPiDefaultCurrent, Herwig::EtaPrimePiPiCurrent, Herwig::FivePionCurrent, Herwig::FourPionCzyzCurrent, Herwig::FourPionNovosibirskCurrent, Herwig::KKPiCurrent, Herwig::KPiCurrent, Herwig::KPiKStarCurrent, Herwig::LeptonNeutrinoCurrent, Herwig::OmegaPionSNDCurrent, Herwig::OmegaPiPiCurrent, Herwig::OneKaonTwoPionCurrent, Herwig::OneKaonTwoPionDefaultCurrent, Herwig::PhiPiCurrent, Herwig::PionPhotonCurrent, Herwig::ScalarMesonCurrent, Herwig::ThreePionCLEOCurrent, Herwig::ThreePionCzyzCurrent, Herwig::ThreePionDefaultCurrent, Herwig::TwoKaonCzyzCurrent, Herwig::TwoKaonOnePionCurrent, Herwig::TwoKaonOnePionDefaultCurrent, Herwig::TwoPionCzyzCurrent, Herwig::TwoPionPhotonCurrent, Herwig::TwoPionPhotonSNDCurrent, Herwig::TwoPionRhoCurrent, Herwig::VectorMesonCurrent, and Herwig::WeakBaryonCurrent.

◆ dataBaseOutput()

◆ decayMode()

◆ decayModeInfo()

void Herwig::WeakCurrent::decayModeInfo ( unsigned int  imode,
int &  iq,
int &  ia 
) const
inline

Information on a decay mode.

Parameters
imodeThe mode
iqThe PDG code of the quark.
iaThe PDG code of the antiquark.

Definition at line 162 of file WeakCurrent.h.

References antiquark_, and quark_.

◆ numberOfModes()

unsigned int Herwig::WeakCurrent::numberOfModes ( ) const
inline

Return the number of modes handled by this current.

Definition at line 111 of file WeakCurrent.h.

References quark_.

◆ particles()

◆ persistentInput()

void Herwig::WeakCurrent::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::WeakCurrent::persistentOutput ( PersistentOStream os) const

Function used to write out object persistently.

Parameters
osthe persistent output stream written to.

◆ setInitialModes()

void Herwig::WeakCurrent::setInitialModes ( unsigned int  nmodes)
inlineprotected

Set initial number of modes.

Parameters
nmodesThe number of modes.

Definition at line 220 of file WeakCurrent.h.

References numberModes_.

Referenced by Herwig::LeptonNeutrinoCurrent::LeptonNeutrinoCurrent().

Member Data Documentation

◆ antiquark_

vector<int> Herwig::WeakCurrent::antiquark_
private

The PDG codes for the antiquarks contained in the current.

Definition at line 239 of file WeakCurrent.h.

Referenced by addDecayMode(), and decayModeInfo().

◆ numberModes_

unsigned int Herwig::WeakCurrent::numberModes_
private

The initial number of modes.

Definition at line 244 of file WeakCurrent.h.

Referenced by setInitialModes().

◆ quark_

vector<int> Herwig::WeakCurrent::quark_
private

The PDG codes for the quarks contained in the current.

Definition at line 234 of file WeakCurrent.h.

Referenced by addDecayMode(), decayModeInfo(), and numberOfModes().


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