G4LEPProtonBuilder Class Reference

#include <G4LEPProtonBuilder.hh>

Inheritance diagram for G4LEPProtonBuilder:

G4VProtonBuilder

Public Member Functions

 G4LEPProtonBuilder ()
virtual ~G4LEPProtonBuilder ()
virtual void Build (G4ProtonInelasticProcess *aP)
virtual void Build (G4HadronElasticProcess *aP)
void SetMinEnergy (G4double aM)
void SetMaxEnergy (G4double aM)

Detailed Description

Definition at line 50 of file G4LEPProtonBuilder.hh.


Constructor & Destructor Documentation

G4LEPProtonBuilder::G4LEPProtonBuilder (  ) 

Definition at line 46 of file G4LEPProtonBuilder.cc.

00046                      : theLEProtonModel(0)
00047 {
00048   theMin = 0;
00049   theMax=55*GeV;
00050 }

G4LEPProtonBuilder::~G4LEPProtonBuilder (  )  [virtual]

Definition at line 53 of file G4LEPProtonBuilder.cc.

00054 {
00055   delete theLEProtonModel;
00056 }


Member Function Documentation

void G4LEPProtonBuilder::Build ( G4HadronElasticProcess aP  )  [virtual]

Implements G4VProtonBuilder.

Definition at line 59 of file G4LEPProtonBuilder.cc.

References G4cout, and G4endl.

00060 {
00061      G4cout << "Info - G4LEPProtonBuilder::Build() not adding elastic" << G4endl;
00062 }

void G4LEPProtonBuilder::Build ( G4ProtonInelasticProcess aP  )  [virtual]

Implements G4VProtonBuilder.

Definition at line 65 of file G4LEPProtonBuilder.cc.

References G4HadronicProcess::RegisterMe(), G4HadronicInteraction::SetMaxEnergy(), and G4HadronicInteraction::SetMinEnergy().

00066 {
00067 // G4cout << "adding inelastic Proton in LHEP" << G4endl;
00068   theLEProtonModel = new G4LEProtonInelastic();
00069   theLEProtonModel->SetMinEnergy(theMin);
00070   theLEProtonModel->SetMaxEnergy(theMax);
00071   aP->RegisterMe(theLEProtonModel);
00072 }

void G4LEPProtonBuilder::SetMaxEnergy ( G4double  aM  )  [inline]

Definition at line 64 of file G4LEPProtonBuilder.hh.

00065     {
00066       theMax=aM;
00067     }

void G4LEPProtonBuilder::SetMinEnergy ( G4double  aM  )  [inline]

Definition at line 60 of file G4LEPProtonBuilder.hh.

00061     {
00062       theMin=aM;
00063     }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:52:24 2013 for Geant4 by  doxygen 1.4.7