herwig is hosted by Hepforge, IPPP Durham
Herwig  7.2.1
HwppSelector.h
1 // -*- C++ -*-
2 //
3 // HwppSelector.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_HwppSelector_H
10 #define HERWIG_HwppSelector_H
11 //
12 // This is the declaration of the HwppSelector class.
13 //
14 
15 #include "HadronSelector.h"
16 #include "HwppSelector.fh"
17 
18 namespace Herwig {
19 
20 using namespace ThePEG;
21 
30 
31 public:
32 
36  HwppSelector() : HadronSelector(1), _mode(1), _enhanceSProb(0), _m0Decay(1.*GeV)
37  {}
38 
67  pair<tcPDPtr,tcPDPtr> chooseHadronPair(const Energy cluMass,tcPDPtr par1,
68  tcPDPtr par2,tcPDPtr par3 = PDPtr()) const
69  ;
70 
71 public:
72 
79  void persistentOutput(PersistentOStream & os) const;
80 
86  void persistentInput(PersistentIStream & is, int version);
88 
95  static void Init();
96 
97 protected:
98 
105  virtual IBPtr clone() const;
106 
111  virtual IBPtr fullclone() const;
113 
114 protected:
115 
123  virtual void doinit();
125 
126 private:
127 
132  HwppSelector & operator=(const HwppSelector &) = delete;
133 
134 private:
135 
139  unsigned int _mode;
140 
146 
150  Energy _m0Decay;
151 
157 
162  const double _maxScale = 20.;
163 
164 };
165 
166 }
167 
168 #endif /* HERWIG_HwppSelector_H */
This class selects the hadron flavours of a cluster decay.
Energy _m0Decay
Parameter that governs the strangeness enhancement scaling.
Definition: HwppSelector.h:150
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
int _massMeasure
Flag that switches between mass measures used in strangeness enhancement: cluster mass...
Definition: HwppSelector.h:156
ThePEG::Ptr< ParticleData >::transient_const_pointer tcPDPtr
ThePEG::Ptr< ParticleData >::pointer PDPtr
The HwppSelector class selects the hadrons produced in cluster decay using the Herwig variant of the ...
Definition: HwppSelector.h:29
HwppSelector()
The default constructor.
Definition: HwppSelector.h:36
-*- C++ -*-
unsigned int _mode
Which algorithm to use.
Definition: HwppSelector.h:139
int _enhanceSProb
Flag that switches between no strangeness enhancement, scaling enhancement, and exponential enhanceme...
Definition: HwppSelector.h:145