Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4INCLXXProtonBuilder Class Reference

#include <G4INCLXXProtonBuilder.hh>

Inheritance diagram for G4INCLXXProtonBuilder:
G4VProtonBuilder

Public Member Functions

 G4INCLXXProtonBuilder ()
 
virtual ~G4INCLXXProtonBuilder ()
 
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 ()
 

Detailed Description

Builder for proton processes using the INCL++ intra-nuclear cascade model.

By default the INCL++ is used for projectile energies 0 - 3 GeV.

The builder uses INCL++ cascade model with G4ExcitationHandler de-excitation. This is implemented in interface G4INCLXXInterface.

See also
G4INCLXXInterface
G4INCLXXNeutronBuilder
G4INCLXXPiKBuilder

Definition at line 55 of file G4INCLXXProtonBuilder.hh.

Constructor & Destructor Documentation

G4INCLXXProtonBuilder::G4INCLXXProtonBuilder ( )

Definition at line 37 of file G4INCLXXProtonBuilder.cc.

References G4HadronicInteractionRegistry::FindModel(), python.hepunit::GeV, G4HadronicInteractionRegistry::Instance(), and python.hepunit::MeV.

38 {
39  thePreCompoundMin = 0;
40  thePreCompoundMax = 2*MeV;
41  theMin = 1.0*MeV;
42  theMax = 3.0*GeV;
45  thePreCompoundModel = static_cast<G4VPreCompoundModel*>(p);
46  if(!thePreCompoundModel) { thePreCompoundModel = new G4PreCompoundModel(); }
47  theModel = new G4INCLXXInterface(thePreCompoundModel);
48 }
const char * p
Definition: xmltok.h:285
INCL++ intra-nuclear cascade.
G4HadronicInteraction * FindModel(const G4String &name)
static G4HadronicInteractionRegistry * Instance()
G4INCLXXProtonBuilder::~G4INCLXXProtonBuilder ( )
virtual

Definition at line 51 of file G4INCLXXProtonBuilder.cc.

52 {
53  delete theModel;
54 }

Member Function Documentation

void G4INCLXXProtonBuilder::Build ( G4HadronElasticProcess aP)
virtual

Build elastic process.

No elastic process is built.

Implements G4VProtonBuilder.

Definition at line 57 of file G4INCLXXProtonBuilder.cc.

58 {
59 }
void G4INCLXXProtonBuilder::Build ( G4ProtonInelasticProcess aP)
virtual

Build inelastic process.

Implements G4VProtonBuilder.

Definition at line 62 of file G4INCLXXProtonBuilder.cc.

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

63 {
64  thePreCompoundModel->SetMinEnergy(thePreCompoundMin);
65  thePreCompoundModel->SetMaxEnergy(thePreCompoundMax);
66  aP->RegisterMe(thePreCompoundModel);
67  theModel->SetMinEnergy(theMin);
68  theModel->SetMaxEnergy(theMax);
69  aP->RegisterMe(theModel);
71 }
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
static G4Proton * Proton()
Definition: G4Proton.cc:93
void SetMaxEnergy(const G4double anEnergy)
void G4INCLXXProtonBuilder::SetMaxEnergy ( G4double  aM)
inline

Set the maximum energy limit for the model.

Definition at line 82 of file G4INCLXXProtonBuilder.hh.

82 {theMax = aM;}
void G4INCLXXProtonBuilder::SetMinEnergy ( G4double  aM)
inline

Set the minimum energy limit for the model.

Definition at line 77 of file G4INCLXXProtonBuilder.hh.

77 {theMin = aM;}

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