Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4ProtonPHPBuilder Class Reference

#include <G4ProtonPHPBuilder.hh>

Inheritance diagram for G4ProtonPHPBuilder:
Collaboration diagram for G4ProtonPHPBuilder:

Public Member Functions

 G4ProtonPHPBuilder ()
 
virtual ~G4ProtonPHPBuilder ()
 
virtual void Build (G4ProtonInelasticProcess *aP)
 
virtual void Build (G4HadronElasticProcess *aP)
 
void SetMinEnergy (G4double aM)
 
void SetMaxEnergy (G4double aM)
 
- Public Member Functions inherited from G4VProtonBuilder
 G4VProtonBuilder ()
 
virtual ~G4VProtonBuilder ()
 

Detailed Description

Definition at line 46 of file G4ProtonPHPBuilder.hh.

Constructor & Destructor Documentation

G4ProtonPHPBuilder::G4ProtonPHPBuilder ( )

Definition at line 34 of file G4ProtonPHPBuilder.cc.

35 {
36  theMin = 0;
37  theMax=200.*MeV;
38  theParticlePHPModel = 0;
39 }
static constexpr double MeV
Definition: G4SIunits.hh:214
G4ProtonPHPBuilder::~G4ProtonPHPBuilder ( )
virtual

Definition at line 42 of file G4ProtonPHPBuilder.cc.

43 {}

Member Function Documentation

void G4ProtonPHPBuilder::Build ( G4ProtonInelasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 52 of file G4ProtonPHPBuilder.cc.

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

Here is the call graph for this function:

void G4ProtonPHPBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 46 of file G4ProtonPHPBuilder.cc.

47 {
48  G4cout << "Info - G4ProtonPHPBuilder::Build() not adding elastic" << G4endl;
49 }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
void G4ProtonPHPBuilder::SetMaxEnergy ( G4double  aM)
inline

Definition at line 60 of file G4ProtonPHPBuilder.hh.

61  {
62  theMax=aM;
63  }
void G4ProtonPHPBuilder::SetMinEnergy ( G4double  aM)
inline

Definition at line 56 of file G4ProtonPHPBuilder.hh.

57  {
58  theMin=aM;
59  }

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