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

#include <G4BinaryProtonBuilder.hh>

+ Inheritance diagram for G4BinaryProtonBuilder:

Public Member Functions

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

Detailed Description

Definition at line 52 of file G4BinaryProtonBuilder.hh.

Constructor & Destructor Documentation

◆ G4BinaryProtonBuilder()

G4BinaryProtonBuilder::G4BinaryProtonBuilder ( )

Definition at line 45 of file G4BinaryProtonBuilder.cc.

47{
48 theModel = new G4BinaryCascade();
49 theMin = 0;
50 theMax = 9.9*GeV;
51}

◆ ~G4BinaryProtonBuilder()

G4BinaryProtonBuilder::~G4BinaryProtonBuilder ( )
virtual

Definition at line 61 of file G4BinaryProtonBuilder.cc.

63{
64}

Member Function Documentation

◆ Build() [1/2]

void G4BinaryProtonBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 66 of file G4BinaryProtonBuilder.cc.

68{
69}

◆ Build() [2/2]

void G4BinaryProtonBuilder::Build ( G4ProtonInelasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 53 of file G4BinaryProtonBuilder.cc.

55{
56 theModel->SetMinEnergy(theMin);
57 theModel->SetMaxEnergy(theMax);
58 aP->RegisterMe(theModel);
59}
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
void RegisterMe(G4HadronicInteraction *a)

◆ SetMaxEnergy()

void G4BinaryProtonBuilder::SetMaxEnergy ( G4double  aM)
inline

Definition at line 63 of file G4BinaryProtonBuilder.hh.

63{theMax = aM;}

◆ SetMinEnergy()

void G4BinaryProtonBuilder::SetMinEnergy ( G4double  aM)
inline

Definition at line 62 of file G4BinaryProtonBuilder.hh.

62{theMin = aM;}

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