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

#include <G4ProtonPHPBuilder.hh>

+ Inheritance diagram for G4ProtonPHPBuilder:

Public Member Functions

 G4ProtonPHPBuilder ()
 
virtual ~G4ProtonPHPBuilder ()
 
virtual void Build (G4ProtonInelasticProcess *aP) final override
 
virtual void Build (G4HadronElasticProcess *aP) final override
 
virtual void SetMinEnergy (G4double aM) final override
 
virtual void SetMaxEnergy (G4double aM) final override
 
virtual void Build (G4HadronElasticProcess *aP)=0
 
virtual void Build (G4ProtonInelasticProcess *aP)=0
 
- Public Member Functions inherited from G4VProtonBuilder
 G4VProtonBuilder ()=default
 
virtual ~G4VProtonBuilder ()
 
virtual void Build (G4HadronElasticProcess *aP)=0
 
virtual void Build (G4ProtonInelasticProcess *aP)=0
 
virtual void Build ()
 
- Public Member Functions inherited from G4PhysicsBuilderInterface
 G4PhysicsBuilderInterface ()=default
 
virtual ~G4PhysicsBuilderInterface ()
 
virtual void Build ()
 
virtual void RegisterMe (G4PhysicsBuilderInterface *)
 
virtual void SetMinEnergy (G4double)
 
virtual void SetMaxEnergy (G4double)
 

Detailed Description

Definition at line 46 of file G4ProtonPHPBuilder.hh.

Constructor & Destructor Documentation

◆ G4ProtonPHPBuilder()

G4ProtonPHPBuilder::G4ProtonPHPBuilder ( )

Definition at line 33 of file G4ProtonPHPBuilder.cc.

35{
36 theMin = 0;
37 theMax=200.*MeV;
38}

◆ ~G4ProtonPHPBuilder()

virtual G4ProtonPHPBuilder::~G4ProtonPHPBuilder ( )
inlinevirtual

Definition at line 50 of file G4ProtonPHPBuilder.hh.

50{}

Member Function Documentation

◆ Build() [1/4]

void G4ProtonPHPBuilder::Build ( G4HadronElasticProcess aP)
finaloverridevirtual

Implements G4VProtonBuilder.

Definition at line 40 of file G4ProtonPHPBuilder.cc.

42{
43 G4cout << "Info - G4ProtonPHPBuilder::Build() not adding elastic" << G4endl;
44}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout

◆ Build() [2/4]

virtual void G4VProtonBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VProtonBuilder.

◆ Build() [3/4]

void G4ProtonPHPBuilder::Build ( G4ProtonInelasticProcess aP)
finaloverridevirtual

Implements G4VProtonBuilder.

Definition at line 46 of file G4ProtonPHPBuilder.cc.

48{
50 theProtonHPInelasticData->SetMinKinEnergy(theMin);
51 theProtonHPInelasticData->SetMaxKinEnergy(theMax);
52 aP->AddDataSet(theProtonHPInelasticData);
53
54 G4ParticleHPInelastic* theParticlePHPModel =
55 new G4ParticleHPInelastic(G4Proton::Proton(),"ParticleHPInelastic");
56 theParticlePHPModel->SetMinEnergy(theMin);
57 theParticlePHPModel->SetMaxEnergy(theMax);
58 aP->RegisterMe(theParticlePHPModel);
59 // theParticleModel->DumpInfo();
60
61}
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void RegisterMe(G4HadronicInteraction *a)
static G4Proton * Proton()
Definition: G4Proton.cc:92
void SetMaxKinEnergy(G4double value)
void SetMinKinEnergy(G4double value)

◆ Build() [4/4]

virtual void G4VProtonBuilder::Build ( G4ProtonInelasticProcess aP)
virtual

Implements G4VProtonBuilder.

◆ SetMaxEnergy()

virtual void G4ProtonPHPBuilder::SetMaxEnergy ( G4double  aM)
inlinefinaloverridevirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 59 of file G4ProtonPHPBuilder.hh.

60 {
61 theMax=aM;
62 }

◆ SetMinEnergy()

virtual void G4ProtonPHPBuilder::SetMinEnergy ( G4double  aM)
inlinefinaloverridevirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 55 of file G4ProtonPHPBuilder.hh.

56 {
57 theMin=aM;
58 }

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