Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4QGSBinaryProtonBuilder Class Reference

#include <G4QGSBinaryProtonBuilder.hh>

Inheritance diagram for G4QGSBinaryProtonBuilder:
Collaboration diagram for G4QGSBinaryProtonBuilder:

Public Member Functions

 G4QGSBinaryProtonBuilder (G4bool quasiElastic=false)
 
virtual ~G4QGSBinaryProtonBuilder ()
 
virtual void Build (G4HadronElasticProcess *aP)
 
virtual void Build (G4ProtonInelasticProcess *aP)
 
void SetMinEnergy (G4double aM)
 
- Public Member Functions inherited from G4VProtonBuilder
 G4VProtonBuilder ()
 
virtual ~G4VProtonBuilder ()
 

Detailed Description

Definition at line 58 of file G4QGSBinaryProtonBuilder.hh.

Constructor & Destructor Documentation

G4QGSBinaryProtonBuilder::G4QGSBinaryProtonBuilder ( G4bool  quasiElastic = false)

Definition at line 48 of file G4QGSBinaryProtonBuilder.cc.

49  {
50  theMin = 12*GeV;
51  theModel = new G4TheoFSGenerator("QGSB");
52 
53  theStringModel = new G4QGSModel< G4QGSParticipants >;
54  theStringDecay = new G4ExcitedStringDecay(new G4QGSMFragmentation);
55  theStringModel->SetFragmentationModel(theStringDecay);
56 
57  theCascade = new G4BinaryCascade;
58 
59  theModel->SetTransport(theCascade);
60  theModel->SetHighEnergyGenerator(theStringModel);
61  if (quasiElastic)
62  {
63  theQuasiElastic=new G4QuasiElasticChannel;
64  theModel->SetQuasiElasticChannel(theQuasiElastic);
65  } else
66  { theQuasiElastic=0;}
67  }
void SetQuasiElasticChannel(G4QuasiElasticChannel *const value)
void SetFragmentationModel(G4VStringFragmentation *aModel)
void SetHighEnergyGenerator(G4VHighEnergyGenerator *const value)
static constexpr double GeV
Definition: G4SIunits.hh:217
void SetTransport(G4VIntraNuclearTransportModel *const value)

Here is the call graph for this function:

G4QGSBinaryProtonBuilder::~G4QGSBinaryProtonBuilder ( )
virtual

Definition at line 83 of file G4QGSBinaryProtonBuilder.cc.

84  {
85  if ( theQuasiElastic ) delete theQuasiElastic;
86  delete theStringDecay;
87  delete theStringModel;
88  }

Member Function Documentation

void G4QGSBinaryProtonBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 79 of file G4QGSBinaryProtonBuilder.cc.

80  {
81  }
void G4QGSBinaryProtonBuilder::Build ( G4ProtonInelasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 70 of file G4QGSBinaryProtonBuilder.cc.

71  {
73  theModel->SetMinEnergy(theMin);
74  theModel->SetMaxEnergy(100*TeV);
75  aP->RegisterMe(theModel);
76  }
void RegisterMe(G4HadronicInteraction *a)
static constexpr double TeV
Definition: G4SIunits.hh:218
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 G4QGSBinaryProtonBuilder::SetMinEnergy ( G4double  aM)
inline

Definition at line 68 of file G4QGSBinaryProtonBuilder.hh.

68 {theMin = aM;}

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