herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
WeakBaryonCurrent.h
1// -*- C++ -*-
2#ifndef Herwig_WeakBaryonCurrent_H
3#define Herwig_WeakBaryonCurrent_H
4//
5// This is the declaration of the WeakBaryonCurrent class.
6//
7
8#include "WeakCurrent.h"
9#include "Herwig/Decay/FormFactors/BaryonFormFactor.h"
10#include "ThePEG/Helicity/LorentzSpinorBar.h"
11
12namespace Herwig {
13
14using namespace ThePEG;
15
24
25public:
26
31
32public:
33
54 virtual bool createMode(int icharge, tcPDPtr resonance,
55 FlavourInfo flavour,
56 unsigned int imode,PhaseSpaceModePtr mode,
57 unsigned int iloc,int ires,
58 PhaseSpaceChannel phase, Energy upp );
59
68 virtual tPDVector particles(int icharge, unsigned int imode, int iq, int ia);
70
84 virtual vector<LorentzPolarizationVectorE>
85 current(tcPDPtr resonance,
86 FlavourInfo flavour,
87 const int imode, const int ichan,Energy & scale,
88 const tPDVector & outgoing,
89 const vector<Lorentz5Momentum> & momenta,
90 DecayIntegrator::MEOption meopt) const;
91
96
102 virtual bool accept(vector<int> id);
103
109 virtual unsigned int decayMode(vector<int> id);
110
117 virtual void dataBaseOutput(ofstream & os,bool header,bool create) const;
118
119public:
120
128
134 void persistentInput(PersistentIStream & is, int version);
136
143 static void Init();
144
145protected:
146
153 virtual IBPtr clone() const;
154
159 virtual IBPtr fullclone() const;
161
162protected:
163
171 virtual void doinit();
173
174private:
175
181
182private:
183
187 BaryonFormFactorPtr formFactor_;
188
189private:
190
194 mutable vector<Helicity::LorentzSpinor <SqrtEnergy> > wave_;
195
199 mutable vector<Helicity::LorentzSpinorBar<SqrtEnergy> > wavebar_;
200
201};
202
203}
204
205#endif /* Herwig_WeakBaryonCurrent_H */
MEOption
Enum for the matrix element option.
This class is designed to store the information needed for a given phase-space channel for use by the...
The WeakBaryonCurrent class is a wrapper around the BaryonFormFactor so that they can be used as a cu...
virtual IBPtr clone() const
Make a simple clone of this object.
virtual unsigned int decayMode(vector< int > id)
Returns the decay mode number for a given set of particles in the current.
virtual void doinit()
Initialize this object after the setup phase before saving an EventGenerator to disk.
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
vector< Helicity::LorentzSpinorBar< SqrtEnergy > > wavebar_
barred spinors for the decay products
virtual vector< LorentzPolarizationVectorE > current(tcPDPtr resonance, FlavourInfo flavour, const int imode, const int ichan, Energy &scale, const tPDVector &outgoing, const vector< Lorentz5Momentum > &momenta, DecayIntegrator::MEOption meopt) const
Hadronic current.
WeakBaryonCurrent & operator=(const WeakBaryonCurrent &)=delete
The assignment operator is private and must never be called.
virtual bool createMode(int icharge, tcPDPtr resonance, FlavourInfo flavour, unsigned int imode, PhaseSpaceModePtr mode, unsigned int iloc, int ires, PhaseSpaceChannel phase, Energy upp)
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)
The particles produced by the current.
BaryonFormFactorPtr formFactor_
The baryon form factor.
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
vector< Helicity::LorentzSpinor< SqrtEnergy > > wave_
Spinors for the decay products.
virtual void dataBaseOutput(ofstream &os, bool header, bool create) const
Output the setup information for the particle database.
void constructSpinInfo(ParticleVector decay) const
Construct the SpinInfo for the decay products.
WeakBaryonCurrent()
The default constructor.
static void Init()
The standard Init function used to initialize the interfaces.
virtual bool accept(vector< int > id)
Accept the decay.
The WeakCurrent class is the base class for the hadronic currents produced in weak decays.
Definition: WeakCurrent.h:59
-*- C++ -*-
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
vector< tPDPtr > tPDVector
vector< PPtr > ParticleVector
ThePEG::Ptr< ParticleData >::transient_const_pointer tcPDPtr