EvtGen
2.2.0
Monte Carlo generator of particle decays, in particular the weak decays of heavy flavour particles such as B mesons.
Toggle main menu visibility
Loading...
Searching...
No Matches
EvtGenExternal
EvtExternalGenFactory.hh
Go to the documentation of this file.
1
2
/***********************************************************************
3
* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
4
* *
5
* This file is part of EvtGen. *
6
* *
7
* EvtGen is free software: you can redistribute it and/or modify *
8
* it under the terms of the GNU General Public License as published by *
9
* the Free Software Foundation, either version 3 of the License, or *
10
* (at your option) any later version. *
11
* *
12
* EvtGen is distributed in the hope that it will be useful, *
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15
* GNU General Public License for more details. *
16
* *
17
* You should have received a copy of the GNU General Public License *
18
* along with EvtGen. If not, see <https://www.gnu.org/licenses/>. *
19
***********************************************************************/
20
21
#ifndef EVTEXTERNALGENFACTORY_HH
22
#define EVTEXTERNALGENFACTORY_HH
23
24
#include "
EvtGenModels/EvtAbsExternalGen.hh
"
25
26
#include <map>
27
#include <memory>
28
29
// Description: A factory type method to create engines for external physics
30
// generators like Pythia.
31
32
class
EvtExternalGenFactory
final {
33
public
:
34
enum class
GenId
35
{
36
PythiaGenId
= 0,
37
TauolaGenId
38
};
39
40
static
EvtExternalGenFactory
&
getInstance
();
41
42
EvtAbsExternalGen
*
getGenerator
(
const
GenId
genId );
43
44
void
initialiseAllGenerators
();
45
46
void
definePythiaGenerator
( std::string xmlDir,
bool
convertPhysCodes,
47
bool
useEvtGenRandom =
true
);
48
void
defineTauolaGenerator
(
bool
useEvtGenRandom =
true
,
49
bool
seedTauolaFortran =
true
);
50
51
//methods to add configuration commands to the pythia generators
52
//void addPythiaCommand( std::string generator, std::string module, std::string param, std::string value);
53
//void addPythia6Command(std::string generator, std::string module, std::string param, std::string value);
54
55
private
:
56
EvtExternalGenFactory
() =
default
;
57
~EvtExternalGenFactory
() =
default
;
58
EvtExternalGenFactory
(
const
EvtExternalGenFactory
& ) =
delete
;
59
EvtExternalGenFactory
(
EvtExternalGenFactory
&& ) =
delete
;
60
EvtExternalGenFactory
&
operator=
(
const
EvtExternalGenFactory
& ) =
delete
;
61
EvtExternalGenFactory
&
operator=
(
EvtExternalGenFactory
&& ) =
delete
;
62
63
typedef
std::map<GenId, std::unique_ptr<EvtAbsExternalGen>>
ExtGenMap
;
64
//typedef std::map<GenId, std::map<std::string, std::vector<std::string>>> ExtGenCommandMap;
65
66
ExtGenMap
m_extGenMap
;
67
//ExtGenCommandMap m_extGenCommandMap;
68
};
69
70
#endif
EvtAbsExternalGen.hh
EvtAbsExternalGen
Definition
EvtAbsExternalGen.hh:28
EvtExternalGenFactory
Definition
EvtExternalGenFactory.hh:32
EvtExternalGenFactory::operator=
EvtExternalGenFactory & operator=(const EvtExternalGenFactory &)=delete
EvtExternalGenFactory::getInstance
static EvtExternalGenFactory & getInstance()
Definition
EvtExternalGenFactory.cpp:36
EvtExternalGenFactory::~EvtExternalGenFactory
~EvtExternalGenFactory()=default
EvtExternalGenFactory::EvtExternalGenFactory
EvtExternalGenFactory(EvtExternalGenFactory &&)=delete
EvtExternalGenFactory::EvtExternalGenFactory
EvtExternalGenFactory()=default
EvtExternalGenFactory::EvtExternalGenFactory
EvtExternalGenFactory(const EvtExternalGenFactory &)=delete
EvtExternalGenFactory::getGenerator
EvtAbsExternalGen * getGenerator(const GenId genId)
Definition
EvtExternalGenFactory.cpp:89
EvtExternalGenFactory::initialiseAllGenerators
void initialiseAllGenerators()
Definition
EvtExternalGenFactory.cpp:106
EvtExternalGenFactory::defineTauolaGenerator
void defineTauolaGenerator(bool useEvtGenRandom=true, bool seedTauolaFortran=true)
Definition
EvtExternalGenFactory.cpp:75
EvtExternalGenFactory::operator=
EvtExternalGenFactory & operator=(EvtExternalGenFactory &&)=delete
EvtExternalGenFactory::GenId
GenId
Definition
EvtExternalGenFactory.hh:35
EvtExternalGenFactory::GenId::TauolaGenId
@ TauolaGenId
Definition
EvtExternalGenFactory.hh:37
EvtExternalGenFactory::GenId::PythiaGenId
@ PythiaGenId
Definition
EvtExternalGenFactory.hh:36
EvtExternalGenFactory::m_extGenMap
ExtGenMap m_extGenMap
Definition
EvtExternalGenFactory.hh:66
EvtExternalGenFactory::definePythiaGenerator
void definePythiaGenerator(std::string xmlDir, bool convertPhysCodes, bool useEvtGenRandom=true)
Definition
EvtExternalGenFactory.cpp:45
EvtExternalGenFactory::ExtGenMap
std::map< GenId, std::unique_ptr< EvtAbsExternalGen > > ExtGenMap
Definition
EvtExternalGenFactory.hh:63
Generated by
1.17.0