herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
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
10namespace Herwig {
11
12using namespace ThePEG;
13
23
24public:
25
30 minFlav_(3), maxFlav_(5), debug_(false), qPol_(6,make_pair(0.,0.))
31 {}
32
33public:
34
52 virtual void handle(EventHandler & eh, const tPVector & tagged,
53 const Hint & hint);
55
56public:
57
65
71 void persistentInput(PersistentIStream & is, int version);
73
80 static void Init();
81
82protected:
83
88
92 void baryonSpin(tPPtr baryon);
93
97 void mesonSpin(tPPtr meson);
98
100
101protected:
102
110 virtual void doinit();
111
116 virtual void doinitrun();
117
122 virtual void dofinish();
124
125protected:
126
133 virtual IBPtr clone() const;
134
139 virtual IBPtr fullclone() const;
141
142private:
143
149
150private:
151
160
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 */
The SpinHadronizer class is designed to be used as a post-hadronization handler to give a simple mode...
double omegaHalf_
Parameters.
SpinHadronizer()
The default constructor.
void baryonSpin(tPPtr baryon)
Functions to calculate the spins.
unsigned int minFlav_
Minimum quark flavour.
SpinHadronizer & operator=(const SpinHadronizer &)=delete
The assignment operator is private and must never be called.
bool debug_
Print out debugging info.
void mesonSpin(tPPtr meson)
Calculate the spin of a meson.
double omegaThreeHalf_
Falk-Peskin parameter.
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
virtual void dofinish()
Finalize this object.
virtual void handle(EventHandler &eh, const tPVector &tagged, const Hint &hint)
The main function called by the EventHandler class to perform a step.
virtual void doinitrun()
Initialize this object.
static void Init()
The standard Init function used to initialize the interfaces.
virtual void doinit()
Initialize this object after the setup phase before saving an EventGenerator to disk.
virtual IBPtr clone() const
Make a simple clone of this object.
unsigned int maxFlav_
Maximum quark flavour.
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
vector< pair< double, double > > qPol_
Polarization of the quarks.
-*- C++ -*-
ThePEG::Ptr< Particle >::transient_pointer tPPtr
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
vector< tPPtr > tPVector