Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VHadronPhysics Class Reference

#include <G4VHadronPhysics.hh>

+ Inheritance diagram for G4VHadronPhysics:

Public Member Functions

 G4VHadronPhysics (const G4String &name="hInelastic", G4int verbose=0)
 
virtual ~G4VHadronPhysics ()
 
void ConstructParticle () override
 
G4HadronicInteractionBuildModel (G4VHadronModelBuilder *, G4double emin, G4double emax)
 
G4HadronicInteractionNewModel (G4HadronicInteraction *, G4double emin, G4double emax)
 
 G4VHadronPhysics (G4VHadronPhysics &)=delete
 
G4VHadronPhysicsoperator= (const G4VHadronPhysics &right)=delete
 
- Public Member Functions inherited from G4VPhysicsConstructor
 G4VPhysicsConstructor (const G4String &="")
 
 G4VPhysicsConstructor (const G4String &name, G4int physics_type)
 
virtual ~G4VPhysicsConstructor ()
 
virtual void ConstructParticle ()=0
 
virtual void ConstructProcess ()=0
 
void SetPhysicsName (const G4String &="")
 
const G4StringGetPhysicsName () const
 
void SetPhysicsType (G4int)
 
G4int GetPhysicsType () const
 
G4int GetInstanceID () const
 
virtual void TerminateWorker ()
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VPhysicsConstructor
static const G4VPCManagerGetSubInstanceManager ()
 
- Protected Types inherited from G4VPhysicsConstructor
using PhysicsBuilder_V = G4VPCData::PhysicsBuilders_V
 
- Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
G4ParticleTable::G4PTblDicIteratorGetParticleIterator () const
 
PhysicsBuilder_V GetBuilders () const
 
void AddBuilder (G4PhysicsBuilderInterface *bld)
 
- Protected Attributes inherited from G4VPhysicsConstructor
G4int verboseLevel = 0
 
G4String namePhysics = ""
 
G4int typePhysics = 0
 
G4ParticleTabletheParticleTable = nullptr
 
G4int g4vpcInstanceID = 0
 
- Static Protected Attributes inherited from G4VPhysicsConstructor
static G4RUN_DLL G4VPCManager subInstanceManager
 

Detailed Description

Definition at line 49 of file G4VHadronPhysics.hh.

Constructor & Destructor Documentation

◆ G4VHadronPhysics() [1/2]

G4VHadronPhysics::G4VHadronPhysics ( const G4String name = "hInelastic",
G4int  verbose = 0 
)

Definition at line 54 of file G4VHadronPhysics.cc.

56{
57 SetVerboseLevel(verb);
59 if (verboseLevel>1) {
60 G4cout << "### G4VHadronPhysics: <" << aName << "> is created "
61 << G4endl;
62 }
63}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
static G4HadronicParameters * Instance()
void SetVerboseLevel(const G4int val)
void SetVerboseLevel(G4int value)

◆ ~G4VHadronPhysics()

G4VHadronPhysics::~G4VHadronPhysics ( )
virtual

Definition at line 65 of file G4VHadronPhysics.cc.

66{}

◆ G4VHadronPhysics() [2/2]

G4VHadronPhysics::G4VHadronPhysics ( G4VHadronPhysics )
delete

Member Function Documentation

◆ BuildModel()

G4HadronicInteraction * G4VHadronPhysics::BuildModel ( G4VHadronModelBuilder mBuilder,
G4double  emin,
G4double  emax 
)

Definition at line 84 of file G4VHadronPhysics.cc.

87{
88 G4HadronicInteraction* model = mBuilder->GetModel();
89 model->SetMinEnergy(emin);
90 model->SetMaxEnergy(emax);
91 if (verboseLevel>1) {
92 G4cout << "### G4VHadronPhysics <"
93 << model->GetModelName() << " Emin(GeV)= "
94 << emin/GeV << " Emax(GeV)= " << emax/GeV
95 << G4endl;
96 }
97
98 return model;
99}
void SetMinEnergy(G4double anEnergy)
const G4String & GetModelName() const
void SetMaxEnergy(const G4double anEnergy)
G4HadronicInteraction * GetModel()

◆ ConstructParticle()

void G4VHadronPhysics::ConstructParticle ( )
overridevirtual

Implements G4VPhysicsConstructor.

Definition at line 68 of file G4VHadronPhysics.cc.

69{
70 G4MesonConstructor pMesonConstructor;
71 pMesonConstructor.ConstructParticle();
72
73 G4BaryonConstructor pBaryonConstructor;
74 pBaryonConstructor.ConstructParticle();
75
76 G4IonConstructor pIonConstructor;
77 pIonConstructor.ConstructParticle();
78
79 G4ShortLivedConstructor pShortLivedConstructor;
80 pShortLivedConstructor.ConstructParticle();
81}
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()

◆ NewModel()

G4HadronicInteraction * G4VHadronPhysics::NewModel ( G4HadronicInteraction model,
G4double  emin,
G4double  emax 
)

Definition at line 102 of file G4VHadronPhysics.cc.

105{
106 if(nullptr == model) return model;
107 model->SetMinEnergy(emin);
108 model->SetMaxEnergy(emax);
109 if (verboseLevel>1) {
110 G4cout << "### G4VHadronPhysics <"
111 << model->GetModelName() << " Emin(GeV)= "
112 << emin/GeV << " Emax(GeV)= " << emax/GeV
113 << G4endl;
114 }
115 return model;
116}

◆ operator=()

G4VHadronPhysics & G4VHadronPhysics::operator= ( const G4VHadronPhysics right)
delete

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