Geant4 11.1.1
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 ()
 
virtual G4VCrossSectionDataSetInstantiate ()=0
 

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)
Definition: G4Exception.cc:59
std::ostringstream G4ExceptionDescription
Definition: G4Exception.hh:40

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