herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
Hw64Selector.h
1// -*- C++ -*-
2//
3// Hw64Selector.h is a part of Herwig - A multi-purpose Monte Carlo event generator
4// Copyright (C) 2002-2019 The Herwig Collaboration
5//
6// Herwig is licenced under version 3 of the GPL, see COPYING for details.
7// Please respect the MCnet academic guidelines, see GUIDELINES for details.
8//
9#ifndef HERWIG_Hw64Selector_H
10#define HERWIG_Hw64Selector_H
11//
12// This is the declaration of the Hw64Selector class.
13//
14
15#include "HadronSelector.h"
16
17namespace Herwig {
18
19using namespace ThePEG;
20
29
30public:
31
36 _pwtDquark( 1.0 ),_pwtUquark( 1.0 ),_pwtSquark( 1.0 ),_pwtCquark( 0.0 ),
37 _pwtBquark( 0.0 ),_pwtDIquarkS0( 1.0 ),_pwtDIquarkS1( 1.0 ),
38 _sngWt( 1.0 ), _decWt( 1.0 )
39 {}
40
49 virtual pair<tcPDPtr,tcPDPtr> chooseHadronPair(const Energy cluMass,
50 tcPDPtr par1, tcPDPtr par2) const;
51
52public:
53
61
67 void persistentInput(PersistentIStream & is, int version);
69
76 static void Init();
77
78protected :
79
83 virtual double baryonWeight(long id) const;
84
85protected:
86
93 virtual IBPtr clone() const;
94
99 virtual IBPtr fullclone() const;
101
102protected:
103
111 virtual void doinit();
113
114private:
115
121
122private:
123
132
137
142
147
152
157
163
171 double _sngWt;
172
176 double _decWt;
178
179};
180
181}
182
183#endif /* HERWIG_Hw64Selector_H */
This class selects the hadron flavours of a cluster decay.
The Hw64Selector class selects the hadrons produced in cluster decay using the FORTRAN HERWIG variant...
Definition: Hw64Selector.h:28
virtual void doinit()
Initialize this object after the setup phase before saving an EventGenerator to disk.
double _pwtBquark
The probability of producting a bottom quark.
Definition: Hw64Selector.h:151
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
double _pwtCquark
The probability of producting a charm quark.
Definition: Hw64Selector.h:146
double _pwtDIquarkS0
The probability of producting a spin-0 diquark.
Definition: Hw64Selector.h:156
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
double _pwtUquark
The probability of producting an up quark.
Definition: Hw64Selector.h:136
Hw64Selector()
The default constructor.
Definition: Hw64Selector.h:35
double _pwtSquark
The probability of producting a strange quark.
Definition: Hw64Selector.h:141
virtual double baryonWeight(long id) const
Weights for baryons.
Hw64Selector & operator=(const Hw64Selector &)=delete
The assignment operator is private and must never be called.
double _decWt
The decuplet weight.
Definition: Hw64Selector.h:176
double _pwtDquark
The weights for the different quarks and diquarks.
Definition: Hw64Selector.h:131
virtual IBPtr clone() const
Make a simple clone of this object.
static void Init()
The standard Init function used to initialize the interfaces.
double _pwtDIquarkS1
The probability of producting a spin-1 diquark.
Definition: Hw64Selector.h:161
double _sngWt
Singlet and Decuplet weights.
Definition: Hw64Selector.h:171
virtual pair< tcPDPtr, tcPDPtr > 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.
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
-*- C++ -*-
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
ThePEG::Ptr< ParticleData >::transient_const_pointer tcPDPtr