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

#include <G4LEPProtonBuilder.hh>

+ Inheritance diagram for G4LEPProtonBuilder:

Public Member Functions

 G4LEPProtonBuilder ()
 
virtual ~G4LEPProtonBuilder ()
 
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 ()
 
virtual void Build (G4HadronElasticProcess *aP)=0
 
virtual void Build (G4ProtonInelasticProcess *aP)=0
 

Detailed Description

Definition at line 50 of file G4LEPProtonBuilder.hh.

Constructor & Destructor Documentation

◆ G4LEPProtonBuilder()

G4LEPProtonBuilder::G4LEPProtonBuilder ( )

Definition at line 45 of file G4LEPProtonBuilder.cc.

46 : theLEProtonModel(0)
47{
48 theMin = 0;
49 theMax=55*GeV;
50}

◆ ~G4LEPProtonBuilder()

G4LEPProtonBuilder::~G4LEPProtonBuilder ( )
virtual

Definition at line 52 of file G4LEPProtonBuilder.cc.

54{
55 delete theLEProtonModel;
56}

Member Function Documentation

◆ Build() [1/2]

void G4LEPProtonBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 58 of file G4LEPProtonBuilder.cc.

60{
61 G4cout << "Info - G4LEPProtonBuilder::Build() not adding elastic" << G4endl;
62}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout

◆ Build() [2/2]

void G4LEPProtonBuilder::Build ( G4ProtonInelasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 64 of file G4LEPProtonBuilder.cc.

66{
67// G4cout << "adding inelastic Proton in LHEP" << G4endl;
68 theLEProtonModel = new G4LEProtonInelastic();
69 theLEProtonModel->SetMinEnergy(theMin);
70 theLEProtonModel->SetMaxEnergy(theMax);
71 aP->RegisterMe(theLEProtonModel);
72}
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
void RegisterMe(G4HadronicInteraction *a)

◆ SetMaxEnergy()

void G4LEPProtonBuilder::SetMaxEnergy ( G4double  aM)
inline

Definition at line 64 of file G4LEPProtonBuilder.hh.

65 {
66 theMax=aM;
67 }

◆ SetMinEnergy()

void G4LEPProtonBuilder::SetMinEnergy ( G4double  aM)
inline

Definition at line 60 of file G4LEPProtonBuilder.hh.

61 {
62 theMin=aM;
63 }

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