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

#include <G4FTFBinaryProtonBuilder.hh>

Inheritance diagram for G4FTFBinaryProtonBuilder:
G4VProtonBuilder

Public Member Functions

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

Constructor & Destructor Documentation

G4FTFBinaryProtonBuilder::G4FTFBinaryProtonBuilder ( G4bool  quasiElastic = false)

Definition at line 50 of file G4FTFBinaryProtonBuilder.cc.

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

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

Definition at line 88 of file G4FTFBinaryProtonBuilder.cc.

89 {
90  delete theStringDecay;
91  delete theStringModel;
92  delete theModel;
93  delete theCascade;
94  if ( theQuasiElastic ) delete theQuasiElastic;
95 }

Member Function Documentation

void G4FTFBinaryProtonBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 98 of file G4FTFBinaryProtonBuilder.cc.

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

Implements G4VProtonBuilder.

Definition at line 79 of file G4FTFBinaryProtonBuilder.cc.

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

80 {
81  theModel->SetMinEnergy(theMin);
82  theModel->SetMaxEnergy(theMax);
83  aP->RegisterMe(theModel);
85 }
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 G4FTFBinaryProtonBuilder::SetMaxEnergy ( G4double  aM)
inline

Definition at line 70 of file G4FTFBinaryProtonBuilder.hh.

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

Definition at line 69 of file G4FTFBinaryProtonBuilder.hh.

69 {theMin = aM;}

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