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

#include <G4BertiniProtonBuilder.hh>

+ Inheritance diagram for G4BertiniProtonBuilder:

Public Member Functions

 G4BertiniProtonBuilder ()
 
virtual ~G4BertiniProtonBuilder ()
 
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 G4BertiniProtonBuilder.hh.

Constructor & Destructor Documentation

◆ G4BertiniProtonBuilder()

G4BertiniProtonBuilder::G4BertiniProtonBuilder ( )

Definition at line 45 of file G4BertiniProtonBuilder.cc.

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

◆ ~G4BertiniProtonBuilder()

G4BertiniProtonBuilder::~G4BertiniProtonBuilder ( )
virtual

Definition at line 53 of file G4BertiniProtonBuilder.cc.

55{
56}

Member Function Documentation

◆ Build() [1/2]

void G4BertiniProtonBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 58 of file G4BertiniProtonBuilder.cc.

60{
61}

◆ Build() [2/2]

void G4BertiniProtonBuilder::Build ( G4ProtonInelasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 63 of file G4BertiniProtonBuilder.cc.

65{
66 theModel->SetMinEnergy(theMin);
67 theModel->SetMaxEnergy(theMax);
68 aP->RegisterMe(theModel);
69}
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
void RegisterMe(G4HadronicInteraction *a)

◆ SetMaxEnergy()

void G4BertiniProtonBuilder::SetMaxEnergy ( G4double  aM)
inline

Definition at line 63 of file G4BertiniProtonBuilder.hh.

63{theMax = aM;}

◆ SetMinEnergy()

void G4BertiniProtonBuilder::SetMinEnergy ( G4double  aM)
inline

Definition at line 62 of file G4BertiniProtonBuilder.hh.

62{theMin = aM;}

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