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

#include <G4FTFPProtonBuilder.hh>

Inheritance diagram for G4FTFPProtonBuilder:
G4VProtonBuilder

Public Member Functions

 G4FTFPProtonBuilder (G4bool quasiElastic=false)
 
virtual ~G4FTFPProtonBuilder ()
 
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

Definition at line 59 of file G4FTFPProtonBuilder.hh.

Constructor & Destructor Documentation

G4FTFPProtonBuilder::G4FTFPProtonBuilder ( G4bool  quasiElastic = false)

Definition at line 49 of file G4FTFPProtonBuilder.cc.

References python.hepunit::GeV, G4VPartonStringModel::SetFragmentationModel(), G4TheoFSGenerator::SetHighEnergyGenerator(), G4HadronicInteraction::SetMaxEnergy(), G4HadronicInteraction::SetMinEnergy(), G4TheoFSGenerator::SetQuasiElasticChannel(), G4TheoFSGenerator::SetTransport(), and python.hepunit::TeV.

50 {
51  theMin = 4*GeV;
52  theMax = 100.*TeV;
53  theModel = new G4TheoFSGenerator("FTFP");
54 
55  theStringModel = new G4FTFModel;
56  theStringDecay = new G4ExcitedStringDecay(theLund = new G4LundStringFragmentation);
57  theStringModel->SetFragmentationModel(theStringDecay);
58 
59  thePreEquilib = new G4PreCompoundModel(theHandler = new G4ExcitationHandler);
60  theCascade = new G4GeneratorPrecompoundInterface(thePreEquilib);
61 
62  theModel->SetHighEnergyGenerator(theStringModel);
63  if (quasiElastic)
64  {
65  theQuasiElastic=new G4QuasiElasticChannel;
66  theModel->SetQuasiElasticChannel(theQuasiElastic);
67  } else
68  { theQuasiElastic=0;}
69 
70  theModel->SetTransport(theCascade);
71  theModel->SetMinEnergy(theMin);
72  theModel->SetMaxEnergy(100*TeV);
73 }
void SetQuasiElasticChannel(G4QuasiElasticChannel *const value)
void SetFragmentationModel(G4VStringFragmentation *aModel)
void SetHighEnergyGenerator(G4VHighEnergyGenerator *const value)
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
void SetTransport(G4VIntraNuclearTransportModel *const value)
G4FTFPProtonBuilder::~G4FTFPProtonBuilder ( )
virtual

Definition at line 86 of file G4FTFPProtonBuilder.cc.

87 {
88  delete theStringDecay;
89  delete theStringModel;
90  delete theModel;
91  delete theCascade;
92  if ( theQuasiElastic ) delete theQuasiElastic;
93  //delete theHandler;
94  delete theLund;
95 }

Member Function Documentation

void G4FTFPProtonBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 98 of file G4FTFPProtonBuilder.cc.

99 {
100 }
void G4FTFPProtonBuilder::Build ( G4ProtonInelasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 76 of file G4FTFPProtonBuilder.cc.

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

77 {
78  theModel->SetMinEnergy(theMin);
79  theModel->SetMaxEnergy(theMax);
80  aP->RegisterMe(theModel);
81 
83 }
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 G4FTFPProtonBuilder::SetMaxEnergy ( G4double  aM)
inline

Definition at line 70 of file G4FTFPProtonBuilder.hh.

70 {theMax = aM;}
void G4FTFPProtonBuilder::SetMinEnergy ( G4double  aM)
inline

Definition at line 69 of file G4FTFPProtonBuilder.hh.

69 {theMin = aM;}

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