Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4QGSPPionBuilder Class Reference

#include <G4QGSPPionBuilder.hh>

+ Inheritance diagram for G4QGSPPionBuilder:

Public Member Functions

 G4QGSPPionBuilder (G4bool quasiElastic=false, G4bool projectileDiffraction=false)
 
virtual ~G4QGSPPionBuilder ()
 
virtual void Build (G4HadronElasticProcess *aP)
 
virtual void Build (G4PionPlusInelasticProcess *aP)
 
virtual void Build (G4PionMinusInelasticProcess *aP)
 
void SetMinEnergy (G4double aM)
 
- Public Member Functions inherited from G4VPionBuilder
 G4VPionBuilder ()
 
virtual ~G4VPionBuilder ()
 
virtual void Build (G4HadronElasticProcess *aP)=0
 
virtual void Build (G4PionPlusInelasticProcess *aP)=0
 
virtual void Build (G4PionMinusInelasticProcess *aP)=0
 

Detailed Description

Definition at line 61 of file G4QGSPPionBuilder.hh.

Constructor & Destructor Documentation

◆ G4QGSPPionBuilder()

G4QGSPPionBuilder::G4QGSPPionBuilder ( G4bool  quasiElastic = false,
G4bool  projectileDiffraction = false 
)

Definition at line 50 of file G4QGSPPionBuilder.cc.

52{
53 thePiData = new G4CrossSectionPairGG(new G4PiNuclearCrossSection(), 91*GeV);
54 theMin = 12*GeV;
55 theModel = new G4TheoFSGenerator("QGSP");
56
57 theStringModel = new G4QGSModel< G4QGSParticipants >;
58 theStringDecay = new G4ExcitedStringDecay(theQGSM = new G4QGSMFragmentation);
59 theStringModel->SetFragmentationModel(theStringDecay);
60
61
62 theCascade = new G4GeneratorPrecompoundInterface;
63 thePreEquilib = new G4PreCompoundModel(theHandler = new G4ExcitationHandler);
64 theCascade->SetDeExcitation(thePreEquilib);
65
66 theModel->SetHighEnergyGenerator(theStringModel);
67 if (quasiElastic)
68 {
69 theQuasiElastic=new G4QuasiElasticChannel;
70 theModel->SetQuasiElasticChannel(theQuasiElastic);
71 } else
72 { theQuasiElastic=0;}
73 if ( projectileDiffraction )
74 {
75 theProjectileDiffraction=new G4ProjectileDiffractiveChannel;
76 theModel->SetProjectileDiffraction(theProjectileDiffraction);
77 } else
78 { theProjectileDiffraction=0;}
79
80 theModel->SetTransport(theCascade);
81}
void SetTransport(G4VIntraNuclearTransportModel *const value)
void SetQuasiElasticChannel(G4QuasiElasticChannel *const value)
void SetHighEnergyGenerator(G4VHighEnergyGenerator *const value)
void SetProjectileDiffraction(G4ProjectileDiffractiveChannel *const value)
void SetDeExcitation(G4VPreCompoundModel *ptr)
void SetFragmentationModel(G4VStringFragmentation *aModel)

◆ ~G4QGSPPionBuilder()

G4QGSPPionBuilder::~G4QGSPPionBuilder ( )
virtual

Definition at line 83 of file G4QGSPPionBuilder.cc.

85{
86 delete theCascade;
87 delete thePreEquilib;
88 if ( theQuasiElastic ) delete theQuasiElastic;
89 if ( theProjectileDiffraction ) delete theProjectileDiffraction;
90 delete theStringDecay;
91 delete theStringModel;
92 delete theModel;
93 delete theQGSM;
94 //delete theHandler;
95}

Member Function Documentation

◆ Build() [1/3]

void G4QGSPPionBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VPionBuilder.

Definition at line 97 of file G4QGSPPionBuilder.cc.

98{}

◆ Build() [2/3]

void G4QGSPPionBuilder::Build ( G4PionMinusInelasticProcess aP)
virtual

Implements G4VPionBuilder.

Definition at line 109 of file G4QGSPPionBuilder.cc.

111{
112 theModel->SetMinEnergy(theMin);
113 theModel->SetMaxEnergy(100*TeV);
114 aP->AddDataSet(thePiData);
115 aP->RegisterMe(theModel);
116}
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void RegisterMe(G4HadronicInteraction *a)

◆ Build() [3/3]

void G4QGSPPionBuilder::Build ( G4PionPlusInelasticProcess aP)
virtual

Implements G4VPionBuilder.

Definition at line 100 of file G4QGSPPionBuilder.cc.

102{
103 theModel->SetMinEnergy(theMin);
104 theModel->SetMaxEnergy(100*TeV);
105 aP->AddDataSet(thePiData);
106 aP->RegisterMe(theModel);
107}

◆ SetMinEnergy()

void G4QGSPPionBuilder::SetMinEnergy ( G4double  aM)
inline

Definition at line 73 of file G4QGSPPionBuilder.hh.

73{theMin = aM;}

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