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

#include <G4CrossSectionFactory.hh>

+ Inheritance diagram for G4CrossSectionFactory< T, mode >:

Public Member Functions

 G4CrossSectionFactory (const G4String &name)
 
virtual G4VCrossSectionDataSetInstantiate ()
 
- Public Member Functions inherited from G4VBaseXSFactory

Detailed Description

template<typename T, int mode>
class G4CrossSectionFactory< T, mode >

Definition at line 46 of file G4CrossSectionFactory.hh.

Constructor & Destructor Documentation

◆ G4CrossSectionFactory()

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

Definition at line 49 of file G4CrossSectionFactory.hh.

50 {
52 }
static G4CrossSectionFactoryRegistry * Instance()
void Register(const G4String &name, G4VBaseXSFactory *factory)

Member Function Documentation

◆ Instantiate()

template<typename T , int mode>
virtual G4VCrossSectionDataSet * G4CrossSectionFactory< T, mode >::Instantiate ( )
inlinevirtual

Implements G4VBaseXSFactory.

Definition at line 54 of file G4CrossSectionFactory.hh.

55 {
57 msg<<"Factory mode: "<<mode<<" not supported!";
58 G4Exception("G4CrossSectionFactory::Instantiate","CrossSectionFactory001",FatalException,msg);
59 return static_cast<T*>(0);
60 }
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription

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