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

#include <G4QGSPProtonBuilder.hh>

Inheritance diagram for G4QGSPProtonBuilder:
Collaboration diagram for G4QGSPProtonBuilder:

Public Member Functions

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

Constructor & Destructor Documentation

G4QGSPProtonBuilder::G4QGSPProtonBuilder ( G4bool  quasiElastic = false)

Definition at line 50 of file G4QGSPProtonBuilder.cc.

51  {
52  theMin = 12*GeV;
53  theModel = new G4TheoFSGenerator("QGSP");
54 
55  theStringModel = new G4QGSModel< G4QGSParticipants >;
56  theStringDecay = new G4ExcitedStringDecay(theQGSM = new G4QGSMFragmentation);
57  theStringModel->SetFragmentationModel(theStringDecay);
58 
59  theCascade = new G4GeneratorPrecompoundInterface();
60 
61  theModel->SetTransport(theCascade);
62  theModel->SetHighEnergyGenerator(theStringModel);
63  if (quasiElastic)
64  {
65  theQuasiElastic=new G4QuasiElasticChannel;
66  theModel->SetQuasiElasticChannel(theQuasiElastic);
67  } else
68  { theQuasiElastic=0;}
69  }
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:

G4QGSPProtonBuilder::~G4QGSPProtonBuilder ( )
virtual

Definition at line 85 of file G4QGSPProtonBuilder.cc.

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

Member Function Documentation

void G4QGSPProtonBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 81 of file G4QGSPProtonBuilder.cc.

82  {
83  }
void G4QGSPProtonBuilder::Build ( G4ProtonInelasticProcess aP)
virtual

Implements G4VProtonBuilder.

Definition at line 72 of file G4QGSPProtonBuilder.cc.

73  {
75  theModel->SetMinEnergy(theMin);
76  theModel->SetMaxEnergy(100*TeV);
77  aP->RegisterMe(theModel);
78  }
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 G4QGSPProtonBuilder::SetMinEnergy ( G4double  aM)
inline

Definition at line 68 of file G4QGSPProtonBuilder.hh.

68 {theMin = aM;}

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