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

#include <G4DeuteronPHPBuilder.hh>

+ Inheritance diagram for G4DeuteronPHPBuilder:

Public Member Functions

 G4DeuteronPHPBuilder ()
 
virtual ~G4DeuteronPHPBuilder ()
 
virtual void Build (G4DeuteronInelasticProcess *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 (G4DeuteronInelasticProcess *aP)=0
 
- Public Member Functions inherited from G4VDeuteronBuilder
 G4VDeuteronBuilder ()=default
 
virtual ~G4VDeuteronBuilder ()
 
virtual void Build (G4HadronElasticProcess *aP)=0
 
virtual void Build (G4DeuteronInelasticProcess *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 49 of file G4DeuteronPHPBuilder.hh.

Constructor & Destructor Documentation

◆ G4DeuteronPHPBuilder()

G4DeuteronPHPBuilder::G4DeuteronPHPBuilder ( )

Definition at line 33 of file G4DeuteronPHPBuilder.cc.

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

◆ ~G4DeuteronPHPBuilder()

virtual G4DeuteronPHPBuilder::~G4DeuteronPHPBuilder ( )
inlinevirtual

Definition at line 53 of file G4DeuteronPHPBuilder.hh.

53{}

Member Function Documentation

◆ Build() [1/4]

void G4DeuteronPHPBuilder::Build ( G4DeuteronInelasticProcess aP)
finaloverridevirtual

Implements G4VDeuteronBuilder.

Definition at line 47 of file G4DeuteronPHPBuilder.cc.

49{
51 theDeuteronHPInelasticData->SetMinKinEnergy(theMin);
52 theDeuteronHPInelasticData->SetMaxKinEnergy(theMax);
53 aP->AddDataSet(theDeuteronHPInelasticData);
54
55 theParticlePHPModel = new G4ParticleHPInelastic(G4Deuteron::Deuteron(),"ParticleHPInelastic");
56 theParticlePHPModel->SetMinEnergy(theMin);
57 theParticlePHPModel->SetMaxEnergy(theMax);
58 aP->RegisterMe(theParticlePHPModel);
59
60}
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:93
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void RegisterMe(G4HadronicInteraction *a)
void SetMaxKinEnergy(G4double value)
void SetMinKinEnergy(G4double value)

◆ Build() [2/4]

virtual void G4VDeuteronBuilder::Build ( G4DeuteronInelasticProcess aP)
virtual

Implements G4VDeuteronBuilder.

◆ Build() [3/4]

void G4DeuteronPHPBuilder::Build ( G4HadronElasticProcess aP)
finaloverridevirtual

Implements G4VDeuteronBuilder.

Definition at line 41 of file G4DeuteronPHPBuilder.cc.

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

◆ Build() [4/4]

virtual void G4VDeuteronBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VDeuteronBuilder.

◆ SetMaxEnergy()

virtual void G4DeuteronPHPBuilder::SetMaxEnergy ( G4double  aM)
inlinefinaloverridevirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 63 of file G4DeuteronPHPBuilder.hh.

64 {
65 theMax=aM;
66 }

◆ SetMinEnergy()

virtual void G4DeuteronPHPBuilder::SetMinEnergy ( G4double  aM)
inlinefinaloverridevirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 59 of file G4DeuteronPHPBuilder.hh.

60 {
61 theMin=aM;
62 }

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