#include <UserResonanceFactory.h>
|
static std::shared_ptr< ResonanceWidths > | create (const std::string &name, int pdgid) |
| Call this with the name of the ResonanceWidth and PDG ID to which it will be applied e.g. More...
|
|
|
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 18 of file UserResonanceFactory.h.
◆ UserResonanceFactory()
Pythia8_UserResonance::UserResonanceFactory::UserResonanceFactory |
( |
| ) |
|
|
inlineprivate |
◆ create()
std::shared_ptr< ResonanceWidths > Pythia8_UserResonance::UserResonanceFactory::create |
( |
const std::string & |
name, |
|
|
int |
pdgid |
|
) |
| |
|
static |
Call this with the name of the ResonanceWidth and PDG ID to which it will be applied e.g.
create("MyResonance", 23) will return a MyResonance instance that will be applied to the Z
Definition at line 13 of file UserResonanceFactory.cxx.
15 std::map<std::string, const ICreator*>::const_iterator
it =
s_creators().find(
name);
18 throw std::runtime_error(
"Pythia 8 UserResonanceFactory: cannot create user resonance " +
name);
20 return it->second->create(pdgid);
◆ s_creators()
static function to instantiate map of string name Vs. creator object on first use
Definition at line 24 of file UserResonanceFactory.cxx.
25 static std::map<std::string, const UserResonanceFactory::ICreator*> creators;
The documentation for this class was generated from the following files: