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

#include <G4MiscQGSCBuilder.hh>

Public Member Functions

 G4MiscQGSCBuilder (G4int verbose)
 
virtual ~G4MiscQGSCBuilder ()
 
void Build ()
 

Protected Attributes

G4ParticleTabletheParticleTable
 
G4ParticleTable::G4PTblDicIteratortheParticleIterator
 

Detailed Description

Definition at line 64 of file G4MiscQGSCBuilder.hh.

Constructor & Destructor Documentation

◆ G4MiscQGSCBuilder()

G4MiscQGSCBuilder::G4MiscQGSCBuilder ( G4int  verbose)

Definition at line 43 of file G4MiscQGSCBuilder.cc.

43 :
44 theModel(0),theCascade(0),theQGSCModel(0),
45 theQGSCDecay(0),theQuasiElastic(0),
46 verbose(ver), wasActivated(false)
47{
48 // pointer to the particle table
51}
G4ParticleTable * theParticleTable
G4ParticleTable::G4PTblDicIterator * theParticleIterator
G4PTblDicIterator * GetIterator()
static G4ParticleTable * GetParticleTable()

◆ ~G4MiscQGSCBuilder()

G4MiscQGSCBuilder::~G4MiscQGSCBuilder ( )
virtual

Definition at line 53 of file G4MiscQGSCBuilder.cc.

53{}

Member Function Documentation

◆ Build()

void G4MiscQGSCBuilder::Build ( )

Definition at line 55 of file G4MiscQGSCBuilder.cc.

56{
57 wasActivated = true;
58
59 //QGSC model definition
60 theModel = new G4TheoFSGenerator("QGSC");
61
62 theQGSCModel = new G4QGSModel< G4QGSParticipants >;
63 theQGSCDecay = new G4ExcitedStringDecay(new G4QGSMFragmentation);
64 theQGSCModel->SetFragmentationModel(theQGSCDecay);
65 theModel->SetHighEnergyGenerator(theQGSCModel);
66
68 theModel->SetTransport(theCascade);
69
70 theQuasiElastic = new G4QuasiElasticChannel;
71 theModel->SetQuasiElasticChannel(theQuasiElastic);
72
73 theModel->SetMinEnergy(0.);
74 theModel->SetMaxEnergy(100*TeV);
75
76
78 while( (*theParticleIterator)() )
79 {
81 G4String pname = particle->GetParticleName();
82 if(pname == "kaon-" || pname == "kaon+" || pname == "kaon0S" || pname == "kaon0L" ||
83 pname == "pi-" || pname == "pi+" || pname == "neutron" || pname == "proton" )
84 {
85 if(verbose>1)G4cout<<"** G4MiscQGSCBuilder: "<<pname<<" already defined"<<G4endl;
86 }
87 else if(
88 pname == "anti_proton" || pname == "anti_neutron" || pname == "anti_lambda" ||
89 pname == "anti_sigma+" || pname == "anti_sigma0" || pname == "anti_sigma-" ||
90 pname == "anti_xi0" || pname == "anti_xi-" || pname == "anti_omega-" ||
91 pname == "lambda" || pname == "sigma+" || pname == "sigma0" ||
92 pname == "sigma-" || pname == "xi0" || pname == "xi-" || pname == "omega-")
93 {
94 if(verbose>1)G4cout<< "__ G4MiscQGSCBuilder: "<< pname <<" is defined here"<<G4endl;
95 G4ProcessManager* pmanager = particle->GetProcessManager();
96 G4HadronInelasticProcess* hp = new G4HadronInelasticProcess("hInelastic", particle);
97 pmanager->AddDiscreteProcess(hp);
98 hp->RegisterMe(theModel);
99 if(verbose>1)
100 G4cout<<"^^ G4MiscQGSCBuilder: "<<hp->GetProcessName()<<" added for "<<pname<<G4endl;
101 }
102 }
103}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
void RegisterMe(G4HadronicInteraction *a)
G4ProcessManager * GetProcessManager() const
const G4String & GetParticleName() const
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
void SetTransport(G4VIntraNuclearTransportModel *const value)
void SetQuasiElasticChannel(G4QuasiElasticChannel *const value)
void SetHighEnergyGenerator(G4VHighEnergyGenerator *const value)
void SetFragmentationModel(G4VStringFragmentation *aModel)
const G4String & GetProcessName() const
Definition: G4VProcess.hh:379

Referenced by HadronPhysicsQGSC_CHIPS::ConstructProcess().

Member Data Documentation

◆ theParticleIterator

G4ParticleTable::G4PTblDicIterator* G4MiscQGSCBuilder::theParticleIterator
protected

Definition at line 77 of file G4MiscQGSCBuilder.hh.

Referenced by Build(), and G4MiscQGSCBuilder().

◆ theParticleTable

G4ParticleTable* G4MiscQGSCBuilder::theParticleTable
protected

Definition at line 76 of file G4MiscQGSCBuilder.hh.

Referenced by G4MiscQGSCBuilder().


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