Geant4 10.7.0
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)
 
 ~G4VHadronPhysics () override
 
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
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
G4int GetInstanceID () const
 
virtual void TerminateWorker ()
 

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
 
G4String namePhysics
 
G4int typePhysics
 
G4ParticleTabletheParticleTable
 
G4int g4vpcInstanceID
 
- 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 53 of file G4VHadronPhysics.cc.

55{
56 SetVerboseLevel(verb);
57 if (verboseLevel>1) {
58 G4cout << "### G4VHadronPhysics: <" << aName << "> is created "
59 << G4endl;
60 }
61}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
void SetVerboseLevel(G4int value)

◆ ~G4VHadronPhysics()

G4VHadronPhysics::~G4VHadronPhysics ( )
override

Definition at line 63 of file G4VHadronPhysics.cc.

64{}

◆ G4VHadronPhysics() [2/2]

G4VHadronPhysics::G4VHadronPhysics ( G4VHadronPhysics )
delete

Member Function Documentation

◆ BuildModel()

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

Definition at line 82 of file G4VHadronPhysics.cc.

85{
86 G4HadronicInteraction* model = mBuilder->GetModel();
87 model->SetMinEnergy(emin);
88 model->SetMaxEnergy(emax);
89 if (verboseLevel>1) {
90 G4cout << "### G4VHadronPhysics <"
91 << model->GetModelName() << " Emin(GeV)= "
92 << emin/GeV << " Emax(GeV)= " << emax/GeV
93 << G4endl;
94 }
95
96 return model;
97}
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 66 of file G4VHadronPhysics.cc.

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

◆ NewModel()

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

Definition at line 100 of file G4VHadronPhysics.cc.

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

◆ operator=()

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

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