Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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

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

Definition at line 49 of file G4CrossSectionFactory.hh.

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

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

Member Function Documentation

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

Implements G4VBaseXSFactory.

Definition at line 54 of file G4CrossSectionFactory.hh.

References FatalException, and G4Exception().

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

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