herwig
is hosted by
Hepforge
,
IPPP Durham
Herwig
7.3.0
Hadronization
SpinHadronizer.h
1
// -*- C++ -*-
2
#ifndef Herwig_SpinHadronizer_H
3
#define Herwig_SpinHadronizer_H
4
//
5
// This is the declaration of the SpinHadronizer class.
6
//
7
8
#include "ThePEG/Handlers/StepHandler.h"
9
10
namespace
Herwig
{
11
12
using namespace
ThePEG
;
13
22
class
SpinHadronizer
:
public
StepHandler
{
23
24
public
:
25
29
SpinHadronizer
() :
omegaHalf_
(2./3.),
omegaThreeHalf_
(0.2),
30
minFlav_
(3),
maxFlav_
(5),
debug_
(false),
qPol_
(6,make_pair(0.,0.))
31
{}
32
33
public
:
34
52
virtual
void
handle
(
EventHandler
& eh,
const
tPVector
& tagged,
53
const
Hint
& hint);
55
56
public
:
57
64
void
persistentOutput
(
PersistentOStream
& os)
const
;
65
71
void
persistentInput
(
PersistentIStream
& is,
int
version);
73
80
static
void
Init
();
81
82
protected
:
83
88
92
void
baryonSpin
(
tPPtr
baryon);
93
97
void
mesonSpin
(
tPPtr
meson);
98
100
101
protected
:
102
110
virtual
void
doinit
();
111
116
virtual
void
doinitrun
();
117
122
virtual
void
dofinish
();
124
125
protected
:
126
133
virtual
IBPtr
clone
()
const
;
134
139
virtual
IBPtr
fullclone
()
const
;
141
142
private
:
143
148
SpinHadronizer
&
operator=
(
const
SpinHadronizer
&) =
delete
;
149
150
private
:
151
159
double
omegaHalf_
;
160
164
double
omegaThreeHalf_
;
165
169
unsigned
int
minFlav_
;
170
174
unsigned
int
maxFlav_
;
175
179
bool
debug_
;
180
184
vector<pair<double,double> >
qPol_
;
186
187
};
188
189
}
190
191
#endif
/* Herwig_SpinHadronizer_H */
Herwig::SpinHadronizer
The SpinHadronizer class is designed to be used as a post-hadronization handler to give a simple mode...
Definition:
SpinHadronizer.h:22
Herwig::SpinHadronizer::omegaHalf_
double omegaHalf_
Parameters.
Definition:
SpinHadronizer.h:159
Herwig::SpinHadronizer::SpinHadronizer
SpinHadronizer()
The default constructor.
Definition:
SpinHadronizer.h:29
Herwig::SpinHadronizer::baryonSpin
void baryonSpin(tPPtr baryon)
Functions to calculate the spins.
Herwig::SpinHadronizer::minFlav_
unsigned int minFlav_
Minimum quark flavour.
Definition:
SpinHadronizer.h:169
Herwig::SpinHadronizer::operator=
SpinHadronizer & operator=(const SpinHadronizer &)=delete
The assignment operator is private and must never be called.
Herwig::SpinHadronizer::debug_
bool debug_
Print out debugging info.
Definition:
SpinHadronizer.h:179
Herwig::SpinHadronizer::mesonSpin
void mesonSpin(tPPtr meson)
Calculate the spin of a meson.
Herwig::SpinHadronizer::omegaThreeHalf_
double omegaThreeHalf_
Falk-Peskin parameter.
Definition:
SpinHadronizer.h:164
Herwig::SpinHadronizer::persistentOutput
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
Herwig::SpinHadronizer::fullclone
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
Herwig::SpinHadronizer::dofinish
virtual void dofinish()
Finalize this object.
Herwig::SpinHadronizer::handle
virtual void handle(EventHandler &eh, const tPVector &tagged, const Hint &hint)
The main function called by the EventHandler class to perform a step.
Herwig::SpinHadronizer::doinitrun
virtual void doinitrun()
Initialize this object.
Herwig::SpinHadronizer::Init
static void Init()
The standard Init function used to initialize the interfaces.
Herwig::SpinHadronizer::doinit
virtual void doinit()
Initialize this object after the setup phase before saving an EventGenerator to disk.
Herwig::SpinHadronizer::clone
virtual IBPtr clone() const
Make a simple clone of this object.
Herwig::SpinHadronizer::maxFlav_
unsigned int maxFlav_
Maximum quark flavour.
Definition:
SpinHadronizer.h:174
Herwig::SpinHadronizer::persistentInput
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
Herwig::SpinHadronizer::qPol_
vector< pair< double, double > > qPol_
Polarization of the quarks.
Definition:
SpinHadronizer.h:184
ThePEG::EventHandler
ThePEG::Hint
ThePEG::PersistentIStream
ThePEG::PersistentOStream
ThePEG::StepHandler
Herwig
-*- C++ -*-
Definition:
BasicConsistency.h:17
ThePEG
ThePEG::tPPtr
ThePEG::Ptr< Particle >::transient_pointer tPPtr
ThePEG::IBPtr
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
ThePEG::tPVector
vector< tPPtr > tPVector
Generated on Thu Jun 20 2024 17:50:52 for Herwig by
1.9.6