Geant4-11
Public Member Functions
G4CrossSectionFactory< T, mode > Class Template Reference

#include <G4CrossSectionFactory.hh>

Inheritance diagram for G4CrossSectionFactory< T, mode >:
G4VBaseXSFactory

Public Member Functions

 G4CrossSectionFactory (const G4String &name)
 
virtual G4VCrossSectionDataSetInstantiate ()
 

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)
const char * name(G4int ptype)

References G4CrossSectionFactoryRegistry::Instance(), G4InuclParticleNames::name(), and G4CrossSectionFactoryRegistry::Register().

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

References FatalException, and G4Exception().


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