Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VHadronModelBuilder Class Referenceabstract

#include <G4VHadronModelBuilder.hh>

+ Inheritance diagram for G4VHadronModelBuilder:

Public Member Functions

 G4VHadronModelBuilder (const G4String &name="")
 
virtual ~G4VHadronModelBuilder ()
 
G4HadronicInteractionGetModel ()
 
const G4StringGetName () const
 

Protected Member Functions

virtual G4HadronicInteractionBuildModel ()=0
 

Detailed Description

Definition at line 44 of file G4VHadronModelBuilder.hh.

Constructor & Destructor Documentation

◆ G4VHadronModelBuilder()

G4VHadronModelBuilder::G4VHadronModelBuilder ( const G4String name = "")

Definition at line 41 of file G4VHadronModelBuilder.cc.

42 : model(0),name(aName)
43{}

◆ ~G4VHadronModelBuilder()

G4VHadronModelBuilder::~G4VHadronModelBuilder ( )
virtual

Definition at line 45 of file G4VHadronModelBuilder.cc.

46{}

Member Function Documentation

◆ BuildModel()

virtual G4HadronicInteraction * G4VHadronModelBuilder::BuildModel ( )
protectedpure virtual

Implemented in G4FTFBuilder, and G4QGSBuilder.

Referenced by GetModel().

◆ GetModel()

G4HadronicInteraction * G4VHadronModelBuilder::GetModel ( )

Definition at line 48 of file G4VHadronModelBuilder.cc.

49{
50 if(!model) model = BuildModel();
51 return model;
52}
virtual G4HadronicInteraction * BuildModel()=0

Referenced by G4VHadronPhysics::BuildModel(), and G4IonPhysics::ConstructProcess().

◆ GetName()

const G4String & G4VHadronModelBuilder::GetName ( ) const
inline

Definition at line 70 of file G4VHadronModelBuilder.hh.

71{
72 return name;
73}

Referenced by G4FTFBuilder::BuildModel(), and G4QGSBuilder::BuildModel().


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