StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StringInteractions.cc
1 // StringInteractions.cc is a part of the PYTHIA event generator.
2 // Copyright (C) 2020 Torbjorn Sjostrand.
3 // PYTHIA is licenced under the GNU GPL v2 or later, see COPYING for details.
4 // Please respect the MCnet Guidelines, see GUIDELINES for details.
5 
6 // Function definitions (not found in the header) for the
7 // StringInteractions class.
8 
9 #include "Pythia8/StringInteractions.h"
10 #include "Pythia8/ColourReconnection.h"
11 
12 namespace Pythia8 {
13 
14 //==========================================================================
15 
16 // The StringInteractions class.
17 
18 //--------------------------------------------------------------------------
19 
20 // The base class init() method only implements the ColourReconnection
21 // model from Pythia 8.2.
22 
23 bool StringInteractions::init() {
24  subObjects.clear();
25  if ( flag("ColourReconnection:reconnect") ||
26  flag("ColourReconnection:forceHadronLevelCR") ) {
27  colrecPtr = make_shared<ColourReconnection>();
28  registerSubObject(*colrecPtr);
29  }
30 
31  return true;
32 }
33 
34 //==========================================================================
35 
36 // Just needs to make sure something ends up in an object file.
37 
38 // FragmentationModifierBase::~FragmentationModifierBase() {}
39 
40 //==========================================================================
41 
42 } // end namespace Pythia8