StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
DireSplittings.cc
1 // DireSplittings.cc is a part of the PYTHIA event generator.
2 // Copyright (C) 2020 Stefan Prestel, 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 // DireSplitting class.
8 
9 #include "Pythia8/DireSplittings.h"
10 #include "Pythia8/DireSpace.h"
11 #include "Pythia8/DireTimes.h"
12 
13 namespace Pythia8 {
14 
15 //==========================================================================
16 
17 // The Splitting class.
18 
19 //--------------------------------------------------------------------------
20 
21 void DireSplitting::init() {
22 
23  renormMultFac = 1.;
24  if (id.find("Dire_isr_") != string::npos)
25  renormMultFac = settingsPtr->parm("SpaceShower:renormMultFac");
26  else
27  renormMultFac = settingsPtr->parm("TimeShower:renormMultFac");
28 
29  if ( id.find("_qcd_") != string::npos) is_qcd = true;
30  if ( id.find("_qed_") != string::npos) is_qed = true;
31  if ( id.find("_ew_") != string::npos) is_ewk = true;
32  if ( id.find("Dire_") != string::npos) is_dire = true;
33  if ( id.find("Dire_isr_") != string::npos) is_isr = true;
34  if ( id.find("Dire_fsr_") != string::npos) is_fsr = true;
35 
36  nameHash = shash(id);
37 
38 }
39 
40 //--------------------------------------------------------------------------
41 
42 double DireSplitting::getKernel(string key) {
43  unordered_map<string, double>::iterator it = kernelVals.find(key);
44  if ( it == kernelVals.end() ) return 0./0.;
45  return it->second;
46 }
47 
48 //==========================================================================
49 
50 } // end namespace Pythia8