Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
source
processes
hadronic
models
parton_string
qgsm
include
G4QGSParticipants.hh
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
#ifndef G4QGSParticipants_h
27
#define G4QGSParticipants_h 1
28
29
#include "
Randomize.hh
"
30
#include "
G4VParticipants.hh
"
31
#include "
G4Nucleon.hh
"
32
#include "
G4InteractionContent.hh
"
33
#include "
G4PomeronCrossSection.hh
"
34
#include "
G4QGSDiffractiveExcitation.hh
"
35
#include "
G4SingleDiffractiveExcitation.hh
"
36
#include "
G4PartonPair.hh
"
37
#include "
G4QGSMSplitableHadron.hh
"
38
#include "
G4V3DNucleus.hh
"
39
40
41
class
G4QGSParticipants
:
public
G4VParticipants
42
{
43
public
:
44
G4QGSParticipants
();
45
G4QGSParticipants
(
const
G4QGSParticipants
&
right
);
46
const
G4QGSParticipants
&
operator=
(
const
G4QGSParticipants
&right);
47
virtual
~G4QGSParticipants
();
48
49
int
operator==
(
const
G4QGSParticipants
&right)
const
;
50
int
operator!=
(
const
G4QGSParticipants
&right)
const
;
51
52
virtual
void
DoLorentzBoost
(
G4ThreeVector
aBoost)
53
{
54
if
(
theNucleus
)
theNucleus
->
DoLorentzBoost
(aBoost);
55
theBoost
= aBoost;
56
}
57
58
G4PartonPair
*
GetNextPartonPair
();
59
void
BuildInteractions
(
const
G4ReactionProduct
&thePrimary);
60
void
StartPartonPairLoop
();
61
62
protected
:
63
virtual
G4VSplitableHadron
*
SelectInteractions
(
const
G4ReactionProduct
&thePrimary);
64
void
SplitHadrons
();
65
void
PerformSoftCollisions
();
66
void
PerformDiffractiveCollisions
();
67
68
protected
:
69
struct
DeleteInteractionContent
{
void
operator()
(
G4InteractionContent
*aC){
delete
aC;}};
70
std::vector<G4InteractionContent*>
theInteractions
;
71
struct
DeleteSplitableHadron
{
void
operator()
(
G4VSplitableHadron
*aS){
delete
aS;}};
72
std::vector<G4VSplitableHadron*>
theTargets
;
73
struct
DeletePartonPair
{
void
operator()
(
G4PartonPair
*aP){
delete
aP;}};
74
std::vector<G4PartonPair*>
thePartonPairs
;
75
76
G4SingleDiffractiveExcitation
theSingleDiffExcitation
;
77
G4QGSDiffractiveExcitation
theDiffExcitaton
;
78
G4int
ModelMode
;
79
G4bool
IsSingleDiffractive
();
80
81
G4ThreeVector
theBoost
;
82
83
protected
:
84
// model parameters HPW
85
enum
{
SOFT
,
DIFFRACTIVE
};
86
const
G4int
nCutMax
;
87
const
G4double
ThresholdParameter
;
88
const
G4double
QGSMThreshold
;
89
const
G4double
theNucleonRadius
;
90
91
};
92
93
94
inline
G4bool
G4QGSParticipants::IsSingleDiffractive
()
95
{
96
G4bool
result=
false
;
97
if
(
G4UniformRand
()<1.) result =
true
;
98
return
result;
99
}
100
101
inline
void
G4QGSParticipants::StartPartonPairLoop
()
102
{
103
}
104
105
inline
G4PartonPair
*
G4QGSParticipants::GetNextPartonPair
()
106
{
107
if
(
thePartonPairs
.empty())
return
0;
108
G4PartonPair
* result =
thePartonPairs
.back();
109
thePartonPairs
.pop_back();
110
return
result;
111
}
112
113
114
inline
void
G4QGSParticipants::SplitHadrons
()
115
{
116
unsigned
int
i;
117
for
(i = 0; i <
theInteractions
.size(); i++)
118
{
119
theInteractions
[i]->SplitHadrons();
120
}
121
}
122
123
#endif
124
125
Generated on Sat May 25 2013 14:34:06 for Geant4 by
1.8.4