#include <UserProcessFactory.h>
|
| static std::shared_ptr< Sigma2Process > | create (const std::string &procName) |
|
| static std::map< std::string, const ICreator * > & | s_creators () |
| | static function to instantiate map of string name Vs. creator object on first use
|
Definition at line 19 of file UserProcessFactory.h.
◆ UserProcessFactory()
| Pythia8_UserProcess::UserProcessFactory::UserProcessFactory |
( |
| ) |
|
|
inlineprivate |
◆ create()
| std::shared_ptr< Sigma2Process > Pythia8_UserProcess::UserProcessFactory::create |
( |
const std::string & | procName | ) |
|
|
static |
Definition at line 11 of file UserProcessFactory.cxx.
11 {
12 std::map<std::string, const ICreator*>::const_iterator
it =
s_creators().find(name);
14
15 throw std::runtime_error("Pythia 8 UserProcessFactory: cannot create user process " + name);
16 }
17
18 return it->second->create();
19 }
static std::map< std::string, const ICreator * > & s_creators()
static function to instantiate map of string name Vs. creator object on first use
◆ s_creators()
static function to instantiate map of string name Vs. creator object on first use
Definition at line 22 of file UserProcessFactory.cxx.
22 {
23 static std::map<std::string, const UserProcessFactory::ICreator*> creators;
24 return creators;
25 }
The documentation for this class was generated from the following files: