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
hadronization
include
G4FragmentingString.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
//
27
// $Id$
28
//
29
30
#ifndef G4FragmentingString_h
31
#define G4FragmentingString_h 1
32
33
// ------------------------------------------------------------
34
// GEANT 4 class header file
35
//
36
// ---------------- G4FragmentingString ----------------
37
// by Gunter Folger, September 2001.
38
// class for an excited string used in Fragmention
39
// ------------------------------------------------------------
40
41
#include "
G4ios.hh
"
42
#include "
globals.hh
"
43
#include "
G4ThreeVector.hh
"
44
#include "
G4LorentzVector.hh
"
45
#include "
G4ParticleDefinition.hh
"
46
47
class
G4ExcitedString
;
48
49
class
G4FragmentingString
50
{
51
52
public
:
53
54
G4FragmentingString
(
const
G4FragmentingString
&
right
);
55
G4FragmentingString
(
const
G4ExcitedString
&excited);
56
G4FragmentingString
(
const
G4FragmentingString
&old,
57
G4ParticleDefinition
* newdecay,
58
const
G4LorentzVector
*momentum);
59
G4FragmentingString
(
const
G4FragmentingString
&old,
60
G4ParticleDefinition
* newdecay);
61
62
~G4FragmentingString
();
63
64
G4FragmentingString
&
operator=
(
const
G4FragmentingString
&);
65
int
operator==
(
const
G4FragmentingString
&right)
const
;
66
67
int
operator!=
(
const
G4FragmentingString
&right)
const
;
68
69
70
G4LorentzVector
Get4Momentum
()
const
;
71
72
G4ThreeVector
StablePt
();
73
G4ThreeVector
DecayPt
();
74
75
G4double
LightConePlus
();
76
G4double
LightConeMinus
();
77
G4double
LightConeDecay
();
78
79
G4double
Mass
()
const
;
80
G4double
Mass2
()
const
;
81
G4double
MassT2
()
const
;
82
83
G4ParticleDefinition
*
GetLeftParton
(
void
)
const
;
84
G4ParticleDefinition
*
GetRightParton
(
void
)
const
;
85
86
G4ParticleDefinition
*
GetStableParton
()
const
;
// stable at the moment
87
G4ParticleDefinition
*
GetDecayParton
()
const
;
// currently involved in fragmentation
88
89
void
SetLeftPartonStable
();
90
void
SetRightPartonStable
();
91
92
G4int
GetDecayDirection
()
const
;
93
94
G4bool
DecayIsQuark
();
95
G4bool
StableIsQuark
();
96
G4bool
FourQuarkString
(
void
)
const
;
97
98
99
private
:
100
101
G4ParticleDefinition
*LeftParton, *RightParton;
102
G4ThreeVector
Ptleft,Ptright;
// Pt (px,py) for partons (pz ignored!)
103
G4double
Pplus, Pminus;
// p-, p+ of string, Plus ass. to Left!
104
105
G4ParticleDefinition
* theStableParton, * theDecayParton;
106
107
enum
DecaySide { None, Left, Right };
108
DecaySide decaying;
109
};
110
111
inline
112
int
G4FragmentingString::operator==
(
const
G4FragmentingString
&
right
)
const
113
{
114
return
this
== &
right
;
115
}
116
117
inline
118
int
G4FragmentingString::operator!=
(
const
G4FragmentingString
&
right
)
const
119
{
120
return
this
!= &
right
;
121
}
122
123
124
inline
125
G4ParticleDefinition
*
G4FragmentingString::GetStableParton
()
const
126
{
127
return
theStableParton;
128
}
129
130
inline
131
G4ParticleDefinition
*
G4FragmentingString::GetDecayParton
()
const
132
{
133
return
theDecayParton;
134
}
135
136
inline
137
G4ParticleDefinition
*
G4FragmentingString::GetLeftParton
(
void
)
const
138
{
139
return
LeftParton;
140
}
141
142
inline
143
G4ParticleDefinition
*
G4FragmentingString::GetRightParton
(
void
)
const
144
{
145
return
RightParton;
146
}
147
148
149
150
#endif
151
152
Generated on Sat May 25 2013 14:34:05 for Geant4 by
1.8.4