Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4FTFBinaryProtonBuilder Class Reference

#include <G4FTFBinaryProtonBuilder.hh>

Inheritance diagram for G4FTFBinaryProtonBuilder:
Collaboration diagram for G4FTFBinaryProtonBuilder:

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 57 of file G4FTFBinaryProtonBuilder.hh.

Constructor & Destructor Documentation

G4FTFBinaryProtonBuilder::G4FTFBinaryProtonBuilder ( G4bool  quasiElastic = false)

Definition at line 49 of file G4FTFBinaryProtonBuilder.cc.

50 {
51  theMin = 4*GeV;
52  theMax = 100*TeV;
53  theModel = new G4TheoFSGenerator("FTFB");
54 
55  theStringModel = new G4FTFModel;
56  theStringDecay = new G4ExcitedStringDecay(new G4LundStringFragmentation);
57  theStringModel->SetFragmentationModel(theStringDecay);
58 
59  theCascade = new G4BinaryCascade;
60  theModel->SetTransport(theCascade);
61 
62  theModel->SetHighEnergyGenerator(theStringModel);
63  theModel->SetMinEnergy(theMin);
64  theModel->SetMaxEnergy(theMax);
65 
66  if (quasiElastic)
67  {
68  theQuasiElastic=new G4QuasiElasticChannel;
69  theModel->SetQuasiElasticChannel(theQuasiElastic);
70  } else
71  { theQuasiElastic=0;}
72 
73 }
void SetQuasiElasticChannel(G4QuasiElasticChannel *const value)
void SetFragmentationModel(G4VStringFragmentation *aModel)
void SetHighEnergyGenerator(G4VHighEnergyGenerator *const value)
static constexpr double TeV
Definition: G4SIunits.hh:218
void SetMinEnergy(G4double anEnergy)
static constexpr double GeV
Definition: G4SIunits.hh:217
void SetMaxEnergy(const G4double anEnergy)
void SetTransport(G4VIntraNuclearTransportModel *const value)

Here is the call graph for this function:

G4FTFBinaryProtonBuilder::~G4FTFBinaryProtonBuilder ( )
virtual

Definition at line 85 of file G4FTFBinaryProtonBuilder.cc.

86 {
87  delete theStringDecay;
88  delete theStringModel;
89  //delete theModel;
90  if ( theQuasiElastic ) delete theQuasiElastic;
91 }

Member Function Documentation

void G4FTFBinaryProtonBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 94 of file G4FTFBinaryProtonBuilder.cc.

95 {
96 }
void G4FTFBinaryProtonBuilder::Build ( G4ProtonInelasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 76 of file G4FTFBinaryProtonBuilder.cc.

77 {
78  theModel->SetMinEnergy(theMin);
79  theModel->SetMaxEnergy(theMax);
80  aP->RegisterMe(theModel);
82 }
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
static G4Proton * Proton()
Definition: G4Proton.cc:93
void SetMaxEnergy(const G4double anEnergy)

Here is the call graph for this function:

void G4FTFBinaryProtonBuilder::SetMaxEnergy ( G4double  aM)
inline

Definition at line 68 of file G4FTFBinaryProtonBuilder.hh.

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

Definition at line 67 of file G4FTFBinaryProtonBuilder.hh.

67 {theMin = aM;}

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