#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 More...
|
|
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.
12 std::map<std::string, const ICreator*>::const_iterator
it =
s_creators().find(
name);
15 throw std::runtime_error(
"Pythia 8 UserProcessFactory: cannot create user process " +
name);
18 return it->second->create();
◆ s_creators()
static function to instantiate map of string name Vs. creator object on first use
Definition at line 22 of file UserProcessFactory.cxx.
23 static std::map<std::string, const UserProcessFactory::ICreator*> creators;
The documentation for this class was generated from the following files: