Geant4-11
G4QGSModel.icc
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//****************************************************************************
27
28template<class ParticipantType>
29G4QGSModel<ParticipantType>::G4QGSModel()
30{
31 SetEnergyMomentumCheckLevels(2*CLHEP::perCent, 150*CLHEP::MeV);
32}
33
34template<class ParticipantType>
35G4QGSModel<ParticipantType>::~G4QGSModel()
36{}
37
38template<class ParticipantType>
39void G4QGSModel<ParticipantType>::Init(const G4Nucleus & aNucleus,
40 const G4DynamicParticle & aProjectile)
41{
42 // It is assumed that target nucleus is at rest.
43 theParticipants.Init(aNucleus.GetA_asInt(),aNucleus.GetZ_asInt());
44
45 G4LorentzVector Mom = aProjectile.Get4Momentum();
46
47 G4ReactionProduct theProjectile;
48 theProjectile.SetDefinition(aProjectile.GetDefinition());
49 theProjectile.SetTotalEnergy(Mom.e());
50 theProjectile.SetMomentum(Mom.vect());
51
52 // Creation of strings and nuclear remnant
53 theParticipants.BuildInteractions(theProjectile);
54}
55
56template<class ParticipantType>
57G4ExcitedStringVector * G4QGSModel<ParticipantType>::GetStrings()
58{
59 // The strings are produced at theParticipants.BuildInteractions(theProjectile)
60
61 G4PartonPair* aPair;
62 G4ExcitedStringVector* theStrings = new G4ExcitedStringVector;
63 G4ExcitedString * aString;
64 while( (aPair = theParticipants.GetNextPartonPair()) ) /* Loop checking, 07.08.2015, A.Ribon */
65 {
66 if (aPair->GetCollisionType() == G4PartonPair::DIFFRACTIVE)
67 {
68 aString = theDiffractiveStringBuilder.BuildString(aPair);
69 }
70 else
71 {
72 aString = theSoftStringBuilder.BuildString(aPair);
73 }
74
75 // aString->Boost(theCurrentVelocity);
76 theStrings->push_back(aString);
77 delete aPair;
78 }
79
80 return theStrings;
81}
82
83template<class ParticipantType>
84G4V3DNucleus* G4QGSModel<ParticipantType>::GetWoundedNucleus() const
85{
86 return theParticipants.GetWoundedNucleus();
87}
88
89template<class ParticipantType>
90G4V3DNucleus* G4QGSModel<ParticipantType>::GetProjectileNucleus() const
91{
92 return nullptr;
93}
94
95template<class ParticipantType>
96void G4QGSModel<ParticipantType>::ModelDescription(std::ostream& outFile) const
97{
98 outFile << "The Quark-Gluon String (QGS) model simulates the interaction\n"
99 << "of protons, neutrons, pions and kaons with nuclei in the\n"
100 << "approximate energy range 20 GeV to 50 TeV. The model handles\n"
101 << "the selection of collision partners, splitting of the nucleons\n"
102 << "into quarks and di-quarks, the formation and excitation of\n"
103 << "quark-gluon strings, string hadronization and diffractive dissociation.\n";
104}
105//****************************************************************************
106