Belle II Software development
EvtGenModelRegister::Factory< MODEL > Class Template Reference

Helper Class to easily register new EvtDecayBases for Belle2. More...

#include <EvtGenModelRegister.h>

Public Member Functions

 Factory ()
 Constructor to register a model with a given name.
 

Static Public Member Functions

static EvtDecayBase * factory ()
 Create a new instance of the EvtDecayBase and return the pointer.
 

Detailed Description

template<class MODEL>
class Belle2::EvtGenModelRegister::Factory< MODEL >

Helper Class to easily register new EvtDecayBases for Belle2.

Definition at line 29 of file EvtGenModelRegister.h.

Constructor & Destructor Documentation

◆ Factory()

Factory ( )
inline

Constructor to register a model with a given name.

Definition at line 32 of file EvtGenModelRegister.h.

33 {
35 }
static EvtDecayBase * factory()
Create a new instance of the EvtDecayBase and return the pointer.
static void registerModel(ModelFactory *factory)
Register a new Model, called by the EvtGenModelRegister::Factory class.

Member Function Documentation

◆ factory()

static EvtDecayBase * factory ( )
inlinestatic

Create a new instance of the EvtDecayBase and return the pointer.

Definition at line 37 of file EvtGenModelRegister.h.

38 {
39 return new MODEL();
40 }

The documentation for this class was generated from the following file: