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

#include <G4LHEPProtonBuilder.hh>

+ Inheritance diagram for G4LHEPProtonBuilder:

Public Member Functions

 G4LHEPProtonBuilder ()
 
virtual ~G4LHEPProtonBuilder ()
 
virtual void Build (G4ProtonInelasticProcess *aP)
 
virtual void Build (G4HadronElasticProcess *)
 
void SetMinEnergy (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 38 of file G4LHEPProtonBuilder.hh.

Constructor & Destructor Documentation

◆ G4LHEPProtonBuilder()

G4LHEPProtonBuilder::G4LHEPProtonBuilder ( )

Definition at line 32 of file G4LHEPProtonBuilder.cc.

33 :
34 theLEProtonModel(0), theHEProtonModel(0)
35{
36 theMin = 0;
37}

◆ ~G4LHEPProtonBuilder()

G4LHEPProtonBuilder::~G4LHEPProtonBuilder ( )
virtual

Definition at line 39 of file G4LHEPProtonBuilder.cc.

41{
42 delete theLEProtonModel;
43 delete theHEProtonModel;
44}

Member Function Documentation

◆ Build() [1/2]

void G4LHEPProtonBuilder::Build ( G4HadronElasticProcess )
virtual

Implements G4VProtonBuilder.

Definition at line 46 of file G4LHEPProtonBuilder.cc.

48{
49}

◆ Build() [2/2]

void G4LHEPProtonBuilder::Build ( G4ProtonInelasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 51 of file G4LHEPProtonBuilder.cc.

53{
54 theLEProtonModel = new G4LEProtonInelastic();
55 theHEProtonModel = new G4HEProtonInelastic();
56 theLEProtonModel->SetMinEnergy(theMin);
57 theLEProtonModel->SetMaxEnergy(55*GeV);
58 theHEProtonModel->SetMinEnergy(25*GeV);
59 aP->RegisterMe(theLEProtonModel);
60 aP->RegisterMe(theHEProtonModel);
61}
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
void RegisterMe(G4HadronicInteraction *a)

◆ SetMinEnergy()

void G4LHEPProtonBuilder::SetMinEnergy ( G4double  aM)
inline

Definition at line 48 of file G4LHEPProtonBuilder.hh.

49 {
50 theMin = aM;
51 }

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