Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4CrossSectionFactory< T, 1 > Class Template Reference

#include <G4CrossSectionFactory.hh>

Inheritance diagram for G4CrossSectionFactory< T, 1 >:

Public Member Functions

 G4CrossSectionFactory (const G4String &name)
G4VCrossSectionDataSetInstantiate () override
Public Member Functions inherited from G4VBaseXSFactory
 G4VBaseXSFactory ()
virtual ~G4VBaseXSFactory ()=default

Additional Inherited Members

Protected Attributes inherited from G4VBaseXSFactory
G4CrossSectionFactoryRegistryfRegistry

Detailed Description

template<typename T>
class G4CrossSectionFactory< T, 1 >

Definition at line 89 of file G4CrossSectionFactory.hh.

Constructor & Destructor Documentation

◆ G4CrossSectionFactory()

template<typename T>
G4CrossSectionFactory< T, 1 >::G4CrossSectionFactory ( const G4String & name)
inline

Definition at line 92 of file G4CrossSectionFactory.hh.

93 {
94 fRegistry->Register(name,this);
95 }
G4CrossSectionFactoryRegistry * fRegistry

Member Function Documentation

◆ Instantiate()

template<typename T>
G4VCrossSectionDataSet * G4CrossSectionFactory< T, 1 >::Instantiate ( )
inlineoverridevirtual

Implements G4VBaseXSFactory.

Definition at line 97 of file G4CrossSectionFactory.hh.

98 {
99 static T* shared = new T();
100 return shared;
101 }

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